EasyUI Forum
May 03, 2024, 06:32:53 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 ... 28 29 [30]
436  General Category / EasyUI for jQuery / Re: Why this don't work (Accordion)? on: June 03, 2013, 11:04:25 PM
Hello
yes that was the problem + $.parser.parse('#mainacc');
Thanks a lot!
437  General Category / EasyUI for jQuery / Why this don't work (Accordion)? on: June 03, 2013, 03:08:10 PM
Hello all
I try to create Accordion from variable, but it does not work:
http://jsfiddle.net/bcjMe/
Thanks for any idea.
438  General Category / EasyUI for jQuery / Re: Dynamic columns on: June 01, 2013, 01:11:34 PM
Thank you for your solution, thanks a lot.
439  General Category / EasyUI for jQuery / Dynamic columns on: May 31, 2013, 08:20:15 AM
Hi all
I need to create datagrid columns "on the fly".
Here is what I have:

Code:
$.get("/json/members_tabs.json",
{
  }).done(function(data)
{
  $('#member_invoice').datagrid({
  url:'/json/member_invoice.json', 
  columns: [[{field:"_date",title:"Date"},{field:"document",title:"Name"},{field:"shipping",title:"Price",align:"right"}]] 
  //columns: data
 });
});

my "data" contain same value as above, but it does not work.
Why not?
I mean, if I use this:
  columns: data
and inside "data" is this:
[[{field:"_date",title:"Date"},{field:"document",title:"Name"},{field:"shipping",title:"Price",align:"right"}]]
it will not work, and if I use this:
  columns: [[{field:"_date",title:"Date"},{field:"document",title:"Name"},{field:"shipping",title:"Price",align:"right"}]]
it works.

What I need to do so I can create columns on the fly?
I found this answer:
http://www.jeasyui.com/forum/index.php?topic=286.msg681#msg681
but it is same as above - If I use my data instead od "hardcoded" values - it does not work.
Thanks for help.
Pages: 1 ... 28 29 [30]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!