Declined
Last Updated: 25 May 2021 09:47 by ADMIN
loi
Created on: 02 Aug 2012 16:25
Category: UI for ASP.NET MVC
Type: Feature Request
4
Add shorthand method to set Id for form widget helpers
Please consider adding a short-hand method to set the id of form element widgets such as:
Html.Kendo().DatePicker().Name("StartDate").Id("FormA_StartDate");

The code above looks a lot cleaner and more fluent and the one below.
Html.Kendo().DatePicker().Name("StartDate").HtmlAttributes( new { id = "FormA_StartDate"} );

This really comes in handy when building large single page application (SPA) where many entry forms are loaded onto a single page. Manually setting the Id property for widget elements help avoid potential html elements' id conflicts when we have Kendo form widgets of the same name.
2 comments
ADMIN
Viktor Tachev
Posted on: 25 May 2021 09:47

Hi,

We are closing this request as there is no interest in it.

Regards,
Viktor Tachev
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.

Trent
Posted on: 21 May 2014 05:37
I like this idea. I'd also like a .DataBind() shorthand method, as I tend to use the MVC wrappers with MVVM.