bind blazor menu to remote data

1 Answer 16 Views
Menu
Milind
Top achievements
Rank 1
Milind asked on 19 May 2022, 11:53 AM

Hello,

I have menu table in my database, which have menuid and parentmenuid columns.

I want to bind data retrieved from this table to blazor menu.

Is it possible ? there is no example showing how to bind blazor menu to remote data.

Thanks,

 

Milind Shevade

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 22 May 2022, 08:55 AM

Hello Milind,

Our components require that you provide them with a Data collection to render. Where, when and how this data is obtained is in full control of the app. So, you could, for example, start with an empty collection, populate it as needed (say, in OnInitializedAsync), and just set it to the view-model that the menu is bound to.

Regards,
Marin Bratanov
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
Menu
Asked by
Milind
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or