Reputation: 14148
For an asp.net mvc4 website, Is there a way to use Kendo UI for a simple button? This is not a mobile app. But Kendo UI does not appear to have regular button object like Html.Kendo().Button...
It's not there.
This is what I have now
<input type="submit" value="Run Calculation" />
I want to use Kendo UI button instead.
@(Html.Kendo().MobileButton()
.Name("textButton")
.HtmlAttributes( new {type = "button"} )
)
But its not rendering at all.
Upvotes: 3
Views: 4849
Reputation: 7015
If you can not access Html.Kendo().Button()
it means your kendo ui mvc version is not 2013 Q3
or later.
the new code should be like this:
@(Html.Kendo().Button()
.Name("textButton")
.HtmlAttributes( new {type = "button"} )
.Content("Text button"))
Demo: Button / Basic usage -> ASP.NET MVC -> index.cshtml
Upvotes: 3