3 Dec 2006 7:39 PM #1
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.
4 Dec 2006 5:06 AM #2
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.
By Preston in forum Ext 1.x: Help & DiscussionReplies: 35Last Post: 27 Nov 2013, 10:26 AM
By eric_sato in forum Ext 1.x: BugsReplies: 1Last Post: 28 Mar 2007, 8:19 PM
By email@example.com in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 16 Feb 2007, 8:15 AM
By sailaja in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 16 Jan 2007, 6:56 AM
By sailaja in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 10 Jan 2007, 3:18 AM