1. #1
    Ext User
    Join Date
    Dec 2007
    Location
    italy
    Posts
    120
    Vote Rating
    0
    tarini is on a distinguished road

      0  

    Default problem with Ext.grid.RowNumberer

    problem with Ext.grid.RowNumberer


    Hi guys, i have this columnModel:

    PHP Code:
    columns: [
         new 
    Ext.grid.RowNumberer(),
        {
    "id" "name","header" "Name"},
         {
    "id" "title","header" "Title"},
        {
    "id" "role",    "header" "Ruolo"}

    but when i load the data in the store linked with the grid i get this exception:
    this.ds.fields.get(i) has no properties
    in getColumnData() method

    I think because it tries to get data from store about the first "fake" column

    this row:
    name : (typeof name == 'undefined' ? this.ds.fields.get(i).name : name),
    will check this, right?
    but in my "fake" rowNumberer columnModel the name isn't undefined (it's a empty string "") and than get this error...


    I hope that my bad english will be understood

  2. #2
    Ext User
    Join Date
    Dec 2007
    Location
    italy
    Posts
    120
    Vote Rating
    0
    tarini is on a distinguished road

      0  

    Default


    i get this error this loop
    for(var i = 0; i < colCount; i++){
    reaches i = 3 (the last because the column is 4) but this.ds.fields has only 3 of length beacause client doensn't receive (rightly...) the rowNumberer property...