Grid.SelectedIndexes is empty when clicking select button first time

2 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 11 Feb 2009 Link to this post

    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.
  2. Daniel
    Admin
    Daniel avatar
    4945 posts

    Posted 12 Feb 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top