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

Grid Width is greater than it should be when Grouping is applied

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 21 Mar 2011, 05:29 PM
Hi

I have a RadMultipage with a width Set at 100%, within the multipage i have a RadPageView also with a width of 100%, within the PageView i have a grid with a width of 100% the grid is defined as below see code example

My problem is that the grid extends beyond the width of the Pageview, my grid columns are bound at run time so am not specifying any column widths, if i collapse the grouping then the grid fits within the Pageview, how can i control the width when the grouping is expanded ?

MyGrid:
<telerik:RadGrid ID="GridAwaitingAction" runat="server" Skin="WebBlue" AllowPaging="True"
    AllowSorting="True" Culture="en-GB" GridLines="None" 
    AllowFilteringByColumn="True" Width="100%">
    <GroupingSettings GroupByFieldsSeparator=";" />
    <ClientSettings>
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowClick="RowClick" />
    </ClientSettings>
    <MasterTableView DataKeyNames="WSARecordID" Width="100%">
                    <GroupByExpressions>
        <telerik:GridGroupByExpression>
                                <SelectFields>
                <telerik:GridGroupByField FieldAlias="Status" FieldName="Status"></telerik:GridGroupByField>
            </SelectFields>
            <GroupByFields>
                <telerik:GridGroupByField FieldName="Status"></telerik:GridGroupByField>
            </GroupByFields>
        </telerik:GridGroupByExpression>
    </GroupByExpressions>
        <CommandItemSettings ExportToPdfText="Export to Pdf" />
        <RowIndicatorColumn>
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <Columns>
           
            <telerik:GridButtonColumn CommandName="ViewWSA" 
                ImageUrl="~/App_Themes/Merlin/Images/410.png" Text="Preview Report" UniqueName="ViewWSA">
            </telerik:GridButtonColumn>
           
        </Columns>
    </MasterTableView>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_WebBlue" 
        EnableImageSprites="True">
    </HeaderContextMenu>
</telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Mar 2011, 02:50 PM
Hello Anthony,

Thanks for the sample code. However, we cannot reproduce the behavior you are describing. I took the sample code you provided and put it in a sample page following a similar scenario you have. I am attaching the page for your reference. Please let me know if you manage to reproduce what you are getting in this project, and what steps to follow, so that we can test it too.

Kind regards,
Pavlina
the Telerik team
Tags
Grid
Asked by
Anthony
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or