Hi,
I have a page with a RadTreeView. Double-clicking an item on the tree opens the item in a RadWindow, using entirely client-side javascript.
When the RadWindow is closed by clicking the 'X', I use a client-side OnRadWindowClose event to pass the NavigateURL of the closed RadWindow to the server via ajaxRequest.
The problem is that my RadTreeView can be extremely large and the AjaxRequest causes the entire ViewState to be posted back to the server. I see this using HttpWatch.
This causes a very long delay when closing the RadWindow. I do not need to update any client-side controls when the RadWindow is closed. I simply want to record in the database that it was closed.
Is there a way to use RadAjaxManager to send the AjaxRequest without causing the ViewState to be posted back?
I have a page with a RadTreeView. Double-clicking an item on the tree opens the item in a RadWindow, using entirely client-side javascript.
When the RadWindow is closed by clicking the 'X', I use a client-side OnRadWindowClose event to pass the NavigateURL of the closed RadWindow to the server via ajaxRequest.
function OnRadWindowClose(radWindow) |
{ |
if (NoOfWindowsOpen > 1){ |
NoOfWindowsOpen -= 1; |
} |
else { |
NoOfWindowsOpen = 0; |
} |
RaiseServerSideAjaxRequest('closewindow', radWindow.GetUrl()); |
} |
function RaiseServerSideAjaxRequest(event, argument) |
{ |
var tempAjaxManager = $find("<%=RadAjaxManager1.ClientID%>"); |
if (tempAjaxManager) |
{ |
ajaxManager = tempAjaxManager; |
} |
ajaxManager.ajaxRequest(event + ',' + argument); |
} |
The problem is that my RadTreeView can be extremely large and the AjaxRequest causes the entire ViewState to be posted back to the server. I see this using HttpWatch.
This causes a very long delay when closing the RadWindow. I do not need to update any client-side controls when the RadWindow is closed. I simply want to record in the database that it was closed.
Is there a way to use RadAjaxManager to send the AjaxRequest without causing the ViewState to be posted back?