EasyUI Forum
April 16, 2024, 07:52:25 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: DataGreed row number display error  (Read 6872 times)
erkin
Newbie
*
Posts: 29


View Profile
« on: March 03, 2017, 12:14:08 AM »

Hello, i have display bug if rownumbers and nowrap is true in DataGreed component:
Code:
$(element).edatagrid({
...
rownumbers: true,
nowrap: true
});

If nowrap is false all display ok.
EasyUI v1.5.1, DataGrid with VirtualScrollView extension.
« Last Edit: March 03, 2017, 12:17:21 AM by erkin » Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 on: March 03, 2017, 12:54:42 AM »

You must set the 'onwrap' property to true when using the virtual scrollview.
Logged
erkin
Newbie
*
Posts: 29


View Profile
« Reply #2 on: March 06, 2017, 12:50:06 AM »

I solved this problem with method 'resize':
Code:
$(element).datagrid({
...
rownumbers: true,
nowrap: false,
onLoadSuccess: function(data) {
 $(element).datagrid('resize');
}
});
But if data not contains rows: {total: 0, rows:[]} i have endless requests... Shocked
If data have rows it's all right.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!