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

[Solved] RadGrid disappears when I add a resizing attribute

1 Answer 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark Robinson
Top achievements
Rank 1
Mark Robinson asked on 04 Mar 2010, 04:07 PM
Hi

I have a fully functional Radgrid onto which I want to add the ability to resize. I have added the resizing attributes into the ClientSettings and when the grid renders, all I have is a black line down the side of the page. Here is the code with the offending resizing lines in bold. Can anyone tell me where I'm going wrong.

Thanks in Advance

Mark Robinson

 

<telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="false" DataSourceID="LinqDataSource1"

 

AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" runat="server" style="position:absolute; top:2000px; left:38px; " SkinID="None" >

 

 

 

<Headerstyle BackColor="LightSkyBlue" Font-Bold="True" ForeColor="Black"/>

 

 

 

<pagerstyle mode="NextPrevAndNumeric" BackColor="LightSkyBlue" />

 

 

 

<groupingsettings casesensitive="false" />

 

 

 

<AlternatingItemStyle BackColor="Gainsboro" />

 

 

 

<ItemStyle BackColor="#F9D295" />

 

 

 

<EditItemStyle BackColor="#F9D295" />

 

 

 <

SelectedItemStyle BackColor="Gold" />

 

 

 

<MasterTableView TableLayout="Auto" >

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn UniqueName="ColPlanner"

 

 

 

SortExpression="Planner_Code" HeaderText="Planner Code" DataField="Planner_Code" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColSupplier"

 

 

 

SortExpression="Supplier_Code" HeaderText="Supplier Code" DataField="Supplier_Code" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColFamily"

 

 

 

SortExpression="Product_Family" HeaderText="Product Family" DataField="Product_Family" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColPTC"

 

 

 

SortExpression="Part_Type_Code" HeaderText="Part Type Code" DataField="Part_Type_Code" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColPartNumber"

 

 

 

SortExpression="Part_Number" HeaderText="Part Number" DataField="Part_Number" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColPartDesc"

 

 SortExpression

="Part_Description" HeaderText="Part Description" DataField="Part_Description" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColRule"

 

 

 

SortExpression="Rule" HeaderText="Rule" DataField="Rule" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColTotalTarget"

 

 

 

SortExpression="Total_Inventory_Target" HeaderText="Total Inventory Target" DataField="Total_Inventory_Target" ReadOnly="true" DataFormatString="{0:F0}" >

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColBuffer"

 

 

 

SortExpression="Buffer_Inventory" HeaderText="Buffer Inventory" DataField="Buffer_Inventory" ReadOnly="true" DataFormatString="{0:F0}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColInvTarget"

 

 

 

SortExpression="Inventory_Target" HeaderText="Inventory Target" DataField="Inventory_Target" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColKanbanQty"

 

 

 

SortExpression="Kanban_Qty" HeaderText="Kanban Qty" DataField="Kanban_Qty" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColNumberofRedKanbans"

 

 

 

SortExpression="Number_of_Red_Kanbans" HeaderText="Number of Red Kanbans" DataField="Number_of_Red_Kanbans" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColNumberofYellowKanbans"

 

 

 

SortExpression="Number_of_Yellow_Kanbans" HeaderText="Number of Yellow Kanbans" DataField="Number_of_Yellow_Kanbans" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridNumericColumn UniqueName="ColNumberofGreenKanbans"

 

 

 

SortExpression="Number_of_Green_Kanbans" HeaderText="Number of Green Kanbans" DataField="Number_of_Green_Kanbans" DataFormatString="{0:F0}">

 

 

 

</telerik:GridNumericColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColLeadtimeInv"

 

 

 

SortExpression="Leadtime_Inventory" HeaderText="Leadtime Inventory" DataField="Leadtime_Inventory" ReadOnly="true" DataFormatString="{0:F0}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColVariabilityMargin"

 

 

 

SortExpression="Variability_Margin" HeaderText="Variability Margin (Days)" DataField="Variability_Margin" ReadOnly="true" DataFormatString="{0:F0}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColVariabilityPerc"

 

 

 

SortExpression="Variability_Perc" HeaderText="Variability Margin % of Leadtime" DataField="Variability_Perc" ReadOnly="true" DataFormatString="{0:F0}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColComment"

 

 

 

SortExpression="Comment" HeaderText="Calculation Comment" DataField="Comment" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColForecastType"

 

 

 

SortExpression="Forecast_Type" HeaderText="Forecast Type" DataField="Forecast_Type" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColRuleName"

 

 

 

SortExpression="Rule_Name" HeaderText="Rule Name" DataField="Rule_Name" ReadOnly="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ColDateCalculated"

 

 

 

SortExpression="Date_Calculated" HeaderText="Date Calculated" DataField="Date_Calculated" ReadOnly="true" DataFormatString="{0:d}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">

 

 

 

<Resizing

 

 

 

AllowColumnResize="True"

 

 

 

AllowRowResize = "false"

 

 

 

ResizeGridOnColumnResize = "false"

 

 

 

ClipCellContentOnResize = "true"

 

 

 

EnableRealTimeResize = "false" />

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

 

 

<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="LinqToSql.LinqMonthShowAnalysisData"

 

 

 

TableName="wt107_Final_Inventory_Targets_Kanbans" AutoPage="true" AutoSort="true">

 

 

 

</asp:LinqDataSource>

 

 

 

 

 


1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 05 Mar 2010, 11:04 AM
Hello Mark,

I followed your scenario and prepared a simple runnable application, which handles the required functionality. Please examine it and let me know if it works for you or if I am leaving something out.

All the best,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Mark Robinson
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or