I am currently developing a mobile-first page using a listview with a template of k-card-list so it looks good on a phone(vertical). I would like to display the same info horizontally(almost like a grid) if the user is on a smaller device.
There is a ton of real estate wasted on a large screen that I would like to take advantage of.
What is the preferred method of doing this?
I have attached a couple of screenshots.
Below is my current template:
<script type="text/x-kendo-tmpl" id="template">
<div class="k-card-list">
<div class="k-card" style="min-width: 300px;">
<div class="k-card-header">
<div><h4>Service Date: #= kendo.toString(kendo.parseDate(ServiceDate), "MM/dd/yyyy")#</h4></div>
<div><h4>Store No: #:StoreNumber#</h4></div>
<div><h4>Store Name: #:StoreName#</h4></div>
<div><h4>Visit Type: #:VisitTypeName#</h4></div>
</div>
<div class="k-card-body">
<div>Round Trip Miles: ${ ActualTotalMileage == null ? '' : ActualTotalMileage }</div>
<div>Compensable Miles: ${ ActualCompensableMileage == null ? '' : ActualCompensableMileage }</div>
<div>Hours: ${ ActualHours == null ? '' : ActualHours }</div>
<div>Minutes: ${ ActualMinutes == null ? '' : ActualMinutes }</div>
<div>Comments: ${ CommentText == null ? '' : CommentText }</div>
</div>
<div class="k-card-actions k-card-actions-stretched">
<span class="k-card-action">
<span class="k-button k-flat k-primary k-edit-button">
# var miles = ActualTotalMileage#
# if (miles > 0) { #
Update Expense Claim
# } else { #
Create Expense Claim
#} #
</span>
</span>
</div>
</div>
<hr class="k-hr" />
</div>
</script>