[HxGrid] How to add more than 1 custom column? #523
-
I'm trying to create more than 1 custom column on a Grid, the use case is to hold buttons or other controls,
Can this get changed to accept a parameter, so you can have more than one, or perhaps copy the same logic from HxGridColumn ? My current work around is to have a class that has:
Feels like this should be part of the main lib itself. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I may have misunderstood your issue, but I use:
on HxGridColumn to include whatever I want in a column, buttons, custom html etc. Is this what you need? |
Beta Was this translation helpful? Give feedback.
-
@pollardpj Very possibly, genuinely not sure how I missed that 😆 What does HxContextMenuGridColumn give you that HxGridColumn doesn't? Or is that the reason it might be removed in vNext? In that case, maybe the documentation needs an example, I didn't find it obvious hence why I went down the Context Menu route... |
Beta Was this translation helpful? Give feedback.
-
Give it a go, if you still have issues, I may have faced them myself, so let me know here: I find that the Havit Library is very flexible, always has the solution to a problem I have. I had looked at |
Beta Was this translation helpful? Give feedback.
-
You are right, the (What we will probably remove is the |
Beta Was this translation helpful? Give feedback.
I may have misunderstood your issue, but I use:
[Parameter] public RenderFragment<TItem> ItemTemplate { get; set; }
on HxGridColumn to include whatever I want in a column, buttons, custom html etc.
Is this what you need?