EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: felix9520 on April 26, 2016, 02:08:43 AM



Title: multiple window used repeatedly
Post by: felix9520 on April 26, 2016, 02:08:43 AM
Hi guys, I got a problem on using easyui.window.

I've got a datagrid in my basic page, and I need to pop up a 2nd window 2 add or edit one row for the datagrid. and in the 2nd window, I need to pop up the 3rd window to do some data selecting for the 2nd windows form.

At the first time they work just fine, but since the 2nd time I can't get any data show on the 3rd window.

I checked the data provider works just fine. And I tried 'refresh' and 'clear' method but they didn't work out. How can I solve this?

I'm thinking it's something about cache isn't it?

Apology for my poor English~

(http://r.photo.store.qq.com/psb?/V10N4E2l1R7T2m/qRqsm7P*gU3jPwI9BQ.zGC23CKsLKVtCWvvpNxKXSx4!/r/dAQBAAAAAAAA)


Title: Re: multiple window used repeatedly
Post by: felix9520 on April 26, 2016, 06:33:33 PM
If I use
Code:
onClose: function () { $("#popDiv").panel("clear"); }
then I can get data render on the 3rd window, but I can't close it by
Code:
$('#popDiv').window('close');

help~~ :'(


Title: Re: multiple window used repeatedly
Post by: felix9520 on April 27, 2016, 12:02:53 AM
solved~