Fire server side event

3 posts, 1 answers
  1. Anirban
    Anirban avatar
    7 posts
    Member since:
    May 2011

    Posted 04 Aug 2011 Link to this post

    I have a Radcombobox and a button.

    Onclientclick event of the button I have written a javascript function.
    From this function I want to fire the server side  OnSelectedIndexChanged event of the Combo box.

    How can I do it !
  2. Answer
    Helen avatar
    1052 posts

    Posted 08 Aug 2011 Link to this post

    Hello Anirban,

    You should select an item in order to fire the SelectedIndexChanged event.
    Please see the code below:


    <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true">
        <telerik:RadComboBoxItem runat="server" Text="0" Value="0" />
        <telerik:RadComboBoxItem runat="server" Text="1" Value="1" />
        <telerik:RadComboBoxItem runat="server" Text="10" Value="10" />
        <telerik:RadComboBoxItem runat="server" Text="15" Value="15" />
        <telerik:RadComboBoxItem runat="server" Text="20" Value="20" />
    <script type="text/javascript">
    function pageLoad() {
        var combo = $find("<%=RadComboBox1.ClientID %>");

    Protected Sub RadComboBox1_SelectedIndexChanged(sender As Object, e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)
    Handles RadComboBox1.SelectedIndexChanged
            Label1.Text = e.Text.ToString()
    End Sub

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Anirban
    Anirban avatar
    7 posts
    Member since:
    May 2011

    Posted 10 Aug 2011 Link to this post

    hi Helen,

    Thanks a lot.

Back to Top