EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 16, 2025, 11:19:07 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
>
EasyUI for jQuery
>
Treegrid - timeout on load data via URL?
Pages: [
1
]
« previous
next »
Print
Author
Topic: Treegrid - timeout on load data via URL? (Read 7727 times)
tenly
Newbie
Posts: 7
Treegrid - timeout on load data via URL?
«
on:
July 30, 2015, 10:13:59 PM »
I have a tree grid that I am trying to populate using the URL property.
The URL points to a PHP page which passes a directory name to a powershell script.
The powershell script:
- connects to a remote computer
- builds an object containing a recursive list of all files from the specified root directory
- processes the list by removing unwanted file names
- sorts, group and generates a JSON formatted list
- returns the list to the calling PHP which returns the list to the treegrid element
The majority of the directory names I pass to the above process take about 5-7 seconds to process, however there are 2 (out of a possible 24) directories which are very large and take 55-70 seconds to process. I can see that the powershell script finishes successfully - but the treegrid does not get populated...so either PHP or the treegrid must be timing out and unwilling to wait for the full 60 seconds...
Is there any way to adjust the timeout so that the treegrid waits for the query to complete?
(Other suggestions for populating the treegrid more efficiently would also be welcome - but I'm very new to this and detailed examples or instructions would be extremely helpful.)
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Treegrid - timeout on load data via URL?
«
Reply #1 on:
July 30, 2015, 11:34:58 PM »
You can call $.ajaxSetup to change the default timeout value.
Code:
$.ajaxSetup({
timeout: 20000 //Time in milliseconds
});
Logged
tenly
Newbie
Posts: 7
Re: Treegrid - timeout on load data via URL?
«
Reply #2 on:
July 31, 2015, 01:43:47 AM »
Thanks for your reply but the timeout setting didn't solve my problem.
I set the timeout for 120,000 milliseconds. My query takes 64 seconds to run.
When the TreeGrid starts loading, the loadMsg text is displayed for 45 seconds and then it disappears.
How do I tell the TreeGrid control to wait longer?
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...