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

Using an Ajax Panel on the MasterPage

1 Answer 56 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 28 Jan 2009, 01:51 AM
I am relatively new to AJAX and would like to ask if there are any examples in the Telerik resources that would demonstrate how to send text to a panel on the MasterPage.

Here is how I visualize it.

The RadGrid is using a ScriptManager and UpdatePanel to AJAX'ify the grid to not page refresh when the user goes into Edit mode using a UserDefined template. (not a web control).  This works fine.

I want to at that point tap into an AJAX event to send helpful information to the MasterPage's AJAX panel to give the user feedback. 

As in example, on the site I am building the site displays Food Menu Items on a restaurant's online menu using 3 levels of GridTableViews (two nested).

The user can INSERT Food Categories using the built in EditForms type of editing, (first or grandparent band) and as they do I would for instance want to display a message stating, "The new Food Category will not display until you insert or edit an existing Food Menu Item and assign the new Food Category to that item".

Can someone offer a link on this site to get me started?

Thanks

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 30 Jan 2009, 03:23 PM
Hi Reid,

Thank yo for the explanation.

I can offer two possible approaches for your case:

  1. Using RadAjaxManager on the master page to ajaxify the grid in the content page as demonstrated in this demo. Thus when a grid item is switched in edit mode, you can reference the ajax manager on the master page by its id (using Me.Master.FindControl(ajaxManagerId) call from the code-behind of the content page) and display user-friendly message to the end user. This can be done using either the Alert method of the manager or its ResponseScripts collection.
  2. Using RadAjaxPanel in the master as opposed to RadAjaxManager in the same manner as in point 1. The only difference in this case is that you should reference the RadAjaxPanel instance instead RadAjaxManager and utilize its ResponseScripts collection.
Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Reid
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or