Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > ComboBox > Using RadComboBox in FormView

Answered Using RadComboBox in FormView

Feed from this thread
  • Posted on May 7, 2008 (permalink)

    Requirements

    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"
Attached files

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > ComboBox > Using RadComboBox in FormView