Using RadComboBox in FormView
Cancel
The title field is required!
Thread is closed for posting
1
posts,
1
answers
-
Answer
63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
1572
posts
Member since:
Oct 2004
Posted 07 May 2008
Link to this post
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"; |
-