Posted
on May 7, 2008
(permalink)
| RadControls version |
RadCombobox for ASP.NET AJAX
Telerik.Web.UI (v.2008.1.415)
|
| .NET version |
2.0
|
| Visual Studio version |
2005
|
| programming language |
C#
|
| browser support |
all browsers supported by RadControls
|
PROJECT DESCRIPTION
This project demonstrates how to bind and access RadComboBox for ASP.NET AJAX and it resides in EditItemTemplate/InsertItemTemplate of a FormView.
Client-side access:
- Using Telerik.Web.UI.RadComboBox.ComboBoxes array:
| var combo = Telerik.Web.UI.RadComboBox.ComboBoxes[0]; |
- Using a global javascript variable and subscribing to OnClientLoad event:
| <script type="text/javascript"> |
| var citiesCombo; |
| |
| function OnClientLoadHandler(sender, eventArgs) |
| { |
| citiesCombo = sender; |
| //now citiesCombo contains a reference to the combobox and can be used later |
| } |
| </script> |
Server-side access:
| RadComboBox combo = (RadComboBox)FormView1.FindControl("RadComboBox1"); |
| combo.Skin = "Office2007"; |