Highlight on select

2 posts, 0 answers
  1. Megan
    Megan avatar
    12 posts
    Member since:
    Mar 2011

    Posted 01 Nov 2011 Link to this post

    After selecting an item in my Rad Form Decorated Drop Down List I want it to highlight so you can see the change.  I used the OnClientSelectedIndexChanged event as described here for the Combo Boxes on my page (it works great), but it doesn't work for a Drop Down List.  Any help would be greatly appreciated.  Thanks!
  2. Niko
    Niko avatar
    383 posts

    Posted 03 Nov 2011 Link to this post

    Hello Megan,

    Please, try setting your logic in the change event handler of the decorated select. Let's say that you have the following setup:
    <telerik:RadScriptManager ID="theScriptManager" runat="server" />
    <telerik:RadFormDecorator ID="theFormDecorator" runat="server" DecoratedControls="All" />
    <asp:DropDownList ID="theSelect" runat="server">
        <asp:ListItem Text="text1" />
        <asp:ListItem Text="text2" />
    You should handle the change event of the select and in the event handler you need to put the logic that you wish to implement:
    function pageLoad() {
        $addHandler(getSelect(), "change", changeSelectHandler);
    function changeSelectHandler() {
        //put your logic here
    function getSelect() { return $get("<%= theSelect.ClientID %>"); }
    Unfortunately, due to a bug, the change event of a decorated select will not fire under IE9. The good news is that this bug is addressed and the fix will be available with the upcoming release of the controls.

    Hope this helps.

    the Telerik team
    Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
  3. DevCraft R3 2016 release webinar banner
Back to Top