With the following code I have been able to pop-up a Radwindow with the results of my Radgrid populated. What I would like is for the user to be able to now work with the data within that window. (Sort, export, filter, etc.) However whenever I go to do that it closes the window and I have to click the button again to see the filtered results. Any suggestions on how to get it to stay?
When I have "EnableAJAX" set to false the result RadGrid show properly in the Results Window, however if I set it to "True" then it will not display properly.
Suggestions on how to get this all to work as I hope it would?
When I have "EnableAJAX" set to false the result RadGrid show properly in the Results Window, however if I set it to "True" then it will not display properly.
Suggestions on how to get this all to work as I hope it would?
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" Width="100%" EnableAJAX="True"><telerik:RadWindowManager ID="RadWindowManager1" runat="server" width="700px" Height="525px" ReloadOnShow="True"> <Windows><telerik:RadWindow runat="server" ID="Window" Behaviors="Move, Resize, Close, Reload" VisibleStatusbar="false"> <ContentTemplate> <telerik:RadGrid ID="_SearchResults" runat="server" AllowPaging="True" CellSpacing="0" GridLines="None" ShowGroupPanel="True" AllowSorting="True" PageSize="25" Width="100%" Height="700px" AllowFilteringByColumn="True" OnItemCommand="_SearchResults_ItemCommand"> <GroupingSettings CaseSensitive="False" /> <ExportSettings IgnorePaging="True" OpenInNewWindow="True" ExportOnlyData="True" FileName="CUCustomSearch"> <Excel AutoFitImages="True" Format="ExcelML" /> <Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin="45mm" BorderStyle="Medium" BorderColor="#666666"> </Pdf> </ExportSettings> <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" ReorderColumnsOnClient="True"> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings> <MasterTableView CommandItemDisplay="Top" InsertItemDisplay="Bottom" TableLayout="Fixed"> <CommandItemSettings ShowAddNewRecordButton="False" ShowExportToCsvButton="False" ShowExportToExcelButton="true" ShowRefreshButton="False" ShowExportToPdfButton="True" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"> </ExpandCollapseColumn> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"> </EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu></telerik:RadGrid></ContentTemplate></telerik:RadWindow></Windows></telerik:RadWindowManager>
Protected Sub _btnUpdateResults_Click(sender As Object, e As System.EventArgs) Handles _btnUpdateResults.Click
SetCriteria()
PopulateDateResults()
Dim script As String = String.Format("function ShowRadWindow() {{ $find(""{0}"").show(); Sys.Application.remove_load(ShowRadWindow); }} Sys.Application.add_load(ShowRadWindow);", Me.Window.ClientID)
RadScriptManager.RegisterStartupScript(Page, Page.[GetType](), "ShowRadWindow", script, True)
End Sub