nesting a radGrid inside a radwindow

4 posts, 0 answers
  1. Drew
    Drew avatar
    2 posts
    Member since:
    Aug 2016

    Posted 12 Jan Link to this post

    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>

  2. Vessy
    Admin
    Vessy avatar
    1581 posts

    Posted 17 Jan Link to this post

    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.
  3. Drew
    Drew avatar
    2 posts
    Member since:
    Aug 2016

    Posted 17 Jan in reply to Vessy Link to this post

    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

  4. Vessy
    Admin
    Vessy avatar
    1581 posts

    Posted 18 Jan Link to this post

    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.
Back to Top