Hello everyone,
I am trying to have a Server Paging for Kendo UI Grid. Here I am retrieving data from SharePoint, I am not getting any error and also grid is updated with data. But my paging shows 0 always and I do not have option to navigate. If i remove serverPaging: true then I can see all the data in the grid
<
div
kendo-grid
=
"myGrid"
options
=
"mainGridOptions"
class
=
"k-alt ms-font-xs"
>
</
div
>
Here I provided the options for the grid.
01.
$scope.mainGridOptions = {
02.
dataSource: {
03.
type:
"odata"
,
04.
transport: {
05.
parameterMap:
function
(data, type) {
06.
return
kendo.data.transports[
"odata"
].parameterMap.apply(
this
, arguments);
07.
},
08.
read: {
09.
dataType:
"json"
,
10.
headers: {
11.
"accept"
:
"application/json; odata=verbose"
12.
},
13.
url: spSiteUrl
14.
}
15.
},
16.
serverPaging:
true
,
17.
schema: {
18.
total:
"total"
19.
},
20.
pageSize: 10,
21.
serverSorting:
true
22.
},
23.
dataBound:
function
() {
24.
this
.expandRow(
this
.tbody.find(
"tr.k-master-row"
).first());
25.
26.
var
data =
this
.dataSource.view();
27.
for
(
var
i = 0; i < data.length; i++) {
28.
var
uid = data[i].uid;
29.
var
row =
this
.table.find(
"tr[data-uid='"
+ uid +
"']"
);
30.
31.
row.find(
".k-grid-ViewDetails"
).contents().last()[0].textContent = data[i].Description;
32.
}
33.
$(
".k-grid-ViewDetails"
).removeClass(
"k-button"
);
34.
$(
".k-grid-ViewDetails"
).addClass(
"ms-font-m-plus ms-fontWeight-semibold align-right"
);
35.
},
36.
sortable:
true
,
37.
pageable:
true
,
38.
columns: [ .. ...
39.
]
40.
};
Please let me know what i am missing here to get the server pagination.
Hi,
I'm using Kendo UI widgets with Angular4. How can I make my application responsive. The flex wrap property does not take effect for any of the kendo widgets.
Thanks!!!
Hi,
hope it's an easy one....
I have i DropDownList column in the details grid (hierarchy grid).
I want to get the row dataitem when a change event on the dropdownlist occurs.
How can achieve that?
Thanks
Hi,
I would like to find out how I can create a custom required directive for angular 2 template-driven form to validate a required field in a dropdownlist as I do not wish to use the required built-in validator. The one shown on http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/forms/ doesn't seems to work with template-driven form.
Sometimes my grid raises a request to server with page=1 but the server returns as a result page number 3.
I need to change the page number in the grid to 3 but without causing a new ajax request like happens with:
grid.data("kendoGrid").dataSource.page(pageNumber);
Thanks
Validation is working for one range. Adding another validation in range causes javascript error.
01.
$(document).ready(function () {
02.
var spreadsheet = $(
"#spreadsheet"
).data(
"kendoSpreadsheet"
);
03.
var sheet = spreadsheet.activeSheet();
04.
05.
sheet.batch(function () {
06.
sheet.hideColumn(0);
07.
}, { layout:
true
});
08.
09.
sheet.range(
"E1:E200"
).format(kendo.spreadsheet.formats.dateTime);
10.
sheet.range(
"F1:F200"
).format(kendo.spreadsheet.formats.dateTime);
11.
12.
var range1 = sheet.range(
"D2:D200"
);
13.
14.
range1.validation({
15.
dataType:
"list"
,
16.
from:
"{ \"AUTO\", \"BRK ALT\", \"BRK HR\" }"
,
17.
allowNulls:
true
,
18.
type:
"reject"
,
19.
titleTemplate:
"Invalid segment code"
,
20.
messageTemplate:
"Invalid segment code"
,
21.
showButton:
true
,
22.
});
23.
24.
var range2 = sheet.range(
"G2:G200"
);
25.
26.
range2.validation({
27.
dataType:
"list"
,
28.
from:
"{ \"Add\", \"Modify\", \"Remove\" }"
,
29.
allowNulls:
true
,
30.
type:
"reject"
,
31.
titleTemplate:
"Invalid aspect entry type."
,
32.
messageTemplate:
"Invalid aspect entry type."
,
33.
showButton:
true
,
34.
});
35.
});
Hi,
As my title says, the dataItem() method for the dropDownList does not return undefined (when selected item is blank) as the API says.
API: http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#methods-dataItem
Demo: https://dojo.telerik.com/AxoTu
I dont know if this an error in the functionality of the widget or an error in the API.
This threw me off for about 2 hours while I tried to figure out why my dropdown was returning null instead of undefined.
Regards,
Grant
When click month view more events(...) will change view to day view,
I want to when click ... to the day view it will scroll to the first event
How to do that?