Hi,
This might be a bit of a strange question and it is hard for me to explain why I'm trying to achieve this, so please don't ask why, but here's a short summary of what I'm trying to achieve:
- I've created my own GridColumn class which inherits from the Telerik GridColumn class.
- In this class, I want to somehow be able to manually edit the column's cell content through C# code. I found some info on how to manually manipulate components and elements here: https://docs.microsoft.com/en-us/aspnet/core/blazor/advanced-scenarios?view=aspnetcore-6.0
- The thing is, I'm not sure how to use the RenderTreeBuilder to access the column cell and edit its contents, for example with a custom template or a simple string.
- I'm well aware I can simply provide a template to the GridColumn in Razor, but I'm trying to find a programmatic approach where I can do it in C# code.
public class GridColumn : Telerik.Blazor.Components.GridColumn
{
protected override void BuildRenderTree(RenderTreeBuilder builder)
{
base.BuildRenderTree(builder);
//logic goes here
}
}