PDA

View Full Version : grid row selection only on first column



Brana
3 Dec 2013, 2:18 PM
Hi,
I am newbie to extJS and this forum too.
As by default in a Grid a row can be selected by clicking anywhere in a row but I wanted to select a row only when the row is clicked under first column. I googled it to find a solution, but no luck.

Any help in this regard is highly appreciated.

Thanks in advance.
Bikash

willigogs
3 Dec 2013, 2:54 PM
In the selectionmodel's beforerowselect listener, return false unless the clicked column index is zero.

Brana
4 Dec 2013, 7:27 AM
Thank you willigogs for your prompt reply. Would you please give some example code, that would be really helpful.

Thanks !

Brana
13 Dec 2013, 1:53 PM
I still could not figure out how to accomplish this. Any body, please !