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

Command Button - HTML Attributes Broken

4 Answers 300 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 08 Aug 2013, 04:20 PM
I am using the latest kendoui internal build (2013.2.808.340) in order fix some other issues I am having with the current release build.

I have found that when using the MVC wrappers and setting the the class attribute via .HTMLAtrributes on commands in the grid kendo no longer renders the button with the correct class.

Example: 
c.Command(command =>
    {
command.Edit().HtmlAttributes(new { @class = "btn" }).UpdateText("Save");
command.Destroy().HtmlAttributes(new { @class = "btn" });
                             });

Resulting rendered HTML no longer has the class "btn":
<a class="k-button k-button-icontext k-grid-edit" href="#">


4 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 12 Aug 2013, 07:50 AM
Hi Nick,


We are aware of the issue. It is reproducing only when a custom class is being set to the command buttons through the HtmlAttributes method, because it is overridden by the default Grid classes. We have it logged for fixing, but at the moment it is with low priority, since each command receives a unique class by default (e.g. k-grid-edit, k-grid-delete etc.), which could be used instead of the custom class.

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Dan Sorensen
Top achievements
Rank 2
answered on 11 Jul 2014, 07:23 PM
Is this bug fix still on hold?

Can you provide a link to the logged task so we can monitor it's status? (or is that an internal bug tracker)
0
Dimiter Madjarov
Telerik team
answered on 15 Jul 2014, 10:03 AM
Hello Dan,


The issue has not been addressed yet, but it is in our short-term development plans after the upcoming release.

Regarding the question about our bug tracker, only Kendo UI Core issues could be observed publicly. Nevertheless I will note myself to update the thread with information, when the issue is fixed.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Dimiter Madjarov
Telerik team
answered on 22 Jul 2014, 03:54 PM
Hello guys,


I am glad to announce that the issue has been addressed and the fix will be available in the next internal build.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Dan Sorensen
Top achievements
Rank 2
Share this question
or