or
<div data-role="view" id="order_list_mobile" data-layout="mobile-tabstrip" data-title="<?php echo $this->language->get('text_sale');?>" data-reload="true" data-show="afterShow"> <header data-role="header"> <div data-role="navbar"> <a data-role="backbutton" data-align="left">Back</a> <span data-role="view-title"><?php echo $this->language->get('text_sale');?></span> </div> </header> <ul data-role="listview" data-style="inset" data-type="group" class="inboxList"> <li> <?php echo $this->language->get('text_sale');?> <ul> <?php if ($orders) { ?> <?php $id = 0;?> <?php foreach ($orders as $order) { ?> <li> <h3 class="time"><?php echo $order['customer']; ?></h3> <h3><?php echo $order['date_added']; ?></h3> <h3><?php echo $order['total']; ?></h3> <p><?php echo $order['date_added']; ?></p> <?php foreach ($order['action'] as $action) { ?> <a data-role="button" href="<?php echo $action['href'];?>"> <?php echo $action['text']; ?> </a> <?php } ?> </li> <?php } ?> <?php } ?> </ul> </li> </ul></div><script> function afterShow(e) { var tabstrip = e.view.footer.find(".km-tabstrip").data("kendoMobileTabStrip"); tabstrip.switchTo(2); }</script><div data-role="layout" data-id="mobile-tabstrip"> <header data-role="header"> <div data-role="navbar"> <a data-align="left" data-role="backbutton" class="nav-button"><?php echo $this->language->get('button_back');?></a> <span data-role="view-title"></span> <a data-align="right" data-role="button" class="nav-button" href="#index" data-icon="refresh"></a> </div> </header> <div data-role="footer"> <div data-role="tabstrip" id="myTabStrip"> <a href="#tabstrip-home" data-icon="recents"><?php echo $this->language->get('tab_general');?></a> <a href="#index.php?route=catalog/product&token=<?php echo $this->session->data['token'];?>" data-icon="cart"><?php echo $this->language->get('text_catalog');?></a> <a href="#index.php?route=sale/order&token=<?php echo $this->session->data['token'];?>" data-icon="bookmarks"><?php echo $this->language->get('text_sale');?></a> <a href="#tabstrip-settings" data-icon="settings"><?php echo $this->language->get('text_setting');?></a> </div> </div></div>var app = new kendo.mobile.Application(document.body, {});app.navigate("#:back");[OperationContract] [WebGet(ResponseFormat=WebMessageFormat.Json)] List<ProductDetails> GetProductDetails();{"d":[{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10248,"ProductId":11,"UnitPrice":14.0000,"quanity":12},{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10248,"ProductId":42,"UnitPrice":9.8000,"quanity":10},{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10248,"ProductId":72,"UnitPrice":34.8000,"quanity":5},{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10249,"ProductId":14,"UnitPrice":18.6000,"quanity":9},{"__type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10249,"ProductId":51,"UnitPrice":42.4000,"quanity":40}<script type="text/javascript"> $(document).ready(function () { $("#grid").kendoGrid({ dataSource: { type: "json", transport: { read: function (options) { $.ajax({ dataType: "json", success: function (result) { options.success(result); } }); }, batch: true, schema: { type: 'json', model: { id: "OrderId", fields: { OrderId: { type: "string" }, ProductId: { type: "string" }, UnitPrice: { type: "string" }, quanity: { type: "string" }, Discount: { type: "string" } } } }, pageSize: 10 }, height: 430, filterable: true, groupable: true, sortable: true, pageable: true, columns: [{ field: "OrderId", title: "OrderId", width: 140 }, { field: "ProductId", title: "ProductId", width: 190 }, { field: "UnitPrice", title: "UnitPrice" }, { field: "quanity", width: 110 },{ field: "Discount", width: 110 }] }); }); </script>