Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Docs & Resources
Productivity and Design Tools
I would like to retrieve the width of the gris columns (to save it) and programmatically set it when needed.
I tried using gridref.GridColumns but I don't know how to retrieve gridcolumn object.
EditI used this way to set width programmatically but I dont know how to retrieve current columns width to save it:
the method "GetColumnWidth" retrieve column width by column name and set it.
<GridColumns> <GridCheckboxColumn /> <GridColumn Field=@nameof(Order.Id) Width="@GetColumnWidth("Id")" Title="ID" Editable="false" Filterable="false" />
Hi Flavio,
The correct way to retrieve Grid column information is via the Grid state. See this example in the article.
Regards, Dimo Progress Telerik
Edit
I used this way to set width programmatically but I dont know how to retrieve current columns width to save it:
the method "GetColumnWidth" retrieve column width by column name and set it.
<GridColumns> <GridCheckboxColumn /> <GridColumn Field=@nameof(Order.Id) Width="@GetColumnWidth("Id")" Title="ID" Editable="false" Filterable="false" />