voyent
How to select row in a data table on right click?  XML
Forum Index -> Components
Author Message
sudheerms

Joined: 01/Apr/2009 00:00:00
Messages: 1
Offline


I have a data table implemented with row selector. The row selector works fine when it is selected using the left button of the mouse. I need to display a context menu when user right clicks on a row. I can display the context menu but I also want the row to be selected before the context menu is displayed. Is it possible to select the row when user right clicks on it?
anl_lazarev

Joined: 12/Feb/2009 00:00:00
Messages: 102
Offline



Probably you need control "selected" property manually, by setting toggleOnClick=false and make clickListener method for rowSelector.
Then you need displayEvent for menuPopup, where you got rowNumber/id from contextValue or from component. After that, you can set 'selected' property manually.


karthikayan

Joined: 09/May/2011 06:29:52
Messages: 31
Offline


Hi,

Can u explain little bit more?

I am unable to understand.




Please help me....


Thanks,
Karthikayan.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team