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

How to change to width of GridDropDownColumn?

3 Answers 272 Views
Grid
This is a migrated thread and some comments may be shown as answers.
anonym
Top achievements
Rank 1
anonym asked on 12 May 2009, 02:30 PM
Hello i have a GridDropDownColumn in my Grid, now i want to decrease the witdh of this column. I tried to use FilterControlWidth & ItemStyle-Width without any changes. 

How to set the width smaller of this column?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 May 2009, 03:49 AM
Hi Anonym,

Try setting the width of the DropDownColumn as shown below and see whether it helps.

ASPX:
 
      <telerik:GridDropDownColumn UniqueName="DropCol" HeaderStyle-Width="30px" ItemStyle-Width="30px" > 
          </telerik:GridDropDownColumn> 

Shinu



0
anonym
Top achievements
Rank 1
answered on 13 May 2009, 07:06 AM
Hi, i figured out when i set this attributes the DropDownColumn changes the width, but only when its empty !! When i fill this column with a datasource the width changes to his default witdh. Is it possible to change the width of the DropDownColumn with filled data ?


0
Princy
Top achievements
Rank 2
answered on 13 May 2009, 09:30 AM
Hi,

Try setting the TableLayout property of the MasterTableView, in addition to the width of the column set in its HeaderStyle tag and see if it helps:

aspx:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1">       
     <MasterTableView TableLayout="Fixed" DataSourceID="SqlDataSource1"
       <Columns> 
          <telerik:GridDropDownColumn UniqueName="DropDownColumn" HeaderStyle-Width="30px" ItemStyle-Width="30px" >  
          </telerik:GridDropDownColumn>  

Thanks
Princy.
Tags
Grid
Asked by
anonym
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
anonym
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or