Unplanned
Last Updated: 27 Jul 2020 07:15 by ADMIN
Christian
Created on: 25 Jul 2020 19:07
Category: Drawer
Type: Feature Request
1
Drawer Item Enabled Property Data Binding

Hi,

 

could you add an Enabled Parameter (like in the Button Component) to the default databound values from a Drawer Item?

Of course I can handle this with a template, but actually I dont like to implement the whole item behaviour and the looks.

Ok, I a little bit lazy, but I think this would be a find addition to the feature set.

 

Best regards

Christian

3 comments
ADMIN
Marin Bratanov
Posted on: 27 Jul 2020 07:15

Hi Christian,

If the solution I posted would not work for you (a foreach loop in the drawer Tempate plus a few methods that you implement based on our repo once per app), you can consider using a vertical menu in the sidebar - it will have disabled items in our next release.

I agree with you that the components are similar and having that feature would be great in the drawer. It might even make sense for the treeview as well.

 

Regards,
Marin Bratanov
Progress Telerik

Christian
Posted on: 26 Jul 2020 11:47

Hi,

 

I read the upcoming Bindings tor the menu items and I think it would be super handy if the drawer Item Bindings would be pretty much the same.

The Drawer and Menu components are quite similar (regarding the items), so the same Bindings would be a really good thing for a developer using the components.

Best regards

Christian

ADMIN
Marin Bratanov
Posted on: 26 Jul 2020 10:46

Hello Christian,

You can find an example here that, among other things, shows how to get the default rendering of the drawer in its Template so you can customize it: https://github.com/telerik/blazor-ui/tree/master/drawer/template. This can make disabling items easier. I'm also attaching here a modified version of the layout page that shows one way to implement disabled items.

By the way, in the upcoming 2.16.0 release, the Menu will have disabled items binding - you can preview how that would work here.

 

Regards,
Marin Bratanov
Progress Telerik