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

minimum and maximum column width for columns

2 Answers 484 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rashmi
Top achievements
Rank 1
Rashmi asked on 19 Jan 2012, 11:27 AM
Hi,
 I have a radgrid with some image column and other data columns with following configuration.
  static headers, column resizing and clip cell content on resize.

I have set image columns width in code behind in pixels and resizable=false. But when I resize other data columns image column also resizes. I don't want them to get resized. 
 
regards,
Mahesh

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 19 Jan 2012, 12:32 PM
Hello Mahesh,

<telerik:GridTemplateColumn  UniqueName="Test1" Resizable="false">
                              <ItemTemplate>
                                  <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                              </ItemTemplate>
                              <ItemStyle CssClass="myclass" />
                              <HeaderStyle CssClass="myclass" />
                          </telerik:GridTemplateColumn>
<style type="text/css">
      .myclass
      {
          min-width:200px !important;
          width:200px !important;
      }
  </style>


Thanks,
Jayesh Goyani
0
Rashmi
Top achievements
Rank 1
answered on 19 Jan 2012, 01:40 PM
Hi Jayesh,
 GIven solution is not working for me. 
 My requirement is: There are image columns and data columns. Image columns should not be resizable. But when I resize any data column, rest data column should get resized proportionately to maintain grid width and image column should NOT get resized. And also there should be some minimum width and maximum width when resizing any data column.

Thanks,
Mahesh
Tags
Grid
Asked by
Rashmi
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Rashmi
Top achievements
Rank 1
Share this question
or