I have a grid attached to an ajax manager. When i sort it goes off to the server and returns the content however the OnResponseEnd event is only fired off the first time you sort the grid.
I need it to fire off everytime as I have some jquery that i need to run everytime in order to bind a function to links in one of the columns.
Any suggestions?
8 Answers, 1 is accepted
0
Ashley
Top achievements
Rank 1
answered on 18 Feb 2010, 09:31 PM
Bump
0
Hello Ash,
I am unable to reproduce the problem in a simple page. You can find attached a website in which the events are executed correctly. Could you try it and let me know what is different in your scenario?
Greetings,
Pavel
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.
I am unable to reproduce the problem in a simple page. You can find attached a website in which the events are executed correctly. Could you try it and let me know what is different in your scenario?
Greetings,
Pavel
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
Ashley
Top achievements
Rank 1
answered on 22 Feb 2010, 01:17 PM
Hi Pavel,
I was able to run your code successfully on its own but I tried copying and pasting it into my application, the client events still only fired once. I am able to see the ajax requests in firebug but the clients events aren't firing. The other thing I noticed is that the RadAjaxLoadingPanel only appears on the first sort and not after that.
Is there any other information I can provide you with to help resolve this problem?
Thanks,
Ash
0
Hello Ash,
Could you specify what version of the controls are you using? You can also try to run your project with the dll included in the attached sample (if it is different version than yours) and see if there is any difference.
Best wishes,
Pavel
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.
Could you specify what version of the controls are you using? You can also try to run your project with the dll included in the attached sample (if it is different version than yours) and see if there is any difference.
Best wishes,
Pavel
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
Ashley
Top achievements
Rank 1
answered on 22 Feb 2010, 11:00 PM
I should have mentioned earlier that this is in a user controls file in a Sitefinity website.
I am getting errors when trying to use your dll in the website:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
Line 1: <%@ Page Inherits="Telerik.Cms.Web.InternalPage" MasterPageFile="~/Sitefinity/Dummy.master" %>
Source File: /sitefinity/cmsentrypoint.aspx Line: 1
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
I have tried putting my dll in the sample app you sent across and it all works fine.
0
Hi Ash,
Can you test your Grid outside of the Sitefinity website? This will help us isolate if the problem is in RadGrid/RadAjax or in the project itself.
Regards,
Pavel
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.
Can you test your Grid outside of the Sitefinity website? This will help us isolate if the problem is in RadGrid/RadAjax or in the project itself.
Regards,
Pavel
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
Ashley
Top achievements
Rank 1
answered on 01 Mar 2010, 08:17 PM
I created a test.aspx in the /usercontrols folder of my sitefinity website and embedded the user control that contains the grid with the problem. The grid fired the OnResponseEnd function everytime, so looks like the problem is in Sitefinity somewhere. I'm not sure where I go from here, can you help in debugging this problem in this thread or is it time for a new one?
Thanks,
Ash
0
Hello Ash Gibson,
Greetings,
Radoslav Georgiev
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.
Thank you for getting back to us.
Sitefinity comes with the RadControls for ASP.NET AJAX built in. Each Sitefinity version is built against a specific version of the controls. So if this specific version of the Telerik.Web.UI.dll is not located in the bin directory you will experience the issue that you have described within your previous to last post. What has probably happened is that you have added the example sent to you to your Sitefinity project which has replaced the original Telerik.Web.UI.dll with a newer one. To fix this either place the version Sitefinity is looking for (get a blank project of the same Sitefinity version and take the Telerik.Web.UI.dll) or perform a binding redirect.
Now to the issue with the OnResponseEnd not firing. In the sample sent to you before the RadGrid for ASP.NET AJAX is used directly on the .aspx page where the Ajax Manager is. This page however is a standalone page. It does not use a master page or does not load WebUserControls (.ascx). However in Sitefinity the scenario is a little bit different. Sitefinity pages use master pages and then most of the controls you use a re wrapped in WebUserControls and uploaded to your Sitefinity controls toolbox. In scenarios like this the RadAjaxManager has to be used in a slightly different way. Please take a look at the following articles:
In a nutshell what you have to is to place the actual RadAjaxManager control in your master page. Then on the user control where you have the RadGrid wrapped in you should use RadAjaxManagerProxy control as described in above articles and subscribe to the event handlers by getting a reference of the actual RadAjaxManager and programmatically adding event handlers.
Greetings,
Radoslav Georgiev
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.