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

Virtual Scrolling postback problem

7 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mehdi Baatout
Top achievements
Rank 1
Mehdi Baatout asked on 01 Oct 2010, 02:59 PM
Hi,
I am working with Telerik Ajax components of the framework 4.0.
In the web application I have a Master.Page in which I put a script manager in order to manage all ajax controls in  the different pages. in one of the pages in the application I implements a grid with paging and virtual scrolling as shown in the example:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpaging/defaultcs.aspx
the implementation of virtual scrolling error appears:
Microsoft JScript runtime error: Sys.InvalidOperationException: A Control IS Already With The associated element.
Someone there an idea??

7 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Oct 2010, 04:35 PM
Hello Mehdi,

Do you have another instance of RadAjaxManager in your application? Have in mind that you could have just one AjaxManager on the page and could handle the other ajax settings in the user controls by using RadAjaxManagerProxy control.

Additionally, please try replacing the asp:ScriptManager by RadScriptManager control and let me know if the issue still persists.

Regards,
Pavlina
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
0
Mehdi Baatout
Top achievements
Rank 1
answered on 04 Oct 2010, 09:32 AM
Hi,

thanks for the reply.

I replaced the RadAjaxManager client Page by RadAjaxManagerProxy and the error no longer appears.

But the grid event NeedDataSource  that I use in the virtual scrolling is not running.

In addition when I used the RadAjaxManager I performed the AjaxRequest event, but now I don't have this event with RadAjaxManagerProxy.

0
Pavlina
Telerik team
answered on 04 Oct 2010, 03:08 PM
Hello Mehdi,

The RadAjaxManagerProxy does not provide client-side functionality as the Manager does. There is no client-side object as well as functions like ajaxRequest/ajaxRequestWithTarget and client-side events. Instead, one can get the Manager instance through the GetCurrent static method similar to the ASP:ScriptManager control and call the master manager client-side methods if necessary.

Review the following help article for more information:
http://www.telerik.com/help/aspnet-ajax/ajax-manager-proxy.html

I hope this gets you started properly.

Best wishes,
Pavlina
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
0
Mehdi Baatout
Top achievements
Rank 1
answered on 06 Oct 2010, 11:23 AM
Hi,

in the link you gave me what should I put in the body of the two events and onRequestStart onResponseEnd???

In plus, I have followed is page recommended to the letter, but when I execute the same error appears and I have this message that appears above the grid: 3945 | UpdatePanel | ctl00_ctl00_ContentPlaceHolderCelab_gdvUsersListPanel |

if I try again to make an ajax request this error message appears: Could not find UpdatePanel with id 'ctl00_ctl00_ContentPlaceHolderCelab_gdvUsersListPanel'. If It Is Being Dynamically updated Then It Must Be Another inside UpdatePanel.

Best Regards.
0
Pavlina
Telerik team
answered on 07 Oct 2010, 03:23 PM
Hello Mehdi,

Based on the supplied information, it is hard to determine what is causing the error. Please open a formal support ticket and send us a small working project, demonstrating your full setup and showing the unwanted behavior. We will debug it locally and get back to you.

Thank you in advance for the cooperation.

Best wishes,
Pavlina
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
0
Mehdi Baatout
Top achievements
Rank 1
answered on 08 Oct 2010, 09:38 AM
Hi,

The problem has been result : In facts all the controls in the content page are in an updatePanel.

Removing this updatePanel the ajax problem has been result, but, when making scrolling the grid  load the next page from the database, but leaves the data as they are.
Debugging step by step it perceives it does not run the event code NeedDataSource.

best regards.

0
Pavlina
Telerik team
answered on 08 Oct 2010, 10:32 AM
Hi Mehdi,

Note that using UpdatePanel and RadAjaxManager in one application for updating same part of the page is not supported scenario. In your application I would suggest you to use single AjaxManager on the main page for ajaxify the controls in the subpages by getting reference to this manager and add its setting dynamically. Please review the following help topics:

http://www.telerik.com/help/aspnet-ajax/ajxajaxmasterpage.html
http://www.telerik.com/help/aspnet-ajax/ajxaddajaxsettingsprogrammatically.html

Kind regards,
Pavlina
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
Grid
Asked by
Mehdi Baatout
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Mehdi Baatout
Top achievements
Rank 1
Share this question
or