0

In ASP.net Control is used DropDownList Onchange as followes: In ASCX:

onchange="dorefreshf();dorefreshs();"

When I replaced the DropDownList with a RadComboBox the JS doesn't work?

Any suggestions?

Alaa Alweish
  • 8,904
  • 16
  • 57
  • 84
  • are you using update panel of any kind e.g. RadAjaxPanel – codingbiz Sep 22 '12 at 14:58
  • Yes, ASP.net Update Panel, is it related? – Alaa Alweish Sep 22 '12 at 15:35
  • Check your browser console if there is any error. I encountered the problem sometimes ago. It's conflict between the Panel script and RadComboBox script. I think getting an updated verison of Telerik did it – codingbiz Sep 22 '12 at 15:38
  • i am using the latest version! however, i will try again, BTW, @endyourif, suggestion below worked for OnClick! why not for OnChange! – Alaa Alweish Sep 22 '12 at 15:46
  • does OnClick trigger a postback? Did you even set AutoPostBack="True"? – codingbiz Sep 22 '12 at 15:50
  • I don't think OnClick do a postback, that would explains why it works. The Onchange would cause postback and thus the conflict, but confirm this from your browser console for javascript error as I said earlier. However, that might not be it. – codingbiz Sep 22 '12 at 16:46

1 Answers1

1

Try changing (no pun intended) onchange to onclick.

endyourif
  • 2,186
  • 19
  • 33
  • @endyyourif, It's working!! but i need the onchange or onselectedindexchanged , i am wondering why the Onclick is working and Onchange is not!! – Alaa Alweish Sep 22 '12 at 15:44