Hello,
I am having a problem getting RadAjaxManager_AjaxRequest to update a control on the page. Here is my scenario...
I have a page with RadAjaxManager declared as below...
<telerik:RadAjaxManager ID="ramMain" runat="server" OnAjaxRequest="RamMain_AjaxRequest">
I have a standard asp:Repeater bound to a datasource server side, it is wrapped in an asp:Panel and it is laid out like so..
<div runat="server" id="caseStudyDisplayPanel" class="span6">
<asp:Repeater ID="rptrCaseStudies" runat="server" ClientIDMode="Static">
<HeaderTemplate>
<ul id="List">
</HeaderTemplate>
<ItemTemplate>
<li>
<div><%# DataBinder.Eval(Container.DataItem, "Name") %></div>
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</div>
Above the repeater I have a "Add New" button which pops a RadWindow, Containing a UserControl with a RadGrid. Each Row in the popup grid has a "Select" button, which triggers the RowSelected event. On RowSelected I do some small javascript functions then hand off to the ajaxManager.ajaxRequest request via javascript passing over the info from the selected row. So far so good, everything works to this point...the server side method (RamMain_AjaxRequest) gets fired and runs perfectly. The last thing I do in the request is add my newly selected row to the datasource, and rebind the repeater. On rebind (if I add a break point) I see exactly what I am expecting with the newly added item included in the datasource collection. Problem is the screen never updates. If I save at this point, and come back the item is there, so I know it is getting added, just not displayed.
What should be added to the AjaxSetting to accomplish this? It seems I have tried every combination of controls and cannot see the update. Here is my current seetings (which aren't working)
<telerik:AjaxSetting AjaxControlID="ramMain">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="caseStudiesWrapper" />
<telerik:AjaxUpdatedControl ControlID="rptrCaseStudies" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="caseStudiesWrapper">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="caseStudiesWrapper" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="rptrCaseStudies">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rptrCaseStudies" />
</UpdatedControls>
</telerik:AjaxSetting>
Thanks So Much!!
I am having a problem getting RadAjaxManager_AjaxRequest to update a control on the page. Here is my scenario...
I have a page with RadAjaxManager declared as below...
<telerik:RadAjaxManager ID="ramMain" runat="server" OnAjaxRequest="RamMain_AjaxRequest">
I have a standard asp:Repeater bound to a datasource server side, it is wrapped in an asp:Panel and it is laid out like so..
<div runat="server" id="caseStudyDisplayPanel" class="span6">
<asp:Repeater ID="rptrCaseStudies" runat="server" ClientIDMode="Static">
<HeaderTemplate>
<ul id="List">
</HeaderTemplate>
<ItemTemplate>
<li>
<div><%# DataBinder.Eval(Container.DataItem, "Name") %></div>
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</div>
Above the repeater I have a "Add New" button which pops a RadWindow, Containing a UserControl with a RadGrid. Each Row in the popup grid has a "Select" button, which triggers the RowSelected event. On RowSelected I do some small javascript functions then hand off to the ajaxManager.ajaxRequest request via javascript passing over the info from the selected row. So far so good, everything works to this point...the server side method (RamMain_AjaxRequest) gets fired and runs perfectly. The last thing I do in the request is add my newly selected row to the datasource, and rebind the repeater. On rebind (if I add a break point) I see exactly what I am expecting with the newly added item included in the datasource collection. Problem is the screen never updates. If I save at this point, and come back the item is there, so I know it is getting added, just not displayed.
What should be added to the AjaxSetting to accomplish this? It seems I have tried every combination of controls and cannot see the update. Here is my current seetings (which aren't working)
<telerik:AjaxSetting AjaxControlID="ramMain">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="caseStudiesWrapper" />
<telerik:AjaxUpdatedControl ControlID="rptrCaseStudies" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="caseStudiesWrapper">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="caseStudiesWrapper" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="rptrCaseStudies">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rptrCaseStudies" />
</UpdatedControls>
</telerik:AjaxSetting>
Thanks So Much!!