This is a migrated thread and some comments may be shown as answers.

[Solved] Grid - client side Row Unselect based on rowclick

1 Answer 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lorcan
Top achievements
Rank 1
lorcan asked on 04 May 2009, 01:26 AM
I have a telerik radgrid. My functionality is select a row on rowclick. I also want to deselect the row on row click if it is already selected.
I also want to change colors for RowSelected and Unselected.

I am trapping the row like this.

function

 

RowSelected(sender, eventArgs) {

 

 

var grid = sender;

 

 

}

 


Since I have a function like this, this overrides my RowUnselected() function of RowClick?

How can I go about doing that?

Regards        

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 May 2009, 03:46 AM
Hello Iorcan,

You can use the RowSelected and RowDeselected client events to achieve your scenario rather than casling a function on rowclick. Check out the following links for the same:
OnRowSelected
OnRowDeselected

Thanks
Princy.
Tags
Grid
Asked by
lorcan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or