This is my .aspx code
<telerik:RadWindow ID="modalPopup" runat="server" Width="360px" Height="360px">
<ContentTemplate>
<p style="text-align: center;">
<h3>Data</h3>
<telerik:RadGrid ID="RGrid" runat="server" AllowPaging="true" AllowSorting="true" OnNeedDataSource="RGrid_NeedDataSource">
<MasterTableView AutoGenerateColumns="true"></MasterTableView>
</telerik:RadGrid>
</p>
</ContentTemplate>
</telerik:RadWindow>
<telerik:RadCodeBlock runat="server" ID="rdbScripts">
<script type="text/javascript">
function showDialogInitially() {
//alert("786");
var wnd = $find("<%=modalPopup.ClientID %>");
wnd.show();
// Sys.Application.remove_load(showDialogInitially);
}
</script>
</telerik:RadCodeBlock>
this is onbuttonclick code
<telerik:RadButton ID="btnPreview" Text="Preview" runat="server" OnClientClicked="showDialogInitially()" />
It is working only first time but as I close the window and press button again It does not open anymore.
i have already tried this code.
<telerik:RadButton ID="btnPreview" Text="Preview" runat="server" OnClientClicked="showDialogInitially" AutoPostBack="false" />
But its does not work