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

Ajax Manager creating duplicate controls

7 Answers 157 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Colin Mulcahy
Top achievements
Rank 1
Colin Mulcahy asked on 16 Oct 2008, 12:39 AM
Hi,

(working with 2008 Q2 latest trial).

I have a page with a Toolbar, Tabstrip and Multipage.

The Tabstrip and Mutipage are placed in a panel.

The Toolbar can update the containing panel.
The Tabstrip can update the Multipage.

If add tabstrip/multipage ajaxsettings to the manager it works fine.

When I add the toolbar/panel ajax settings it causes problems by adding duplicate updatepanel id's below the panel containing the tabstrip and multipage.

The same can be seen in the page source code on Teleriks on sample page for Show/Hide Web Controls (http://demos.telerik.com/aspnet/prometheus/Ajax/Examples/Common/ShowingWebControls/DefaultCS.aspx).

Look at th page source and you will see the following:

<div id="Panel1Panel">
    <div id="Panel1" style="height:75px;width:226px;">
        <br />
         <br />
        <div id="Label1Panel">
            <span id="Label1"></span>
        </div>
    </div>
    <div id="Label1Panel"> </div>
</div>

In my own code this is causing issues like ajaxloadingpanel not to show on ajax.

Can you please explain this behaviour?

I also have issues with Sys.Webforms.PageRequestManager errors (http://www.telerik.com/community/forums/thread/b311D-bgdech.aspx)

Thanks,

Colin

7 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 20 Oct 2008, 10:26 AM
Hello Colin,

Please refer to the following forum post which discuss similar behaviour. Review the provided directions and verify if this helps.

Regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Colin Mulcahy
Top achievements
Rank 1
answered on 20 Oct 2008, 08:47 PM
Hi Maria,

Thank you for your reply.

I read through the the post you highlighted.

I can confirm that I am not dynamically adding duplicate ajax settings in code behind or in place.

Did you have a look at your own online example that I posted above? It is displaying the same duplication behaviour.

To make things worse, if you highlight and select the area on the page you can see the extra div's that are created. Only for the fact that the parent container is larger than the area required you would not see it visually.

This problem is easily reproduced with simple examples. Anywhere where a master div is updated by a control. Within this master div are other controls contained in div's that are also updated by themselves or other controls.

Any thoughts or comments on why your own example is doing it?

Eager to understand.... :-)

Colin
0
Colin Mulcahy
Top achievements
Rank 1
answered on 23 Oct 2008, 11:45 AM
Hi Maira,

Just wondering if you have any insight yet on why RadAjaxManager is rendering duplicate nested update panels?

Example: http://demos.telerik.com/aspnet/prometheus/Ajax/Examples/Common/ShowingWebControls/DefaultCS.aspx

Thanks,

Colin
0
Maria Ilieva
Telerik team
answered on 23 Oct 2008, 02:27 PM
Hi Colin Mulcahy,

 We are currently researching on this behaviour. As soon as we come to any conclusions we will update this forum thread

Greetings,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Colin Mulcahy
Top achievements
Rank 1
answered on 23 Oct 2008, 04:21 PM
Hi Maria,

Thanks for the update.

Colin
0
Josh Anderson
Top achievements
Rank 1
answered on 23 Feb 2009, 10:18 PM
Was anyone ever able to make progress on this problem?  I, too, am having an issue with control duplication, but it has happened on a page that previously worked.  I made no changes to the functionality of the control in question, so I'm at a loss as to what the cause may be.  As the previous posters noted, when I inspect the rendered HTML I see that multiple update panels are created, and that apparently when the target control is being updated it's updating the duplicated control, not the original one.

To give you more detail, my scenario involves a DropDownList that is being updated after a NodeClick event on a RadTreeView.  All controls reside in a div that has "display: none" at page load but that is shown inside a Thickbox.  Again, previously this worked and was tested fine, but suddenly today it's not working.  I, too, can confirm that there are no duplicated AjaxSettings in my AjaxManager.

An interesting side note is that after a couple of clicks to fire the ajax change, if I hide the div by cancelling the Thickbox window then show it again, the page seems to lose the ajax bindings and subsequent node clicks result in a full page postback.

If need be I can log a support ticket and provide login access to the page in question so that you can view the behavior firsthand.

Josh
0
Iana Tsolova
Telerik team
answered on 24 Feb 2009, 08:22 AM
Hello Josh,

It would be great if you could send us a sample project illustrating the described behavior. Thus I could debug it locally and investigate the issue in depth so I could provide a proper solution.

Thank you for your cooperation in advance.

Sincerely yours,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Colin Mulcahy
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Colin Mulcahy
Top achievements
Rank 1
Josh Anderson
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or