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

duplicated panel after a ajax request

1 Answer 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 26 Nov 2013, 02:08 PM
Hello,

I work on a page with different fields for a form. Some are updated when the user picks dates. I added a repeater in my page that should be updated to. This repeater is in a panel and my panel is in the RadAjaxManagerProxy. After the update everything is fine except that my panel has been duplicated in another location in my page. Also the duplicated panel is updated but not the original one. If I try a button of the original repeater, I have an error: Invalid JSON primitive: .

Any idea about this duplication?
Thank you

Here is some of my code simplified
[...]
<asp:Panel ID="myPanel" runat="server">
<tr>
<td colspan="2">
<rpt:myRepeater ID="myRepeater" runat="server" Visible="false"/>
  </td>
</tr>
</asp:Panel>
[...]
<telerik:RadAjaxManagerProxy ID="rampPortfolioDetail" runat="server"> 
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rdpSettlementDate">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="textbox1"/>
                <telerik:AjaxUpdatedControl ControlID="raddatepicker1" LoadingPanelID="myloadingpanel"/>
                <telerik:AjaxUpdatedControl ControlID="literal1"/>
                <telerik:AjaxUpdatedControl ControlID="radatepicker2"/>
                <telerik:AjaxUpdatedControl ControlID="literal2"/>
                <telerik:AjaxUpdatedControl ControlID="sharedCalendar"/>
                <telerik:AjaxUpdatedControl ControlID="myPanel" />
                <telerik:AjaxUpdatedControl ControlID="labelTest"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 29 Nov 2013, 12:11 PM
Hi Greg,

Duplicating some of the controls on the page could be due to the code-behind if controls are added or removed from the page dynamically. From the provided snippet it would be hard to determine what could be causing the problem.

Could you elaborate more on the scenario you have? There is a RadAjaxManagerProxy so I am guessing the code is from UserControl. Is the whole user control duplicated on the page or just the repeater? Does the problem occur with a standard Asp Repeater also?

Try disabling Ajax on the page by commenting out RadAjaxManager or setting its EnableAJAX property to false and see if any error is thrown. I would appreciate it if you could share your full markup with the code-behind. This would help us have better understanding of your scenario and could try to replicate the problem locally.

Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
General Discussions
Asked by
Greg
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or