dotnet-practitioner
dotnet-practitioner

Reputation: 14148

Simple Kendo UI button

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

Answers (1)

Iman Mahmoudinasab
Iman Mahmoudinasab

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

Related Questions