I have a gridPanel based on EXT4. When I select a particular row, the row highlighting works based on the "id" given to the particular row. How do I change the default implementation to something to use like "rowId" instead of "id" Where is this done? How do I make the change?
Asked
Active
Viewed 308 times
2
-
1The question is unclear. Can you provide some code? What do you mean by 'select'? With the mouse, or using code? – Izhaki Feb 28 '13 at 20:21
-
just check. http://stackoverflow.com/questions/8716873/highlighting-selecting-grid-row-in-extjs – Rency Mar 01 '13 at 06:21
-
@Izhaki - I mean a mouse select – ManJan Mar 01 '13 at 20:34
1 Answers
1
The idProperty
is the config option in Ext.data.Model
which defaults to 'id'. You can change it to 'rowid' in your Model. If you are specifying fields directly in your Store, you will have to define a Data Model to have this option.
References:
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.Model-cfg-idProperty http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.Store-cfg-fields

Sunish
- 106
- 3