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

set columns to fit the radgrid

2 Answers 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
vvvv
Top achievements
Rank 1
vvvv asked on 26 Feb 2014, 11:47 PM
Hi, 
I have a radgrid which displays fine in all the browsers except IE. The columns are shrinked and there is a column of empty white space at the end of the grid. If I remove Usestaticheader property from client settings it works fine but then I  have to scroll to reach pagination. Any way where I could access both property in the grid?

<telerik:RadGrid ID="RadGrid1" runat="server" 
            GridLines="None" 
            EnableLinqExpressions="false"
            AllowFilteringByColumn="True" 
            AllowPaging="True" 
            AllowSorting="True" 
            AutoGenerateColumns="true"
            Visible="true" 
            Width="100%"
            CellPadding="0" 
            GroupingEnabled="false"
            Skin="Default" 
            AllowAutomaticUpdates="false" 
            ShowHeader="true" 
            EnableHeaderContextMenu="true" 
            ShowFooter="true" OnNeedDataSource="RadGrid1_NeedDataSource"
            OnDeleteCommand="RadGrid1_DeleteCommand" 
            OnItemCommand="RadGrid1_ItemCommand"
            OnDataBound="RadGrid1_DataBound"
            OnItemDataBound="RadGrid1_ItemDataBound"
            OnUpdateCommand="RadGrid1_UpdateCommand">
            
            <GroupingSettings CaseSensitive="false" />
            <AlternatingItemStyle Font-Bold="false" Font-Italic="false" Font-Overline="false"
                Font-Strikeout="false" Font-Underline="false" Wrap="True" />
            <ClientSettings>
                <%-- <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" EnableDragToSelectRows="false" /> --%>
                <Scrolling AllowScroll="true" UseStaticHeaders="true"/>  <%-- UseStaticHeaders="true" SaveScrollPosition="true" /> --%>
                <Resizing AllowResizeToFit="true" />
            </ClientSettings>    
            <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" PageSize="25" Font-Size="Small" 
                DataKeyNames="EventID, EventName, totalAvail" AllowFilteringByColumn="true" TableLayout="Fixed">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn Display="false" DataField="eventID" DataType="System.Int32" HeaderText="Event ID" HeaderStyle-Width="10%" 
                      ShowFilterIcon="false" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" AllowFiltering="true" UniqueName="eventID">
                    </telerik:GridBoundColumn>
 </MasterTableView>
           
        </telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
vvvv
Top achievements
Rank 1
answered on 26 Feb 2014, 11:50 PM
Attached is a screen shot of  the radgrid and the column headers are mis aligned as well please help..
0
vvvv
Top achievements
Rank 1
answered on 28 Feb 2014, 06:15 PM
fixed it. I had to set the width of the mastertable to 100% and that solved it.
Tags
General Discussions
Asked by
vvvv
Top achievements
Rank 1
Answers by
vvvv
Top achievements
Rank 1
Share this question
or