Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Slow grids initialization
01/10/2010
17:49
Avatar
kelny
Member
Members
Forum Posts: 8
Member Since:
26/11/2009
sp_UserOfflineSmall Offline

Hello,

I have 20 jqGrids on page. These grids are set to datatype: 'local' to prevent data loading on initialization ( I fire data loading on user request).

The problem is, that the initialization of all grids takes about 3s - I measured time in gridComplete function.

What I need is to show the page to user before this initialization or fasten grid initialization.

Can You please suggest me any solution to this? I'm lost...

Grid code example:

jQuery(document).ready(function() {

jQuery("#EmailsGrid").jqGrid({
sortable:true,
 jsonReader: {
                userdata: 'UserData'
            },
 xmlReader: {
                userdata: 'UserData'
            },
url: '/CRM/Email/EmailList',
datatype: 'local',
mtype: 'POST',
postData: {filter : '_fn-CRMEmail_Account_FK_cmpop-EqualTo_val-'+21286+'%7cAND%7c'},
colNames: ['ID','PÅ™edmÄ›t','Od','Pro','VytvoÅ™en','PÅ™iÅ™azen k','Typ','Status','Privátní',''],
colModel: [
{ name: 'Email_ID', index: 'Email_ID', width: 40, align: 'center',hidden: true,title:'', editable: false  },
{ name: 'Subject', index: 'Subject', width: 300, align: 'left',title:'', editable: false  },
{ name: 'From', index: 'From', width: 120, align: 'left',title:'', editable: false  },
{ name: 'To', index: 'To', width: 120, align: 'left',title:'', editable: false  },
{ name: 'Created', index: 'Created', width: 110, align: 'left',title:'', editable: false  },
{ name: 'AssignedToUser', index: 'AssignedToUser', width: 100, align: 'left',title:'', editable: false  },
{ name: 'Type_FK', index: 'Type_FK', width: 100, align: 'left',title:'', editable: false  },
{ name: 'Status_FK', index: 'Status_FK', width: 100, align: 'left',title:'', editable: false  },
{ name: 'Sensitivity_FK', index: 'Sensitivity_FK', width: 100, align: 'left',title:'', editable: false  },
{ name: 'Buttons', index: 'Buttons', width: 50, align: 'center', sortable:false, hidedlg:true,title:'', editable: false  }
],
imgpath: '/CRM/Scripts/jqGrid/themes/Docs/images'
,viewrecords: true
,rowNum:10
,rowList:[10,20,30,50],
pager: '#pagerEmailsGrid',height: '100%'
,width: 1030
,afterInsertRow : function(rowid) { ChangeRowStyleForEmailsGrid(rowid);EmailsGridSetRowTooltip(rowid);}
, gridComplete: function() {updateTime('EmailsGrid')}
, ondblClickRow: function(rowid) {EmailsGridDblClick(rowid)}
,beforeRequest : function() { 
var grid = jQuery('#EmailsGrid');var postData = grid.getPostData();
postData.visibleCols = GetColumnsToExport(grid);
postData.columnsList = GetGridColumns(grid);
postData.showRowChecker = false; grid.setPostData(postData);
}
,  loadComplete: function(xhr) {
UpdateHeaderEmails(21286);
}
});
Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
64 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information