Thanks in advance for any assistance.
I have a radgrid that I am trying to change the ExpandCollapseColumn-HeaderStyle-Width. I am using the Office2007 skin and have tried to override the style in different places without any luck. I have tried the .aspx in the grid, mastertableview and ExpandCollapseColumn definitions. I have also tried to set the width in the prerender and columncreated events as suggested in some posts. I went even further to try many of the other events to determine if something was just out of sequence and setting the value back. I have tried setting the widths to various sizes (10, 10px, 50, 50px) to see if there was some minimum width constraints that I was unaware of. None of these seemed to work.
Lastly, I debugged through the code to see that in fact the value of the ExpandCollapseColumn-HeaderStyle-Width property was in fact the value that I set it to, no matter the location that I set it. However, the rendered ExpandCollapseColumn continues to be at the default width. so now I lean on the support of fellow telerik users and employees to help determine the issue. I'm sure it is an easy one, but one that has been plaguing me for much too long. Please see the ASPX code below.
Thanks,
Bill
I have a radgrid that I am trying to change the ExpandCollapseColumn-HeaderStyle-Width. I am using the Office2007 skin and have tried to override the style in different places without any luck. I have tried the .aspx in the grid, mastertableview and ExpandCollapseColumn definitions. I have also tried to set the width in the prerender and columncreated events as suggested in some posts. I went even further to try many of the other events to determine if something was just out of sequence and setting the value back. I have tried setting the widths to various sizes (10, 10px, 50, 50px) to see if there was some minimum width constraints that I was unaware of. None of these seemed to work.
Lastly, I debugged through the code to see that in fact the value of the ExpandCollapseColumn-HeaderStyle-Width property was in fact the value that I set it to, no matter the location that I set it. However, the rendered ExpandCollapseColumn continues to be at the default width. so now I lean on the support of fellow telerik users and employees to help determine the issue. I'm sure it is an easy one, but one that has been plaguing me for much too long. Please see the ASPX code below.
Thanks,
Bill
<asp:PlaceHolder ID="plcBudgetViewROS" runat="server" Visible="false"> <telerik:RadGrid runat="server" ID="RadGridROSView" GridLines="none" ShowFooter="False" AutoGenerateColumns="false" AllowAutomaticInserts="true"ShowStatusBar="true" AllowAutomaticUpdates="True" DataSourceID="odsBudgetROS" AllowFilteringByColumn="False" AllowSorting="True"AllowMultiRowSelection="True" ShowGroupPanel="false" AllowPaging="false" Skin="Office2007"> <MasterTableView ShowGroupFooter="false" DataKeyNames="CategoryID, BudgetItemID" AllowMultiColumnSorting="true" CellPadding="0" CellSpacing="1"> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldAlias="Date" FieldName="DayLabel" HeaderValueSeparator=": "></telerik:GridGroupByField> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="DayDate" HeaderText="Day" SortOrder="Ascending"></telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldAlias="Label" FieldName="LabelName" HeaderValueSeparator=": "></telerik:GridGroupByField> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="LabelOrder" HeaderText="Label" SortOrder="Ascending"></telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <RowIndicatorColumn HeaderStyle-Width="10" ItemStyle-Width="10" /> <ExpandCollapseColumn HeaderStyle-Width="10" ItemStyle-Width="10" /> <Columns> <telerik:GridButtonColumn UniqueName="DeleteCommandColumn" ConfirmText="Are you sure that you would like to delete this item?" ConfirmTitle="Delete" CommandName="Delete" ButtonType="ImageButton" ImageUrl="/SMS/Images/delete.gif" ItemStyle-Width="15" > </telerik:GridButtonColumn> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" EditImageUrl="/SMS/Images/edit.gif" ItemStyle-Width="15" > </telerik:GridEditCommandColumn> <telerik:GridBoundColumn DataField="ItemDescription" HeaderText="Description" UniqueName="ItemDescription" ReadOnly="True" SortExpression="ItemDescription"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Category" HeaderText="Category" UniqueName="CategoryName" ReadOnly="True" SortExpression="Category" /> <telerik:GridTemplateColumn UniqueName="Budget" SortExpression="WorkingBudgetAmount" DataField="WorkingBudgetAmount" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="150px" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px"> <ItemTemplate> <asp:TextBox runat="server" ID="txtWorkingBudget" Width="100px" CssClass="bodyInput"></asp:TextBox> <asp:PlaceHolder runat="server" ID="plcWorkingBudgetDetails" Visible="false"></asp:PlaceHolder> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> <EditFormSettings UserControlName="/SMS/include/EditBudgetItem.ascx" EditFormType="WebUserControl"> <EditColumn UniqueName="EditBudgetItemColumn"> </EditColumn> </EditFormSettings> </MasterTableView> <ClientSettings AllowDragToGroup="False" AllowColumnsReorder="False"> <Resizing AllowColumnResize="False" /> <Selecting AllowRowSelect="True"></Selecting> <ClientEvents OnRowDblClick="RowDblClick" /> </ClientSettings> <GroupingSettings ShowUnGroupButton="False" /> </telerik:RadGrid><!-- content end --></asp:PlaceHolder> 