Treelist blazor cannot resolve context

1 Answer 146 Views
TreeList
ITGWANA
Top achievements
Rank 1
ITGWANA asked on 05 Jul 2021, 01:15 PM

I have a problem when I tried to add a control on the TreeListCommandButton
the context is not resolved
Telerik version: 2.17.0

<TreeListCommandColumn Width="220px">
                @{
                    var modelHierarchyInfo = (ModelHierarchyInfo)context;
                     if (modelHierarchyInfo.DepthLevel < 2)
                     {
                    <TreeListCommandButton Command="Add" Icon="add"></TreeListCommandButton>
                     }
                }
                <TreeListCommandButton Command="Edit" Icon="edit"></TreeListCommandButton>
                <TreeListCommandButton Command="Delete" Icon="delete"></TreeListCommandButton>
                <TreeListCommandButton Command="Save" Icon="save" ShowInEdit="true"></TreeListCommandButton>
                <TreeListCommandButton Command="Cancel" Icon="cancel" ShowInEdit="true"></TreeListCommandButton>
   </TreeListCommandColumn>

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 07 Jul 2021, 11:28 AM

Hello,

The context for the Command column was introduced in version 2.25. Here are the relevant release notes:

https://www.telerik.com/support/whats-new/blazor-ui/release-history/ui-for-blazor-2-25-0

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TreeList
Asked by
ITGWANA
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or