Hybrid View

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    5
    Vote Rating
    0
    qintnt is on a distinguished road

      0  

    Default Array Grid Example

    Array Grid Example


    Hi,jack.I'm a newbie to yui and yui-ext.

    I just followed the instructions to build a grid using array data.But I found a weird behavior. When clicking the table header to sort,the grid selects all the datas automatically.

    The only differences between the example and my test webpage is grid content.All rows have the same data in my grid.

    I guess it must be a bug. When the grid is holding the same rows and receving a request to sort the data, it selects all datas.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    The grid's selection are maintained by row id. If you don't implement getRowId on the data model, it by default uses the value in column 0. There another thread on this with an example, search for getRowId.

Similar Threads

  1. Grid: Paging of JavaScript Array already in memory
    By Preston in forum Ext 1.x: Help & Discussion
    Replies: 35
    Last Post: 27 Nov 2013, 10:26 AM
  2. Array-grid example, maximum column allow is 21?
    By eric_sato in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 28 Mar 2007, 8:19 PM
  3. Populating Array Grid with one column hidden
    By rahulmca1@gmail.com in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 16 Feb 2007, 8:15 AM
  4. How to call array-grid?
    By sailaja in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 16 Jan 2007, 6:56 AM
  5. Array-Grid in YUI
    By sailaja in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 10 Jan 2007, 3:18 AM

Thread Participants: 1