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

kendo ui upload layout modification

1 Answer 276 Views
Upload
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 06 Mar 2013, 03:14 PM
Hi,

How i can put modify the browse button sitting side by side with the submit button (same line). How i can change the browse button color, i tried but only work in IE 7. the colour not change in IE 8 or above.

I use the code from sample:
<form method="post" action='@Url.Action("Submit")' style="width:45%">
    <div>
        @(Html.Kendo().Upload()
            .Name("files")
        )
        <p>
            <input type="submit" value="Submit" class="k-button" />
        </p>
    </div>
</form>


Thank you


Please advise

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 07 Mar 2013, 11:08 AM
Hello David,

In order to position the Submit button side by side with the Select button you should add it dynamically to the page via JavaScript, because the Upload widget is generating a div tag and the input cannot be positioned there only with CSS.
E.g.

$(document).ready(function () {
    $(".k-button.k-upload-button").after('<input type="submit" value="Submit" class="k-button" />');
});

To override the default styles for the button color, you should specify the following CSS style
E.g.
<style>
  .k-button.k-upload-button
  {
      color: purple;
  }
</style>


 

Regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
David
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or