Using RadComboBox in FormView

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    Telerik Admin
    Telerik Admin avatar
    1679 posts
    Member since:
    Oct 2004

    Posted 07 May 2008 Link to this post

    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


     
  2. PROJECT DESCRIPTION
    This project demonstrates how to bind and access RadComboBox for ASP.NET AJAX and it resides in EditItemTemplate/InsertItemTemplate of a FormView.

  3. 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"
  • Back to Top