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
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
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" />