Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
AI-Enhanced UI Tools
CMS
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" />