EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 16, 2024, 09:52:44 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
Bug Report
>
Problem with .datagrid('loadData', []); when two datagrid in same page
Pages: [
1
]
« previous
next »
Print
Author
Topic: Problem with .datagrid('loadData', []); when two datagrid in same page (Read 9205 times)
Fabrice
Jr. Member
Posts: 62
Problem with .datagrid('loadData', []); when two datagrid in same page
«
on:
September 05, 2014, 01:47:16 AM »
i have a page with two datagrids, when i call $('#second_dg').datagrid('loadData',[]); to clear the second datagrid, the first datagrid is also empty!
can you confirm it's a bug?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Problem with .datagrid('loadData', []); when two datagrid in same page
«
Reply #1 on:
September 05, 2014, 02:25:59 AM »
When call
$('#second_dg').datagrid('loadData',[])
, it only clear the '#second_dg' datagrid. Please check your code carefully.
Logged
Fabrice
Jr. Member
Posts: 62
Re: Problem with .datagrid('loadData', []); when two datagrid in same page
«
Reply #2 on:
September 05, 2014, 02:42:19 AM »
I don't see any problem in my code, i use bufferview and filterbar , maybe the problem is due to these plugins?
Logged
Fabrice
Jr. Member
Posts: 62
Re: Problem with .datagrid('loadData', []); when two datagrid in same page
«
Reply #3 on:
September 06, 2014, 12:28:34 AM »
After some tests, i think the problem is due to bufferview plugin, when multiple datagrids in same page, sometime certains grids are not displayed, parameter scrollTimer timeout seem to be the cause. I replace 50 by 0 and it seem better. Can you explain why?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Problem with .datagrid('loadData', []); when two datagrid in same page
«
Reply #4 on:
September 06, 2014, 03:00:27 AM »
How do you initialize the buffer view? Please provide an example to demonstrate your issue.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...