Get the row index of a gridpanel when clicking on a rowcommand

  1. #1

    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:
    <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!
  2. #2
    I managed it with a workaround (let the user always select a row) but it would be interesting to know how it works otherwise.

    Any ideas anyone?!
  3. #3
    What was your workaround? Mine just suddenly stopped working?
  4. #4
    Hey,

    Sorry, I have no idea anymore where I used that one.... But the my users still use the webapp and haven't complained yet. That something doesn't work. If I stumble upon that part of the code in the next few days I will let you know.

    cheers.

Similar Threads

  1. Replies: 5
    Last Post: Jun 12, 2012, 6:19 PM
  2. Rowcommand from examples is not working
    By Dorababu in forum 2.x Help
    Replies: 1
    Last Post: Mar 10, 2012, 4:16 PM
  3. Replies: 13
    Last Post: Jun 09, 2011, 12:36 PM
  4. Gridpanel delete a record with rowcommand
    By umitcel in forum 1.x Help
    Replies: 3
    Last Post: Jul 23, 2010, 9:27 AM
  5. Replies: 0
    Last Post: May 22, 2009, 7:59 AM

Tags for this Thread

Posting Permissions