Zach.E
November 22, 2022, 3:44pm
1
Hello,
I have been using your group footer and group header demos for datagrid column grouping and have found them very helpful.
I would like to pass the group key as a parameter on a button click event to a dialogue form and am not sure how to do so.
Is this possible?
Thanks,
Zach
korchev
November 22, 2022, 4:00pm
2
You can try with context.Data.Key
Zach.E
November 22, 2022, 4:16pm
3
Thank you for the quick reply @korchev .
I tried this but received an error that ''context' does not exist in the current context' on the relevant razor.designer.cs page.
korchev
November 22, 2022, 4:22pm
4
How does your existing GroupTemplate look like? Probably you have set its Context attribute to something e.g. data
. In that case use data.Data.Key
.
Zach.E
November 22, 2022, 4:48pm
5
My GroupFooterTemplate simply has a button in it and I did not set any attributes.
The button executes the following click event:
I have been able to use context successfully in the GroupHeaderTemplate.
korchev
November 22, 2022, 4:54pm
6
How does the generated code look like?
UPDATE: Indeed there isn't an easy way to do that from Radzen at the moment. We will investigate a solution. I have also updated the category of the thread.
Zach.E
November 22, 2022, 5:06pm
7
Great, thank you @korchev !