This is a migrated thread and some comments may be shown as answers.

Grid drag header (grouping) slow with jQuery 1.8.2?

6 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 15 Mar 2013, 04:50 PM
When using the grouping on the grid with jQuery 1.8.2 selecting the column header to drag into the grouping panel is slow. 

Once the drag operation does kick in moving the header around before dropping it on the panel is fast it just seems to chug trying to initiate the drag.

I mention the specific jQuery version 1.8.2 because at first I had v1.7.1 referenced in my project but upgraded due to another problem where it would not let me drop the column onto the grouping panel.  That seems to be resolved on the new jQuery version but now dragging is very slow whereas on 1.7.1 it was instant.

I am using 2013 Q1 version of telerik and referencing jquery.min.js that was provided with Telerik install.

Is this a know issue?  Is there anything I can do to resolve?

Thanks.

6 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 18 Mar 2013, 08:04 AM
Hello Kevin,

We are not aware of such an issue. I was also unable to replicate it on Q1 2013 Beta demo site.
What browser are using? Can you create jsbin/jsfiddle that replicates the behavior, so we can debug it locally and assist you further?

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kevin
Top achievements
Rank 1
answered on 18 Mar 2013, 05:11 PM
Hi, 

I set up an empty project to demonstrate the problem and added the grid with same code and initially it appears to work fine however once I loaded data into the grid it appears to be slower. 

I was originally using the telerik ASP.NET grid control with the same dataset and did not experience any performance hit. 

Only difference is Kendo connects over webservice.  Web service is simple asp web service that returns a list of objects as json.  Data is returning 122rows and 10 columns.  Not sure if datasize affects performance of initiating dragging column headers.  (Is it doing any pre-initialization to set up the grouping before it is actually dropped on to the grouping panel?)

Any suggestions?

I have never used jsbin/jsfiddle?

Also, I am using Kendo UI Web Q3 2012 not 2013.  2013 is for the asp.net controls :)

Here is the code if you are interested:
<%@ Page Language="vb" MasterPageFile="~/Site1.Master" AutoEventWireup="false" CodeBehind="TestPage1.aspx.vb" Inherits="TestTelerikGrid.TestPage1" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="HeadContent">
<title>Test</title>
<link href="css/kendo.common.min.css" rel="stylesheet" />
<link href="css/kendo.default.min.css" rel="stylesheet" />
<script src="Scripts/jquery.min.js"></script>
<script src="Scripts/kendo.web.min.js"></script>

</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="MainContent">
<div id="grid"></div>

<script>
function getQueryStrings() {
var assoc = {};
var decode = function (s) { return decodeURIComponent(s.replace(/\+/g, " ")); };
var queryString = location.search.substring(1);
var keyValues = queryString.split('&');

for (var i in keyValues) {
var key = keyValues[i].split('=');
if (key.length > 1) {
assoc[decode(key[0])] = decode(key[1]);
}
}

return assoc;
}
var qs = getQueryStrings();

$(function () {
ds = new kendo.data.DataSource({
schema: {
data: "d"
},
transport: {
read: {
type: "POST",
contentType: "application/json",
url: "http://localhost:65328/WebServices/TestService.asmx/MyData"
},
parameterMap: function (data, type) {
switch (type) {
case "read":
return (JSON.stringify({
Account: ('A' in qs) ? qs["A"] : "",
YearPeriod: ('P' in qs) ? qs["P"] : ""
}));
break;
default:
break;
};
}
},
});

$("#grid").kendoGrid({
autobind: false,
dataSource: ds,
columns: [
{ field: "Field1", title: "Field1", width: 125 },
{ field: "Field2", title: "Field2", width: 70 },
{ field: "Field3", title: "Field3", width: 110 },
{ field: "Field4", title: "Field4", width: 110 },
{ field: "Field5", title: "Field5", width: 120 },
{ field: "Field6", title: "Field6", width: 60 },
{ field: "Field7", title: "Field7", width: 110 },
{ field: "Field8", title: "Field8", width: 110 },
{ field: "Field9", title: "Field9", width: 110 },
{ field: "Field10", title: "Field10", width: 110 }
],
editable: false,
filterable: false,
groupable: true,
sortable: false,
pageable: false,
scrollable: true,
height: 650
});
});
</script>

</asp:Content>
0
Kevin
Top achievements
Rank 1
answered on 18 Mar 2013, 05:26 PM
Additional observation:  Based on the speed at which the grouping is completed once you drop to column header on the grouping panel (instantaneous) my guess would be that the actual grouping may be occurring when you initialize the drag operation which causes the lag in the drag operation?

I'm just guessing here, looking for some feedback on this to confirm.
0
Accepted
Nikolay Rusev
Telerik team
answered on 19 Mar 2013, 07:50 AM
Hello Kevin,

There were some performance issues addressed  after Q3 2012 official release. Can you please try more recent version of Kendo UI scripts? You shouldn't be experiencing  such behavior.

All the best,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kevin
Top achievements
Rank 1
answered on 19 Mar 2013, 04:30 PM
I downloaded this build:  kendoui.web.2012.3.1512.commercial.

Problem is now resolved.  Thank you.

Any idea when this is planned for release into production build?
0
Nikolay Rusev
Telerik team
answered on 20 Mar 2013, 03:58 PM
Hello Kevin,

The Q1 2013 official release should be available in your account today. 

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or