May 21, 2012, 4:24 PM
Get the row index of a gridpanel when clicking on a rowcommand
Hello
I searched the forum and tried google too but I couldn't quite manage to get it working...
When I click on a rowcommand in my gridpanel the row doesn't get selected so I would like to select it but I can't really get to the row index. Can this be done on the client side or do I have do do it somehow on the server side?
My non functioning code in the gridpanel:
Thank you very much for your insight.
best regards!
I searched the forum and tried google too but I couldn't quite manage to get it working...
When I click on a rowcommand in my gridpanel the row doesn't get selected so I would like to select it but I can't really get to the row index. Can this be done on the client side or do I have do do it somehow on the server side?
My non functioning code in the gridpanel:
<Listeners>
<Click Handler="#{MyGridPanel}.getSelectedModel().selectRow(abc)">
</Listeners>
Is there a possibility that I can get the row index on the row I did a single click somehow into abc (my other stuff: MyGridView, MyGridStore, etc.)? Or is there even a possibility to at the command columns that I can do that they get selected by a single mous click on a rowcommand?Thank you very much for your insight.
best regards!