
Dhamodharan
Top achievements
Rank 1
Dhamodharan
asked on 21 Dec 2010, 11:11 AM
Hi,
I have using scrolling in my grid. but header alignment is not including width. i have attached image.
I have set width size=740px in radgrid and also using
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true" />
</ClientSettings>
Data showing into scrolling but header not shown.
Find the attached image please give me a tips ASAP.
Thanks in Advance,
Dhamu.
I have using scrolling in my grid. but header alignment is not including width. i have attached image.
I have set width size=740px in radgrid and also using
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true" />
</ClientSettings>
Data showing into scrolling but header not shown.
Find the attached image please give me a tips ASAP.
Thanks in Advance,
Dhamu.
5 Answers, 1 is accepted
0
Hello,
Can you please try setting TableLayout property of the MasterTableView to Fixed and let me know about the result?
Kind regards,
Pavlina
the Telerik team
Can you please try setting TableLayout property of the MasterTableView to Fixed and let me know about the result?
Kind regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

Dhamodharan
Top achievements
Rank 1
answered on 21 Dec 2010, 04:38 PM
Hi,
When i am using table layout=fixed means scroll option not working. all columns reduced length. i have attached image also.
Please check give me a tips ASAP.
Thanks,
Dhamu
When i am using table layout=fixed means scroll option not working. all columns reduced length. i have attached image also.
Please check give me a tips ASAP.
Thanks,
Dhamu
0
Hello,
In your case you should pay attention to the following:
1. The RadGrid MasterTableView's TableLayout should be set to Fixed.
2. All column widths should be set by using HeaderStyle-Width only. No ItemStyle-Width.
If you need further assistance, please provide a sample page, which demonstrates your scenario.
Kind regards,
Pavlina
the Telerik team
In your case you should pay attention to the following:
1. The RadGrid MasterTableView's TableLayout should be set to Fixed.
2. All column widths should be set by using HeaderStyle-Width only. No ItemStyle-Width.
If you need further assistance, please provide a sample page, which demonstrates your scenario.
Kind regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

Dhamodharan
Top achievements
Rank 1
answered on 22 Dec 2010, 06:25 AM
Hi,
I have used both what u told. but still i have same problem
Please check my code
<telerik:RadGrid ID="dgWorkSiteList" runat="server" DataSourceID="sdsWorkSiteList" AutoGenerateColumns="False" style="z-index:-1" AllowSorting="True" GridLines="None" Width="740px" >
<ExportSettings ExportOnlyData="true" IgnorePaging="True" OpenInNewWindow="true"> </ExportSettings>
<MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top" TableLayout="Fixed" >
<CommandItemSettings ShowExportToPdfButton="true" ShowExportToCsvButton="false" ShowExportToExcelButton="True" ShowExportToWordButton="false" ShowAddNewRecordButton="False"/>
<Columns>
<telerik:GridBoundColumn DataField="work_site_code" HeaderText="Code" SortExpression="work_site_code">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="wrk_time_zone_code" HeaderText="Time Zone" SortExpression="wrk_time_zone_code">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="description" HeaderText="Description" SortExpression="description">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="address" HeaderText="Address" SortExpression="address">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="tax_location_id" HeaderText="Tax Location ID" SortExpression="tax_location_id" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="county_name" HeaderText="County" SortExpression="county_name" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="muni_location_id" HeaderText="Municipality Location ID" SortExpression="muni_location_id" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="muni_name" HeaderText="Municipality" SortExpression="muni_name" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="school_location_id" HeaderText="School Location ID" SortExpression="school_location_id" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="school_dist_name" HeaderText="School Dist Name" SortExpression="school_dist_name" >
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<HeaderStyle Wrap="false" />
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"/>
</ClientSettings>
</telerik:RadGrid>
</asp:View>
I have used both what u told. but still i have same problem
Please check my code
<telerik:RadGrid ID="dgWorkSiteList" runat="server" DataSourceID="sdsWorkSiteList" AutoGenerateColumns="False" style="z-index:-1" AllowSorting="True" GridLines="None" Width="740px" >
<ExportSettings ExportOnlyData="true" IgnorePaging="True" OpenInNewWindow="true"> </ExportSettings>
<MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top" TableLayout="Fixed" >
<CommandItemSettings ShowExportToPdfButton="true" ShowExportToCsvButton="false" ShowExportToExcelButton="True" ShowExportToWordButton="false" ShowAddNewRecordButton="False"/>
<Columns>
<telerik:GridBoundColumn DataField="work_site_code" HeaderText="Code" SortExpression="work_site_code">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="wrk_time_zone_code" HeaderText="Time Zone" SortExpression="wrk_time_zone_code">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="description" HeaderText="Description" SortExpression="description">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="address" HeaderText="Address" SortExpression="address">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="tax_location_id" HeaderText="Tax Location ID" SortExpression="tax_location_id" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="county_name" HeaderText="County" SortExpression="county_name" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="muni_location_id" HeaderText="Municipality Location ID" SortExpression="muni_location_id" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="muni_name" HeaderText="Municipality" SortExpression="muni_name" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="school_location_id" HeaderText="School Location ID" SortExpression="school_location_id" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="school_dist_name" HeaderText="School Dist Name" SortExpression="school_dist_name" >
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<HeaderStyle Wrap="false" />
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"/>
</ClientSettings>
</telerik:RadGrid>
</asp:View>
0
Hi,
In order to display horizontal scroll for navigation, you need to make sure that the total width of the columns (either auto-generated or declaratively set) exceeds the width of the grid (as demonstrated in the attached project).
Regards,
Pavlina
the Telerik team
In order to display horizontal scroll for navigation, you need to make sure that the total width of the columns (either auto-generated or declaratively set) exceeds the width of the grid (as demonstrated in the attached project).
Regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.