Hello,
I have a Ultrawebgrid with a DropDownList in one of the columns. The dropdown takes the whole width available. I would like to make the dropdown itself smaller leaving the column with intact.
Thank you very much in advance
<
igtbl:ultrawebgrid id="m_gridIdentifiers" runat="server" style="z-index: 101; LEFT: 8px; position: absolute; top:
29px"
Width="400px" Height="120px" ImageDirectory="/ig_common/Images/" OnInitializeRow="m_gridIdentifiers_InitializeRow" TabIndex="17"
>
<DisplayLayout ColWidthDefault="120px" StationaryMargins="Header" RowHeightDefault
="26px"
Version="4.00" HeaderClickActionDefault="SortSingle" BorderCollapseDefault="Separate" Name
="ctl00xmxgridIdentifiers"
TableLayout="Fixed" AllowAddNewDefault="Yes" CellClickActionDefault="RowSelect" NoDataMessage
="No Assignments">
<FrameStyle CssClass="FrameStyle" Width="472px" Height="95px" > </FrameStyle
<HeaderStyleDefault CssClass="HeaderStyle" Height="20px" ></HeaderStyleDefault
<RowSelectorStyleDefault CssClass = "DefaultRowSelectorStyle" ></RowSelectorStyleDefault
<SelectedRowStyleDefault CssClass="SelectedRowStyle" ></SelectedRowStyleDefault
<RowStyleDefault CssClass = "DefaultRowStyle" ></RowStyleDefault
<RowAlternateStyleDefault CssClass="AlternateRowStyle" ></RowAlternateStyleDefault
<FooterStyleDefault CssClass="FooterStyle" ></FooterStyleDefault
<ClientSideEvents ClickCellButtonHandler="m_gridIdentifiers_ClickCellButtonHandler" InitializeLayoutHandler="m_gridIdentifiers_InitializeLayout"
</ClientSideEvents
</DisplayLayout
<Bands
<igtbl:UltraGridBand
<Columns
<igtbl:UltraGridColumn HeaderText="Identifier" Key="Identifier" IsBound="True" Width="145px" BaseColumnName="identifier" AllowResize="Free
">
<Header Caption="Identifier"
</Header
</igtbl:UltraGridColumn
<igtbl:UltraGridColumn Type="DropDownList" HeaderText="Production Status" Key="LiveStatusTypeName" IsBound="True" Width="145px" BaseColumnName="LiveStatusTypeName" AllowUpdate="Yes" AllowResize="Free
<Header Caption="Production Status"
<RowLayoutColumnInfo OriginX="1"
/>
<Footer
</Footer
<igtbl:UltraGridColumn Type="Button" CellButtonDisplay="Always" AllowUpdate = "Yes" Width="110px" AllowResize="Fixed" HeaderText=""
<Header Caption
="">
<RowLayoutColumnInfo OriginX="2" ></RowLayoutColumnInfo
<RowLayoutColumnInfo OriginX="2"
<igtbl:UltraGridColumn HeaderText="RegSourceIdentifierID" Width="1px" Key="RegSourceIdentifierID" Hidden="True" IsBound="True" BaseColumnName
="RegSourceIdentifierID">
<Header Caption="RegSourceIdentifierID"
<RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo
<RowLayoutColumnInfo OriginX="3"
</Columns
</igtbl:UltraGridBand
</Bands
</igtbl:ultrawebgrid
I have the same issue but have not yet found a solution. I loaded the NetAdvantage 10.2 Service Pack that allows me to use web grids successfully under IE 9. That's when I noticed this begin to occur. When I drop the list down using IE 8, the entire width of the field does not display: only the width of the grid column.
One more thing to note. I added the following line of code:
e.Layout.Bands(0).Columns(2).VaueList.Style.Width = "200px"
with no effect when using eitehr IE8 or IE9.