This is a migrated thread and some comments may be shown as answers.

nesting a radGrid inside a radwindow

3 Answers 116 Views
Window
This is a migrated thread and some comments may be shown as answers.
Drew
Top achievements
Rank 1
Drew asked on 13 Jan 2017, 01:53 AM

Hey, I'm having trouble getting a grid to popup inside the radwindow. getting the error- Object reference not set to an instance of an object.

I have a button that upon being clicked rebinds the chart and sets the popBlueBoxSales.VisibleOnPageLoad = true;

The controls are all properly updated in the AjaxSettings.

Here is the radwindow and grid. Thanks for the help!

<telerik:RadWindow ID="popBlueBoxSales" runat="server" Width="300px" Modal="true" Height="300px" Title="Description">
            <ContentTemplate>
                <telerik:RadGrid runat="server" ID="grdBlueBoxSalesQ" Height="270px" Width="90%" AllowPaging="true" OnItemCommand="grdBlueBoxSalesQ_ItemCommand" AllowSorting="true" Font-Size="Small" OnNeedDataSource="grdBlueBoxSalesQ_NeedDataSource" Visible="true" style="height:auto; margin-bottom:2%; margin-left:5%">
                    <ClientSettings AllowColumnsReorder="true" AllowExpandCollapse="true" Selecting-AllowRowSelect="true" ReorderColumnsOnClient="true">
                        <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
                        AllowColumnResize="True"></Resizing>
                    </ClientSettings>
                        <MasterTableView CommandItemDisplay="Bottom" PageSize="5" AutoGenerateColumns="false">
                            <CommandItemTemplate>
                              <div style="float: right">
                              <asp:LinkButton ID="btnExportExcel" runat="server" CommandName="Export" >
                              <asp:Image runat="server" BorderStyle="None" ImageUrl="~/Images/Export.png" Width="16px" />&nbsp;Excel Export</asp:LinkButton>
                              </div>
                            </CommandItemTemplate>
                        <PagerStyle Mode="NextPrevAndNumeric" PageSizes="3,5,10" />
                   <Columns>
                                <telerik:GridBoundColumn DataField="ProjectDescription" HeaderText="Project Description" AutoPostBackOnFilter="True"
                                SortExpression="" CurrentFilterFunction="StartsWith"  />
                             </Columns>
                     </MasterTableView>
                 </telerik:RadGrid>
            </ContentTemplate>
        </telerik:RadWindow>

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 17 Jan 2017, 01:58 PM
Hi Drew,

I am afraid that the provided information was not enough for us to reproduce the problem nor determine the cause for it. Would it be possible for you to prepare a simplified runnable project where the issue can be replicated and tested further?

Meanwhile, I will advice that you examine the following help article and make sure that the suggested configurations are also made on your side:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Exporting/export-from-ajaxified-grid


Regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Drew
Top achievements
Rank 1
answered on 17 Jan 2017, 03:57 PM

Hey I really appreciate the concern, but I've used a lot of css and a div as a popup with my grid in it and it works wonderfully. Have a wonderful day.

Best,

Drew

0
Vessy
Telerik team
answered on 18 Jan 2017, 03:45 PM
Hi,

I am glad you have found a solution suitable to your needs, Drew. Thanks a lot for the update.

Regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Window
Asked by
Drew
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Drew
Top achievements
Rank 1
Share this question
or