or

private void LoadBehandelaars(int toInt32) { DataTable behandelaar = new DataTable(); List<User> Behandelaars = _clientenFunctions.GetBehandelaarsByDiscipline(Convert.ToInt32(Session["cate"])); behandelaar.PrimaryKey = new DataColumn[]{ behandelaar.Columns.Add("NestorNummer",typeof(string))}; behandelaar.Columns.Add("UserName", typeof (string)); foreach (User user in Behandelaars) { behandelaar.Rows.Add(new object[] { user.NestorNummer, user.UserName } ); } GridDropDownColumn BehanderlaarColumn = new GridDropDownColumn(); BehanderlaarColumn.HeaderText = "Behandelaar"; BehanderlaarColumn.DataSourceID = behandelaar.ToString(); }<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="ListShowAccreditation"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ListShowAccreditation" LoadingPanelID="RadAjaxLoadingPanel1"> </telerik:AjaxUpdatedControl> <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1"></telerik:AjaxUpdatedControl> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel><telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="Center" RelativeTo="Element" Width="400px" Height="200px" Animation="Resize" HideEvent="LeaveTargetAndToolTip" Skin="Default" OnAjaxUpdate="OnAjaxUpdate" OnClientHide="OnClientHide" RenderInPageRoot="true" AnimationDuration="200"></telerik:RadToolTipManager><asp:Label ID="Label1" runat="server" /><telerik:RadListView ID="RadListView1" ItemPlaceholderID="PlaceHolder_ListShowAccredit" runat="server" OnSelectedIndexChanged="ListBox_SelectedIndexChanged" DataValueField="AccreditationID" AutoPostBack="true"> <LayoutTemplate> <asp:PlaceHolder ID="PlaceHolder_ListShowAccredit" runat="server" /> </LayoutTemplate> <ItemTemplate> <asp:Label ID="lblAccreditID" runat="server" Text='<%# Eval("AccreditationID") %>' Visible="false" /> <a> <asp:Label ID="lblAccredit" runat="server" Text='<%# Eval("Name") %>' ForeColor="#0083BA" Visible="true" /> <asp:Label ID="lblComma" Text=", " ForeColor="#0083BA" runat="server" /></a> </ItemTemplate></telerik:RadListView>private void UpdateToolTip(string elementID, UpdatePanel panel) { Control ctrl = Page.LoadControl("AccreditationPopup.ascx"); panel.ContentTemplateContainer.Controls.Add(ctrl); UCAccreditationPopup details = (UCAccreditationPopup)ctrl; details.ID = elementID; } protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) { this.UpdateToolTip(args.Value, args.UpdatePanel); } protected void ListBox_SelectedIndexChanged(object sender, EventArgs e) { this.RadToolTipManager1.TargetControls.Clear(); ListShowAccreditation.DataBind(); }Hi,
I have this scenario:
In the ascx UserControl I have RadAjaxManagerProxy and some controls ajax linked by this RadAjaxManagerProxy.
Everything works fine with one exception. I found in Firebug that every ajax postback in user control causes refresh of full UserControl area, not just control which is target of ajax.
Is possible to achieve behavior that AJAX in user control change only target (=UpdatedControls) control?
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="btnCheck"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Label1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy>