OnClientSelectedIndexChanged fires twice

4 posts, 0 answers
  1. Joseph
    Joseph avatar
    135 posts
    Member since:
    Sep 2007

    Posted 09 Apr 2010 Link to this post

    Hi guys,

    I am trying to do some logic when a new value is selected from the combobox.

    I hooked up a callback function to the OnClientSelectedIndexChanged event. When I select a new element the event fires and when I click anywhere else ( the Combobox will lose focus) the event will fire again.

    How can I overcome this?
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 14 Apr 2010 Link to this post

    Hello Joseph,

    I tried to reproduce the issue on our side but without success.
    Could you please explain in more details your implementation and paste the code here?

    Kind regards,
    Kalina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Vivek Verma
    Vivek Verma avatar
    3 posts
    Member since:
    Feb 2010

    Posted 15 Aug 2010 Link to this post

    I am facing exactly the same issue this is so frustrating , telerik gives hundreds of features but when you go ahead to implement them  most of them just fail even in the basic scenarious.

    I dont know what in this world makes a controls event fire twice but this occurs when the datavaluefield contains duplicate values so in case the last selected value is equal to the current selected value the event fires twice.
     
    This is lack of quality testing
  4. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 16 Aug 2010 Link to this post


    Hi Vivek Verma,

    Please note that the values of RadComboBox items have to be unique.
    You can find more details about this topic here.

    Greetings,
    Kalina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top