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

[Solved] Basic Question: ajaxRequest

1 Answer 89 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David A.
Top achievements
Rank 1
David A. asked on 02 Nov 2011, 06:50 AM
Hi,

Sorry for the simplicity of this question, but I am not sure when I would want to use ajaxRequest vs. just calling .open().  What is the rule of thumb on when you should use ajaxRequest? 

Thank you,
David A.

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 02 Nov 2011, 09:16 AM
Hello David,

The open() method just displays a hidden/closed window. The ajaxRequest() method fetches data from the server and updates the window content area -- and it doesn't open (show) the window. Therefore, if you want to refresh the data in the window, use ajaxRequest, and if you want just to show a hidden window (without reloading its data), use open.

Kind regards,
Alex Gyoshev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Window
Asked by
David A.
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or