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

How do I get the SelectedIndexChanged method to fire

2 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 18 Nov 2010, 01:21 PM
Hi. I want to put my own code to execute on the SelectedIndexChanged event for the RadGrid. At the moment the event only occurs when I click the edit link. I assume that to get the event to occur is a simple property that I haven't set. I want to just be able to single click on a row in the grid and for my code behind to execute. I had assumed that clicking a row would "select" it and thus trigger the event but that isn't happening. Any help appreciated. Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 18 Nov 2010, 01:52 PM
Hello Paul,


You need to set the ClientSettings -> EnablePostBackOnRowClick property to "True" to work this.


-Shinu.
0
Paul
Top achievements
Rank 1
answered on 18 Nov 2010, 02:16 PM
I knew it would be obvious once I knew the answer (always is lol)

Many thanks
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Paul
Top achievements
Rank 1
Share this question
or