EasyUI Forum

General Category => Bug Report => Topic started by: erkin on March 03, 2017, 12:14:08 AM



Title: DataGreed row number display error
Post by: erkin 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.


Title: Re: DataGreed row number display error
Post by: jarry on March 03, 2017, 12:54:42 AM
You must set the 'onwrap' property to true when using the virtual scrollview.


Title: Re: DataGreed row number display error
Post by: erkin 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... :o
If data have rows it's all right.