SelectedIndex = 'value' doesn't seem to work

2 posts, 0 answers
  1. Robert
    Robert avatar
    271 posts
    Member since:
    Mar 2011

    Posted 09 Apr 2013 Link to this post


    I've upgraded to library version 2013.1.403.40.
    For some reason I am unable to set the SelectedIndex value in code.

    if (radListBox.SelectedIndex <= -1)
        radListBox.SelectedIndex = 0;

    When the SelectedIndex = -1 and I try to set a value of 0, then the SelectedIndex value still remains as -1.
    The same applies if I try SelectedIndex++.

    Does anyone have suggestions? It used to work before upgrading.



  2. Ventzi
    Ventzi avatar
    114 posts

    Posted 12 Apr 2013 Link to this post

    Hi Robert,

    We are not aware of such bug. I've tried to reproduce the problem, but unfortunately I couldn't. If you are using 2013.1.403.40 of RadControls would you get the latest internal build and try to reproduce the issue again? If you are still experiencing any issues, could you open a support ticket and send as a sample project that recreates the issue in order for us to be able to observe it on our side and see what could be the cause of it.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top