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

SelectedIndexChagned on RadGrid causing postback

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sho
Top achievements
Rank 1
sho asked on 17 Aug 2011, 03:30 PM
Hi,

I am using selectedIndexChanged to select a single row of a RadGrid and in CustomGrid_SelectedIndexChange some code is written (say to populate one or more radgrid), so when  I doubleclick on the row it causes Postback. How can I getrid of the postback.

Is there anyway to get rid of postback? Or any alternate for selectedindexchanged?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Rory
Top achievements
Rank 1
answered on 19 Aug 2011, 07:52 PM
I'm not sure of your scenario but when I do something on a rowselect event of a grid without a postback I use the Grid's client event for OnRowSelected. There is also a client event for Double clicking called OnRowDbClick. Using these two events you can do something different like fire an ajax request to populate a grid or not for each grid click event.
Tags
General Discussions
Asked by
sho
Top achievements
Rank 1
Answers by
Rory
Top achievements
Rank 1
Share this question
or