Hello i have searched around but i didnt come across any issue similar to mine. I have a datagrid like below and i want each column to fit the data of the column and since i have almost 50 columns to be able to scroll horizontally. But the column width is tiny and i cant scroll.
i have tried the following :
- make the column width adjustable by hand when i resize a column all the others are becoming almost extinct.
- set a ColumnWidth="120px" but now the columns oveflow the width of the datagrid
- AllowColumnResize="true" AllowColumnReorder="true"
- with style Style="height: 600px; overflow-x: auto; width: 100%; table-layout: auto; white-space: nowrap; scroll-direction: horizontal;"
but still nothing.
>
> <RadzenDataGrid TItem="AgentSearchDto" Data="@employees" PageSize="10" AllowPaging="true" ColumnWidth="auto" AllowColumnResize="true" AllowSorting="true">
> <Columns>
> <RadzenDataGridColumn TItem="AgentSearchDto" Property="AgentName" Title="Agent Name" />
> <RadzenDataGridColumn TItem="AgentSearchDto" Property="AgentNameEn" Title="Agent Name (EN)" />
> <RadzenDataGridColumn TItem="AgentSearchDto" Property="AgentId" Title="Agent ID" />
> ..........
> </RadzenDataGrid>
Thanks a lot!