This is a migrated thread and some comments may be shown as answers.

ClientEvents Not firing

1 Answer 123 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Cal
Top achievements
Rank 1
Cal asked on 09 Nov 2010, 08:29 PM
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>

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 10 Nov 2010, 04:26 PM
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
Tags
Ajax
Asked by
Cal
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or