This is a migrated thread and some comments may be shown as answers.

OnClientSelectedIndexChanged not working in firefox

4 Answers 122 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Lubna Ansari
Top achievements
Rank 1
Lubna Ansari asked on 12 Nov 2010, 10:32 AM
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.

4 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 12 Nov 2010, 02:31 PM
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.
0
Thippa Reddy
Top achievements
Rank 1
answered on 15 Nov 2010, 02:42 PM
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.
0
Natbar
Top achievements
Rank 1
answered on 21 Apr 2011, 11:43 AM

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");

 

 

}

 

}

0
Dimitar Terziev
Telerik team
answered on 26 Apr 2011, 11:11 AM
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.

Tags
ComboBox
Asked by
Lubna Ansari
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Thippa Reddy
Top achievements
Rank 1
Natbar
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or