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

Grid.SelectedIndexes is empty when clicking select button first time

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 11 Feb 2009, 06:07 PM
Hello,

My code does not use a RadAjaxManager or panel to async postback.  It's a pretty standard grid definition, using filtering and sorting, and include a select button.

When clicking the select button, the very first time the SelectedIndexChanged event fires and the command name is select, but the selectedindexes collection is empty.  Any time after that, it works fine.

Any ideas why?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 12 Feb 2009, 03:08 PM
Hello Brian,

Your item will be selected after the SELECT command.  To access the desired collection I suggest you use SelectedIndexChanged handler.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or