RadzenDataGrid width

Hi Team,

In my datagrid I have set the width of each column manually in px. However the overall datagrid still stretches to take full width of the page/div. This makes the columns to not use the specified width and stretches the columns as well. How can I make the datagrid to take the width which is sum of width of individual columns.

For the time being I'm using a workaround to insert a blank column without specifying width. By doing this, this last column ends stretch and other columns uses the specified width.

Thanks

Hi @liquidloop,

This is how HTML Table table-layout: fixed works actually. Additional column at the end or specifying the table width is the only way around.

Thanks. I will keep using the work around.

Hi @liquidloop,

I tried your workaround, but it doesn't work for me.

The datagrid stretches to the full width of page.

I also have to set the width of this column to "0px". If I don't specify the width, the column is also shown with an automatic calculated width.

Does it still work for you?

best regards