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

Highlight on select

1 Answer 38 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Megan
Top achievements
Rank 1
Megan asked on 01 Nov 2011, 05:44 PM
Hi,
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!

1 Answer, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 03 Nov 2011, 01:57 PM
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" />
</asp:DropDownList>
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.

Greetings,
Niko
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.
Tags
FormDecorator
Asked by
Megan
Top achievements
Rank 1
Answers by
Niko
Telerik team
Share this question
or