ClientEvents Not firing

2 posts, 0 answers
  1. Cal
    Cal avatar
    4 posts
    Member since:
    Oct 2010

    Posted 09 Nov 2010 Link to this post

    I have a case with following control structure (described below), even thought the Ajax is happening and the target drop down is being populated, the client events are not being fired.

    UserControl
      --> RadCombo: Inside it I have an item template which has a RadTreeView, the structure like this

        
    <telerik:RadComboBox ID="lstTransTypes" runat="server" MarkFirstMatch="true" Skin="Vista"
                EmptyMessage="Select tranaction Type" AllowCustomText="true" Width="100%" AutoPostBack="True"
                OnSelectedIndexChanged="lstTransTypes_SelectedIndexChanged">
                <ItemTemplate>
                    <div id="div1">
                        <telerik:RadTreeView ID="tvwTransTypes" DataFieldID="id" DataFieldParentID="parentid"
                            Skin="Vista" CheckBoxes="true" CheckChildNodes="true" DataTextField="valuetext"
                            runat="server" Width="400px" Height="250px" OnNodeCheck="tvwTransTypes_NodeCheck">
                            <DataBindings>
                                <telerik:RadTreeNodeBinding Expanded="False" />
                            </DataBindings>
                        </telerik:RadTreeView>
                    </div>
                </ItemTemplate>
                <Items>
                    <telerik:RadComboBoxItem />
                </Items>
            </telerik:RadComboBox>

    and the Ajax proxy is setup like this:
    <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="lstTransTypes">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lstFilter" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelHeight="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
           
          
        </AjaxSettings>
                 
    </telerik:RadAjaxManagerProxy>

  2. Marin
    Admin
    Marin avatar
    1057 posts

    Posted 10 Nov 2010 Link to this post

    Hi Cal,

    You should also ajaxify the RadComboBox control itself, this way it will trigger postbacks to the server and hit the OnSelectedIndexChanged event. Also use the RadAjaxManagerProxy only if you use master/content pages or WebUserControl, otherwise for standard purposes you can use the RadAjaxManager control.
     Here is a code illustrating this:
    <telerik:RadAjaxManager ID="AjaxManagerProxy1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="lstTransTypes">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="lstFilter" LoadingPanelID="RadAjaxLoadingPanel1"
                                UpdatePanelHeight="" />
                                <telerik:AjaxUpdatedControl ControlID="lstTransTypes" LoadingPanelID="RadAjaxLoadingPanel1"/>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>

    If the problem persists we will appreciate further details of the code and what events exactly do not fire. More information on RadAjaxManager and RadAjaxManagerProxy can be found here:
    http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html
    http://www.telerik.com/help/aspnet-ajax/ajax-manager-proxy.html

    Kind regards,
    Marin
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top