I have RadGrid inside of RadWindows. I need to refresh RadGrid every time when RadWindow shows. How to do it?
<
script
type
=
"text/javascript"
>
function closeCustomConfirm() {
$find("<%=rwApproveInstance.ClientID %>").close();
}
function ShowRadWindow() {
var oWnd = $find("<%=rwApproveInstance.ClientID %>");
oWnd.show();
}
</
script
>
<
telerik:RadWindowManager
runat
=
"server"
ID
=
"RadWindowManager1"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"rwApproveInstance"
Modal
=
"true"
Behaviors
=
"Close, Move"
VisibleStatusbar
=
"false"
Width
=
"800px"
Height
=
"700px"
runat
=
"server"
ReloadOnShow
=
"True"
ShowContentDuringLoad
=
"False"
>
<
ContentTemplate
>
<
div
class
=
"rwDialogPopup radconfirm"
>
<
div
>
<
telerik:RadGrid
ID
=
"rgApprovalInstance"
runat
=
"server"
AutoGenerateColumns
=
"False"
CellSpacing
=
"0"
GridLines
=
"None"
OnNeedDataSource
=
"rgApprovalInstance_NeedDataSource"
>
<
MasterTableView
DataKeyNames
=
"FieldName"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
></
CommandItemSettings
>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
AllowFiltering
=
"False"
AllowSorting
=
"False"
FilterControlAltText
=
"Filter FieldName column"
Groupable
=
"False"
HeaderText
=
"FieldName"
UniqueName
=
"FieldName"
DataField
=
"FieldName"
>
<
HeaderStyle
CssClass
=
"documents-table"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
AllowFiltering
=
"False"
AllowSorting
=
"False"
DataField
=
"FieldValue"
FilterControlAltText
=
"Filter FieldValue column"
Groupable
=
"False"
HeaderText
=
"FieldValue"
ReadOnly
=
"True"
UniqueName
=
"FieldValue"
>
<
HeaderStyle
CssClass
=
"documents-table"
/>
</
telerik:GridBoundColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
div
>
<
div
>
<
telerik:RadButton
runat
=
"server"
ID
=
"rbConfirm_Cancel"
Text
=
"Close"
OnClientClicked
=
"closeCustomConfirm"
>
</
telerik:RadButton
>
</
div
>
</
div
>
</
ContentTemplate
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>