SelectedIndexChanged firing when a button on the form is pressed.

3 posts, 0 answers
  1. Pete
    Pete avatar
    11 posts
    Member since:
    Feb 2011

    Posted 30 Dec 2013 Link to this post

    Hi,

    I have a RadGrid with a selectedindexchanged event. When I click on a row, the event fires, and I can do what I want. However, after selecting a row, if I click a button on the form (nothing to do with the grid), the selectedindexchanged event fires again, and I don't get the button press.



    Any ideas how to stop this please?



    Thanks

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Dec 2013 Link to this post

    Hi Pete,

    Unfortunately I was not able to reproduce the issue. Actually the SelectedIndexChanged event of RadGrid will be raised only when you trigger a selection from Select/Deselect GridButtonColumn or if you have set property AllowRowSelect and EnablePostBackOnRowClick to true. Please provide  the exact steps or the code to reproduce the issue.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pete
    Pete avatar
    11 posts
    Member since:
    Feb 2011

    Posted 30 Dec 2013 Link to this post

    Hi,

    I have gone with ItemCommand and checking for RowClick - this seems to work for me



    Thanks



    Pete


Back to Top