Philippe GRACA
Top achievements
Rank 1
Philippe GRACA
asked on 25 Feb 2009, 02:55 PM
Hi
I have a grid in a page (gridpage.aspx) and I'm using a RadWindow to allow edit for each item (editpage.aspx)
The edit page contains several fields and one "Update" button. It also containsa RadAjax manager to ajaxify the call to the "Update" button.
What is happening upon the update is that I'm using the Radajaxmanager.ResponseScripts method to close the radwindow and force the grid to rebind. What i would like to avoir in the RadAjax response is to have to carry all the viewstate. Is that possible? It will save some extra bandwith.
Regards
Philippe
I have a grid in a page (gridpage.aspx) and I'm using a RadWindow to allow edit for each item (editpage.aspx)
The edit page contains several fields and one "Update" button. It also containsa RadAjax manager to ajaxify the call to the "Update" button.
What is happening upon the update is that I'm using the Radajaxmanager.ResponseScripts method to close the radwindow and force the grid to rebind. What i would like to avoir in the RadAjax response is to have to carry all the viewstate. Is that possible? It will save some extra bandwith.
Regards
Philippe
4 Answers, 1 is accepted
0
Hi Philippe,
Have you tried the approach for invoking RadGrid rebind used in this demo? There it is used the RegisterStartupScript method and no RadAjaxManager is added.
You can review the corresponding help topic here as well.
Check it out and let me know if this helps.
All the best,
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.
Have you tried the approach for invoking RadGrid rebind used in this demo? There it is used the RegisterStartupScript method and no RadAjaxManager is added.
You can review the corresponding help topic here as well.
Check it out and let me know if this helps.
All the best,
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.
0
Philippe GRACA
Top achievements
Rank 1
answered on 25 Feb 2009, 04:15 PM
Hi,
in my case, i cannot use a detailsview control.
I've already used the code you're mentionning in other pages but still instead of only returning the javascript I need, the full html code for the edit page is being returned and then only the grid is rebind.
From a general perspective, It would be nice to be able to only return what we want in case what we want is only to execute a javascript. Will a Response.Clear or something like this do the trick?
Regards
Philippe
in my case, i cannot use a detailsview control.
I've already used the code you're mentionning in other pages but still instead of only returning the javascript I need, the full html code for the edit page is being returned and then only the grid is rebind.
From a general perspective, It would be nice to be able to only return what we want in case what we want is only to execute a javascript. Will a Response.Clear or something like this do the trick?
Regards
Philippe
0
Hello Philippe,
What I mean by suggesting to check out the Window Editing demo, was to try the code used for the Update button where it is used the RegisterStartupScript method instead of the RadAjaxManager ResponseScrips proproper, rather than using DetailView.
Can you check if you could replicate the undesired effect of the response on our online demo (here)?
Regarding the Response.Clear():
I am not sure if this would help until I know what could have caused the problem.
Therefore I suggest that you open a formal support ticket and try sending a sample project which reproduces the mentioned behavior.
Thank you in advance for the cooperation.
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.
What I mean by suggesting to check out the Window Editing demo, was to try the code used for the Update button where it is used the RegisterStartupScript method instead of the RadAjaxManager ResponseScrips proproper, rather than using DetailView.
Can you check if you could replicate the undesired effect of the response on our online demo (here)?
Regarding the Response.Clear():
I am not sure if this would help until I know what could have caused the problem.
Therefore I suggest that you open a formal support ticket and try sending a sample project which reproduces the mentioned behavior.
Thank you in advance for the cooperation.
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.
0
Philippe GRACA
Top achievements
Rank 1
answered on 26 Feb 2009, 02:59 PM
Hi and thx for the answer
Let me try to be maybe clearer :)
The click on the popup "save" button will initiate a postback that will then in the response add a Javascript to the page (RegisterStartupScript)
As a consequence, the server will return me not only the script to close the popup and rebind the grid but also the complete HTML page (with labels and inputs)
The radajax manager is more or less doing the same thing.
What I do imagine is
->The click on the popup "save" button initiates a postback that will then CLEAR the response and only return the necessary Javascript to the page with the CloseAndRebind and GetRadWindow functions only.
Regards
Philippe
Let me try to be maybe clearer :)
The click on the popup "save" button will initiate a postback that will then in the response add a Javascript to the page (RegisterStartupScript)
As a consequence, the server will return me not only the script to close the popup and rebind the grid but also the complete HTML page (with labels and inputs)
The radajax manager is more or less doing the same thing.
What I do imagine is
->The click on the popup "save" button initiates a postback that will then CLEAR the response and only return the necessary Javascript to the page with the CloseAndRebind and GetRadWindow functions only.
Regards
Philippe