Hi, We are using the following code but not able to populate the Grid. Our Json is in the form of string . the json structure is something like this. "d : [{"ID":"1","Name":"Umesh"}]"
$(document).ready(
function () {
$(
"#customergriddiv").kendoGrid
({
height: 400,
pageable: true,
scrollable: false,
sortable: true,
columns: [{ field: "ID", title: "ID" }, { field: "Name", title: "Name"}],
datasource: {
transport: {
read: {
type: "POST",
url: "GetJson.asmx/GetCustomers",
contentType: 'application/json; charset=utf-8',
dataType: "json"
}
},
schema: {
data:
"d"
}
, pageSize: 10
}
});
});
<
div id="customergriddiv"></div>
<div data-role="view" data-title="Control Panel - Mobile" id="listtickets" data-init="listTicketsInit"> <h2>Tickets</h2> <p><a data-align="left" data-role="button" href="/support/newticket/">New ticket</a></p> <ul id="support_list" data-style="inset" > </ul> </div> <script id="support_list_template" type="text/x-kendo-template"> <li style="font-weight:normal" > <div style="float:left; width:20% "> #= DateCreated # </div> <div style="float:left; width:80% "> <a href="/support/view/#= ThreadID #">#= Subject #</a> </div> </li> </script><script> function listTicketsInit() { var ticketdata = <?=json_encode($tickets)?>; var dataSource = new kendo.data.DataSource({ data: ticketdata, dataType: "json", schema: { model: { id: "ThreadID", fields: { DateCreated: "DateCreated", ThreadID: "ThreadID", Subject: "Subject" } } } }); $("#support_list").kendoMobileListView({ dataSource: dataSource, pullToRefresh: true, appendOnRefresh: true, template: $("#support_list_template").text() });Hi
When the grid is grouped, the grouping column is visible with the same
values in each cell of each group. Looks weird and confusing.
How can we accomplish more efficient look and hide the grouping column?
See attached pic and here: http://demos.devexpress.com/aspxgridviewdemos/GroupingSorting/Grouping.aspx
2nd question:
Is it possible to customize the group header cell?
Instead of default template "{ColumnName}: {GroupName}"
I need something like "{ColumnName}: <b>{GroupName}</b> – <span class="groupRowCount">({Count} my text)</span>"
Thanks!