Greetings,
I have a radgrid with an image on each lines which opens a radwindow. When i close My radwindow i need to refresh the grid which is in the parent page.
This is how i close my radwindow:
I tried to do it that way in my parent page:
JS:
.CS
It doesn't work. Is there anything i'm missing
(got a JS error with IE ( Property id null or undefined ), & no error but not working at all with firefox)
thanks in advance
I have a radgrid with an image on each lines which opens a radwindow. When i close My radwindow i need to refresh the grid which is in the parent page.
This is how i close my radwindow:
<
asp:Button
ID
=
"Validation"
runat
=
"server"
Text
=
"Enregistrer et envoyer l'offre"
OnClick
=
"Validation_Click"
OnClientClick
=
"if(Page_ClientValidate()) CloseDialog()"
UseSubmitBehavior
=
"false"
/>
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function CloseDialog() {
GetRadWindow().close();
return true;
}
I tried to do it that way in my parent page:
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
EnableShadow
=
"true"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"RadWindow1"
runat
=
"server"
Width
=
"700px"
Height
=
"500px"
Title
=
"Details du ticket"
Skin
=
"WebBlue"
Behaviors
=
"Close, Move"
Modal
=
"true"
OnClientClose
=
"closeRadWindow"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
OnAjaxRequest
=
"RadAjaxManager1_AjaxRequest"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadAjaxManager1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
script
type
=
"text/javascript"
>
function closeRadWindow()
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
}
</
script
>
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
RadGrid1.MasterTableView.SortExpressions.Clear();
RadGrid1.MasterTableView.GroupByExpressions.Clear();
RadGrid1.Rebind();
}
It doesn't work. Is there anything i'm missing
(got a JS error with IE ( Property id null or undefined ), & no error but not working at all with firefox)
thanks in advance