This is a migrated thread and some comments may be shown as answers.

Kendo().Menu() complex ItemDataBound

1 Answer 116 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Tenen
Top achievements
Rank 1
Tenen asked on 16 Apr 2015, 08:27 AM

Hi,



Is there a way to use Kendo().Menu() with complex
ItemDataBound ?

While creating simple menu with several menu option &
several children’s is ok, I did not managed to understand how to implement menu
item with several children & images & dropdown list & buttons.

In the attached image you will find the best explanation in
order to understand what I want I've attached an image

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 20 Apr 2015, 07:17 AM
Hello Tenen,

In general, the widget allows to define custom content. In the ItemDataBound action method, you can mimic the MenuItem Content method behavior and set the item content either to HTML or to an Action method:
.ItemDataBound((item, product) =>
{
   item.Text = product.ProductName;
                         
   //Item.Template.Content = <System.Action>;
   //Item.Template.Html = <System.String>;
}));

Let me know if I can be of a further assistance.

Regards,
Georgi Krustev
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Menu
Asked by
Tenen
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or