Telerik Forums
Kendo UI for jQuery Forum
1 answer
1.1K+ views

 

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.

 

Stefan
Telerik team
 answered on 30 Aug 2017
1 answer
103 views

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!!!

Ivan Zhekov
Telerik team
 answered on 30 Aug 2017
2 answers
3.2K+ views

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

Roy
Top achievements
Rank 1
 answered on 29 Aug 2017
4 answers
631 views
I am having an issue with the Spreadsheet automatically changing text entered into a cell to a number. For example if you enter 0001 into a cell the value will be automatically converted to 1. I need to be able to preserve the text as is "0001". If there any way to do this?
Misho
Telerik team
 answered on 29 Aug 2017
1 answer
189 views
Here there, 
I attached a sample file that you can see, I got two items
only the second one shows the DropdownList selection properly, which is "Exemption A".
 However the first one, 
"Exemptions":["1","2"],  should have the "Exemption A" and "Exemption B" , but it is not. 


I am wondering if you can help me out. 


Thanks!
Veselin Tsvetanov
Telerik team
 answered on 29 Aug 2017
1 answer
160 views

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.

Dimiter Topalov
Telerik team
 answered on 29 Aug 2017
6 answers
366 views

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

 

Dimo
Telerik team
 answered on 29 Aug 2017
6 answers
201 views

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.    });
Ivan Danchev
Telerik team
 answered on 29 Aug 2017
1 answer
306 views

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

Veselin Tsvetanov
Telerik team
 answered on 29 Aug 2017
4 answers
211 views

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?

Ivan Danchev
Telerik team
 answered on 29 Aug 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?