Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change colour kendo ui button

I need to change a color for button in Kendo ui product. Please advise. Thank you

Here is my code:

<form method="post" action='@Url.Action("Index")' style="width:45%">
    <div>
        @(Html.Kendo().Upload()
                    .HtmlAttributes(new { @Style = "align:center; font-size:12px" })     
                    .Name("FileUpload")
                    .Multiple(false)
                    .Events(ev => ev.Success("onSuccess"))
        )
        <input type="submit" id="btnSubmit" value="Import" style="height:33px; font-size:14px" class="k-button" />
    </div>
</form>

I tried to change k-button class but nothing changed.

like image 877
Supermode Avatar asked Dec 02 '25 02:12

Supermode


1 Answers

You are using Kendo UI Web framework and there is no button widget defined in it. Button widget is only available for kendo UI Mobile framework. k-button class wont work as Kendo ignores the element. So you need to style your button using CSS or inline styling as done normally. <input type="submit" style="background:red">

like image 80
Nishanth Nair Avatar answered Dec 04 '25 18:12

Nishanth Nair



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!