Page 42 of 84 FirstFirst ... 32404142434452 ... LastLast
Results 411 to 420 of 835

Thread: Ext.ux.LiveGrid

  1. #411
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
      0  

    Default

    And this is the execution stack:

    Code:
    this.ds.fields.get(i) is undefined
    getColumnData()()ext-all-debug.js (line 31542)
    renderRows()(0, 0)ext-all-debug.js (line 31559)
    renderBody()()ext.ux.l...veGrid.js (line 448)
    refresh()(true)ext-all-debug.js (line 31594)
    reset()(false)ext.ux.l...veGrid.js (line 345)
    callback()()ext.ux.l...veGrid.js (line 900)
    loadRecords()(Object success=true records=Object totalRecords=2 version=0, Object params=Object scope=Object, true)ext-all-debug.js (line 10860)
    loadRecords()(Object success=true records=Object totalRecords=2 version=0, Object params=Object scope=Object, true)ext.ux.l...veGrid.js (line 2902)
    loadResponse()(Object params=Object request=Object reader=Object, true, Object tId=3 status=200 statusText=OK)ext-all-debug.js (line 11342)
    getViewWidth()(function(), Object events=Object conn=Object useAjax=true, Object 0=Object 1=true 2=Object, undefined)ext-base.js (line 9)
    handleResponse()(Object tId=3 status=200 statusText=OK)ext-all-debug.js (line 5318)
    getViewWidth()(Object conn=XMLHttpRequest tId=3, Object scope=Object argument=Object timeout=30000, undefined)ext-base.js (line 10)
    getViewWidth()()ext-base.js (line 10)
    [Break on this error] name : (typeof name == '...d' ? this.ds.fields.get(i).name : name),

  2. #412
    Sencha User ThorstenSuckow's Avatar
    Join Date
    Sep 2007
    Location
    Aachen, Germany
    Posts
    604
    Vote Rating
    3
      0  

    Default

    Quote Originally Posted by jmariani View Post
    Hi, having this error and can't find a way to solve it.
    Do you define any column model for the grid?

  3. #413
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
      0  

    Default

    Hi.

    The following code produces the following error:

    Code:
    this.ds.fields.get(i) is undefined
    http://localhost/bdApp/tools/ext/ext-all-debug.js
    Line 31542
    Can somebody please help? I spent the last two days trying to figure why is failing.

    Thank you in advance.

    [CODE]Ext.namespace('bdApp');

    bdApp.appBrowserGrid = Ext.extend(Ext.ux.grid.livegrid.GridPanel, {
    autoExpandColumn: 'description',
    initComponent : function(){

    var gridReader = new Ext.ux.grid.livegrid.JsonReader({
    root : 'resultSet',
    //versionProperty : 'response.value.version',
    totalProperty : 'totalCount',
    id : 'rowId'
    },[{
    name : 'rowId'
    },{
    name : 'appName'
    },{
    name : 'description'
    }]);

    var gridStore = new Ext.ux.grid.livegrid.Store({
    autoLoad : true,
    bufferSize : 100,
    remoteSort : true,
    reader : gridReader,
    url : 'php/getAppBrowserStore.php'
    });


    this.colModel = new Ext.grid.ColumnModel([
    new Ext.grid.RowNumberer({header: '#'}),
    {header: '#', id: 'rowId', dataIndex: 'rowId', hidden: true},
    {header: 'C

  4. #414
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
      0  

    Default

    Yes:

    this.colModel = new Ext.grid.ColumnModel([
    new Ext.grid.RowNumberer({header: '#'}),
    {header: '#', id: 'rowId', dataIndex: 'rowId', hidden: true},
    {header: 'C

  5. #415
    Sencha User ThorstenSuckow's Avatar
    Join Date
    Sep 2007
    Location
    Aachen, Germany
    Posts
    604
    Vote Rating
    3
      0  

    Default

    [QUOTE=jmariani;254075]Yes:

    this.colModel = new Ext.grid.ColumnModel([
    new Ext.grid.RowNumberer({header: '#'}),
    {header: '#', id: 'rowId', dataIndex: 'rowId', hidden: true},
    {header: 'C

  6. #416
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
      0  

    Default

    Holy cow!

    Whithout rownumberer is Okay. But this is weird, because I have another liveGrid and have to problems with rownumberer, that's why I thought it wasn't the problem.

  7. #417
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
      0  

    Default

    This code has rownumberer and performs ok.

    [CODE]// RECORD DEFINITION
    var menuBrowserRecord = Ext.data.Record.create([
    {name: 'menuId'},
    {name: 'appName'},
    {name: 'orden'},
    {name: 'nombre'},
    {name: 'descripcion'},
    {name: 'parentMenu'},
    {name: 'parentMenuDescription'},
    {name: 'href'},
    {name: 'favorite'},
    {name: 'qtip'}
    ]);

    // This is the column model for the grid.
    var menuBrowserColumnModel = new Ext.grid.ColumnModel([
    new Ext.grid.RowNumberer(),
    {header: '#', id: 'menuId', dataIndex: 'menuId', align: 'right', hidden: true, hideable: false},
    {header: 'Aplicaci

  8. #418
    Sencha User ThorstenSuckow's Avatar
    Join Date
    Sep 2007
    Location
    Aachen, Germany
    Posts
    604
    Vote Rating
    3
      0  

    Default

    Confirmed. I have tested both setups and the second does work, while your first code snippet throws an error. I see what I can do...

  9. #419
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by MindPatterns View Post
    Confirmed. I have tested both setups and the second does work, while your first code snippet throws an error. I see what I can do...
    Thank you very much. I'll appreciate that.

    Meanwhile I'll develop without rowNumberer.

  10. #420
    Sencha User ThorstenSuckow's Avatar
    Join Date
    Sep 2007
    Location
    Aachen, Germany
    Posts
    604
    Vote Rating
    3
      0  

    Default

    Quote Originally Posted by jmariani View Post
    Thank you very much. I'll appreciate that.

    Meanwhile I'll develop without rowNumberer.
    [code]
    {header: 'Descripci

Page 42 of 84 FirstFirst ... 32404142434452 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •