Using RadComboBox in FormView

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 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

    This Code Library is part of the product documentation and subject to the respective product license agreement.