Show Posts
|
Pages: [1] 2 3
|
3
|
General Category / EasyUI for jQuery / Re: Maintaining EasyUI Formating
|
on: October 11, 2021, 12:08:54 AM
|
Hi Thanks for the example.. I'm now trying to set a value (using the "setvalue" method) to the qty0 textbox, on name change ie... $('<input>').attr('name','name'+counter).appendTo(td).textbox({ onChange: function(value){ console.log('changed:'+value); [b] $('#qty0').textbox('setValue', "TEST DATA");[/b] // <--- This doesnt seem to work ??? } });
What am i doing wrong ? Thank you Use SetText to set displaying value.
|
|
|
4
|
General Category / EasyUI for jQuery / Localization / Datagrid
|
on: June 13, 2019, 04:20:58 AM
|
Hi, we have localization json files, fi.json, en.json, ...
Structure is like
{ "Login": { "login": "Login", "exit": "Exit" }, "DeviceSettingsModal": { "save": "Save", "cancel": "Cancel" }, "common": { "accept": "Accept", "add": "Add", "pageControls": { "label": "Page" } } }
How could I read this stucture into datagrid where are columns for each language and each parameters language value should be editable?
pageControl part is tricky, how to implement that? I though of datagrid subgrid, but is it possible define when every row does not have subgrid?
|
|
|
6
|
General Category / EasyUI for jQuery / Re: Scrolling is very slow inside dialog
|
on: April 15, 2019, 04:28:27 AM
|
Even in your demo the problem is still there. Use your mousewheel to scroll. You can see that it is very very slow. I think this is a bug. If you scroll this page with your mouse wheel, you can feel and see the normal behaviour of mousewheel scroll. But for the datagrid inside the dialog, we can hardly leave even one row at one wheel scroll. I hope you can fix this.
Thanks and regards
Alfred
Scrolling with mouse wheel is easy and fast, this issue has something to do with your computer?
|
|
|
10
|
General Category / EasyUI for jQuery / Re: The fixDetailRowHeight property setting when subgrid is nested
|
on: January 21, 2019, 11:35:26 PM
|
You have typo: expandder Please show your code to demostrate your issue.
This is the complete code: var dg = { //Initial table url:'griddata', columns:[[ {field:'e',expandder:true}, {field:'ck',checkbox:true}, {field:'cp',title:'product',halign:'center'}, {field:'kh',title:'customer',halign:'center'}, {field:'gy',title:'employee',halign:'center'}, {field:'sl',title:'amount',halign:'center',align:'right'}, {field:'dj',title:'price',halign:'center',align:'right'}, {field:'zk',title:'discount',halign:'center',align:'right'}, {field:'je',title:'amount',halign:'center',align:'right'}, {field:'rq',title:'date',align:'center'} ]], pagination:true }; var sub1 = { //Child table 1 url:'gydata', foreignField:'cp', columns:[[ {field:'kh',title:'customer',width:'45%'}, {field:'sl',title:'amount',width:'45%'}, ]], onLoadSuccess: function(param){ var pg = $(this).datagrid('getParentGrid'); var index = $(this).datagrid('getParentRowIndex'); pg.datagrid('fixDetailRowHeight',index); } }; var sub2 = { //Child table 2 url:'gydata', foreignField:'kh', columns:[[ {field:'gy',title:'employee',width:'50%'}, {field:'sl',title:'amount',width:'50%'}, ]], onBeforeLoad:function(param){ var pg = $(this).datagrid('getParentGrid'); var index = pg.datagrid('getParentRowIndex'); var row = pg.datagrid('getParentGrid').datagrid('getRows')[index]; param.fzl = row.cp //Submit fzl parameters to the server at the same time }, onLoadSucess: function(){ var pg = $(this).datagrid('getParentGrid'); var index = $(this).datagrid('getParentRowIndex'); pg.datagrid('fixDetailRowHeight',index); index = pg.datagrid('getParentRowIndex'); pg.datagrid('getParentGrid').datagrid('fixDetailRowHeight',index); }, }; $('#test').datagrid().datagrid('subgrid',{ options:dg, subgrid:{ options:sub1, subgrid:{ options:sub2 } } })
I uploaded a few more screenshots. among them: 1, the initial expansion effect 2, the effect of re-expanding after folding 3, the effect of the second sub-table expansion 4, the effect of the second sub-sheet after folding
|
|
|
|