OnClientSelectedIndexChanged not working in firefox

5 posts, 0 answers
  1. Lubna Ansari
    Lubna Ansari avatar
    65 posts
    Member since:
    Feb 2010

    Posted 12 Nov 2010 Link to this post

    Hi,

    I have a OnClientSelectedIndexChanged event on my combo box which is working fine in IE but not in Firefox. I'm using telerik version 2010.2.929.35.

    Regards,
    Lubna.
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 12 Nov 2010 Link to this post

    Hello Lubna,

    It's hard to say why it works in IE and not in Firefox without seeing what you're doing in the event. Most likely you're using IE-specific DOM properties or something.

    I would suggest posting the code you're using, so we can figure out the issue.
  3. Thippa Reddy
    Thippa Reddy avatar
    5 posts
    Member since:
    Nov 2010

    Posted 15 Nov 2010 Link to this post

    Yes, For me also it's not working,It working fine in I.E if I use 2010.2.826.35 version.
    If I use 2009.3.1208.35 Version then even in IE also not working.

    Thanks,
    Thippa Reddy.
  4. Natbar
    Natbar avatar
    1 posts
    Member since:
    Apr 2011

    Posted 21 Apr 2011 Link to this post

    function

     

     

    OnClientSelectedIndexChanged(item) {

     

     

     

     

    var pnlHome = document.getElementById("<%= pnlHome.ClientID %>");

     

     

     

     

    if (item.get_value() == '0') {

     

     

    pnlHome.style.display =

     

    'block';

     

     

    }

     

     

     

    else {

     

     

    pnlHome.style.display =

     

    'none';

     

     

    }

     

     

     

    if (item.get_value() == '1') {

     

     

    window.location.href(

     

    "client_manufacturing.aspx");

     

     

    }

     

     

     

    else if (item.get_value() == '2') {

     

     

    window.location.href(

     

    "client_hospitality.aspx");

     

     

    }

     

     

     

    else if (item.get_value() == '3') {

     

     

    window.location.href(

     

    "client_consumer.aspx");

     

     

    }

     

     

     

    else if (item.get_value() == '4') {

     

     

    window.location.href(

     

    "client_security.aspx");

     

     

    }

     

     

     

    else if (item.get_value() == '5') {

     

     

    window.location.href(

     

    "client_tour_travel.aspx");

     

     

    }

     

     

     

    else {

     

     

    window.location.href(

     

    "client_chemicals.aspx");

     

     

    }

     

    }

  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 26 Apr 2011 Link to this post

    Hi Natbar,

    The code snippet provided shows that you are using a wrong declaration of the event handler function.

    Please refer to the following help article giving information about this client-side event and what should be the declaration of the event handler function for it.

    Also, if you want to get a reference to the client-side object of a particular control, you should use $find instead of document.getElementById function.

    All the best,
    Dimitar Terziev
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top