Normal 0 false false false MicrosoftInternetExplorer4
Hello
Is this possible to set minimum column width without using ColWidthDefault. We made WebUltraGrid width 100%. It is necessary that the column widths dynamically distributed across the width of the grid, but the width of the column remained at least the minimum width.
Thank you
Hello Sergey,
I can suggest you using the CustomRules of the CellStyle in order to set the min-width
<igtbl:UltraGridColumn BaseColumnName="ID" Key="ID" AllowResize="Free" >
<Header Caption="ID">
</Header>
<CellStyle CustomRules="min-width: 300px;"></CellStyle>
</igtbl:UltraGridColumn>
Please let me know if you need further assistance regarding this.
Good afternoon. Thank you for your reply. For TableLayout = Fixed column is compressed, with a decrease in the browser window. Maybe there are other options?
Thank you for the update
In this scenario I recommend you handling the BeforeColumnSizeChange client side event:
http://community.infragistics.com/forums/p/12693/47928.aspx#47928
<ClientSideEvents BeforeColumnSizeChangeHandler="UltraWebGrid1_BeforeColumnSizeChangeHandler" />
function UltraWebGrid1_BeforeColumnSizeChangeHandler(gridName, columnId, width) {
//Add code to handle your event here.
if ((width < 300) && (igtbl_getColumnById(columnId).Key == 'ID')) {
return true;
}
Hello.
Thank you for your reply.
All clear.