Getting selected value from grid


I am using #master_checkbox to derive master checkbox to select all. For each individul checkbox in row item I use 0 in the xml rendering.

I have 5 columns in the grid. “Master checkbox”, Gr Id, Gr Name, Terr ID, Terr Name

My question is how do I select a particular value, say Gr Id, from a selected (checkbox checked) row?

I looked through the Grid API, but I could not figure out a way to do this.


Do you want select whole row if check box in that row is checked? Or do you want mark somehow only cell from Gr Id column?

In first case you can attach “onCheck” event and mark checked row with some background:

if(state) mygrid.setRowTextStyle(row_id,“background-color: red;”);