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

SelectedIndexChanged does not fire

4 Answers 234 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 04 Dec 2012, 04:38 PM
Hi,

I'm evaluating Telerik RadGrid for our web portal software and therefore created a few prototypes. There is one behavior that strikes me: In a grid configured to allow multiple selections (using GridClientSelectColumn), after deselecting the last item of formerly selected items, the grid's SelectedIndexChanged event doesn't fire on the next postback. Every other change regarding the selection raises the event as anticipated. Is this by design? And if it is, how can I get notified about the selection change?

Thanks,

Andreas

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Dec 2012, 05:02 AM
Hi,

Make sure that you have set EnablePostBackOnRowClick as true to fire SelectedIndexChanged event.
aspx:
<ClientSettings EnablePostBackOnRowClick="true"></ClientSettings>

Thanks,
Shinu.
0
Andreas
Top achievements
Rank 1
answered on 05 Dec 2012, 10:45 AM
Hi Shinu,

thank You for Your reply. Unfortunately, executing a postback after each selection is not an acceptable solution for us as it would highly degrade the overall user experience in multiselect scenarios. Reliable selection change notification seems to me like a very fundamental functionality for list based controls, so I cannot believe this is the behavior intended by the Telerik team. Can you provide a workaround?

Best regards,

Andreas
0
Princy
Top achievements
Rank 2
answered on 27 Dec 2012, 06:33 AM
Hi,

Please check this forum thread which suggest a way to cancel a PostBack when EnablePostBackOnRowClick="true".

Thanks,
Princy.
0
Andreas
Top achievements
Rank 1
answered on 08 Jan 2013, 02:23 PM
Hi Princy,

from what I can see on this thread, there is still a postback on row click. My requirement is a grid that has client-side multiselection (by checkboxes, NOT by row click!) and does fire the SelectedIndexChanged after the next bostback everytime the selection has changed. Could you provide a short code example?

Best regards,
Andreas
Tags
Grid
Asked by
Andreas
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Andreas
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or