EasyUI Forum
May 17, 2024, 08:29:54 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: refresh combogrid  (Read 17610 times)
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« on: October 05, 2012, 12:42:38 AM »

How do I reload the data in the combogrid?

I tried retrieving the grid object (.combogrid('grid')) and on this object Itried calling a load with new parameters.... No luck  (.combogrid('grid').datagrid('load',{parameter:value})

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 05, 2012, 06:01:34 AM »

It seems that there are no problems with your codes.
Logged
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« Reply #2 on: October 05, 2012, 07:48:25 AM »

Strange,  could you make a jsfiddle example please?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: October 05, 2012, 10:37:25 PM »

Here is the jsfiddle example:
http://jsfiddle.net/zkQ3X/
Logged
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« Reply #4 on: October 08, 2012, 02:49:56 AM »

Thank you, this example works fine.

But what I was looking for was with the use of an external JSON source.

Nothing happens: 
jQuery('#pfx_classSearchField').combogrid('grid').datagrid('load',{catalogNumberOrDescription:courseDataArray['Studiegidsnummer']});

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #5 on: October 08, 2012, 05:51:42 AM »

As a demonstration, loading external data source can not be hosted on jsfiddle. But these have no more differences.
Please check if the request parameter can be posted to server correctly when calling 'load' method. If so, make sure your server can receive this parameter and return the corresponding data back to browser.
Logged
Ellipsis
Full Member
***
Posts: 113


View Profile WWW
« Reply #6 on: October 18, 2012, 12:49:18 AM »

Ok got it working, thank you.
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!