Hi
I have a page called LocationSearch.aspx that has RadGrid that lists Locations.
If you have one selected and you click an Edit button at the top of the page a RadWindow appears.
In it, a separate page called AddEditLocations.aspx that gives you a form populated with the selected locations details.
My RadWindow declaration looks like this.
The Edit button has an OnClick event that calls this javascript on the LocationSearch page.
This works a treat.
However, now that I am in the RadWindow's AddEditLocation page, I need to do 3 things.
1. I need to have an OnClick event that posts back so I can write to the DB.
2. Next, I need the RadWindow to Close
3. I need to LocationSearch page to refresh it's RadGrid to reflect data that may have changed during the edit.
Point 1 I have sussed. However I can't work out how this RadWindow can close itself or how it can get the parent page to refresh.
The reason we put the edit form in a separate page is that we need to reuse it elsewhere on the site. It remains an option that I may have to put the AddEditLocation.aspx form in the RadWindow on the LocationSearch page. We would rather not do that but if I had to be that way let me know please.
Any tips would be appreciated.
Brad
I have a page called LocationSearch.aspx that has RadGrid that lists Locations.
If you have one selected and you click an Edit button at the top of the page a RadWindow appears.
In it, a separate page called AddEditLocations.aspx that gives you a form populated with the selected locations details.
My RadWindow declaration looks like this.
<
telerik:RadWindow
ID
=
"rwAddLocation"
NavigateUrl
=
"AddEditLocation.aspx"
Title
=
"Add/Edit Location"
Modal
=
"true"
runat
=
"server"
Width
=
"700"
Height
=
"600"
/>
The Edit button has an OnClick event that calls this javascript on the LocationSearch page.
function showAddLocationForm(){
var win = $find("<%#rwAddLocation.ClientID %>");
win.show();
win.center();
}
This works a treat.
However, now that I am in the RadWindow's AddEditLocation page, I need to do 3 things.
1. I need to have an OnClick event that posts back so I can write to the DB.
2. Next, I need the RadWindow to Close
3. I need to LocationSearch page to refresh it's RadGrid to reflect data that may have changed during the edit.
Point 1 I have sussed. However I can't work out how this RadWindow can close itself or how it can get the parent page to refresh.
The reason we put the edit form in a separate page is that we need to reuse it elsewhere on the site. It remains an option that I may have to put the AddEditLocation.aspx form in the RadWindow on the LocationSearch page. We would rather not do that but if I had to be that way let me know please.
Any tips would be appreciated.
Brad