EasyUI Forum
May 04, 2024, 12:29:44 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 [2]
16  General Category / EasyUI for jQuery / why I can't use setValue to set the combotree init value? on: January 01, 2015, 08:45:53 PM
hi
when I use dialog 's onload event to init the combotree value ,but it did not success
onLoad:function(){
       var node= $('#dishes_dishes_dishesclass_tree').tree('getSelected');
       $('#itemclassNo').combotree('setValue',node.id);   
    },

but when i add a alert(node.id) before the setValue,It's success, like this:
onLoad:function(){
       var node= $('#dishes_dishes_dishesclass_tree').tree('getSelected');
       alert(node.id);
       $('#itemclassNo').combotree('setValue',node.id);   
    },
how can i do ,thanks
17  General Category / EasyUI for jQuery / in javascript ,how to according one input filed value to set an another? on: January 01, 2015, 06:06:44 AM
in javascript ,how to according one input filed value to set an another?
my question is like this:
 <td>性质</td>
                   <td align="left">
                        <select id="dishes_disheseditform_thetypecombox" class="easyui-combobox" name="thetype" style="width:100px;" data-options="
                        onSelect: function(rec){
                        if (rec.value=='00') {
                          $('#dishes_disheseditform_itemNo').val('me');
                         }else if(rec.value=='01') {
                          alert(rec.text);
                         }
                        }
                        ">
                                <option value="no"></option>
                                <option value="00">商品</option>
                                <option value="01">菜品</option>d
                      </select>
                   </td>
                  
                <td>菜品编号</td>
                <td><input id="dishes_disheseditform_itemNo" name="itemNo" class="easyui-textbox"    /></td>
               </tr>

but I can not set the value of input id="dishes_disheseditform_itemNo",
how can i do?
18  General Category / EasyUI for jQuery / how to let combobox default not to select one option on: January 01, 2015, 05:18:46 AM
how to let combobox default not to select one option?
the standard <select> elemet ,default not select one option ,but i want to use this state;
can the combobox action like the sdandard <element> ,how can i do?thanks
19  General Category / EasyUI for jQuery / Can easyui-form submit a list of recorder? on: December 28, 2014, 08:54:16 PM
there I need to submit a list of recorder ? when I use queryParams:people1,that people1 define like this :
var people1 =
   [
    { "firstName": "Brett", "lastName":"McLaughlin", "email": "brett@newInstance.com" },
    { "firstName": "Jason", "lastName":"Hunter", "email": "jason@servlets.com" },
    { "firstName": "Elliotte", "lastName":"Harold", "email": "elharo@macfaq.com" }
   ];

but the debug display like this :0:"[object+Object]"
1:"[object+Object]"
2:"[object+Object]"

how can i  do? thanks
                     
20  General Category / General Discussion / can tree 's data --the map data (attribute) display in treegrid? on: December 23, 2014, 08:32:43 PM
in backend server ,It return treedata, the treedata contain the map attributes,the attributes have a lot of filed and it's value ,can the attributes data display in treegrid?
21  General Category / General Discussion / Re: how insert a top node in treegrid on: December 22, 2014, 03:14:59 AM
The code below shows how to append a root node.
Code:
$('#tt').treegrid('append',{
parent: null,
data: [{
id: '073',
name: 'name73'
}]
});

在行编辑模式下,这个id :'073'难道必须固定吗,不能改动吗,在行编辑模式下,我编辑器里,把id '073' 改成别的 比如'072’,此时.treegrid('endEdit', '072');根本就不能用触发 onAfterEdit事件,当然后台也保存不了,这个怎么解决,或者是个bug?
22  General Category / General Discussion / in editable treegrid,how to get the manul inputed id value? on: December 21, 2014, 11:38:01 PM
in editable  treegrid,how to get the manul inputed id value?
when i input a recorder ,but I can't get the inputed id value to invoke endedit method?how can i do
23  General Category / General Discussion / how to let treegrid's editor height fit the treegridline height? on: December 21, 2014, 07:03:56 PM
in easyui ,the editor's height too smaller than  the treegrid line height,how to let treegrid's editor height fit the treegridline height?
24  General Category / General Discussion / how insert a top node in treegrid on: December 20, 2014, 09:01:13 PM
how insert a top node in treegrid?
25  General Category / General Discussion / treegrid surport (id,parentid) directly? on: December 19, 2014, 04:45:47 PM
I find a demo that like this:
{"total":9,"rows":[
   {"id":1,"region":"Wyoming"},
   {"id":11,"region":"Albin","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":1},
   {"id":12,"region":"Canon","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":1},
   {"id":13,"region":"Egbert","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":1},
   {"id":2,"region":"Washington"},
   {"id":21,"region":"Bellingham","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2},
   {"id":22,"region":"Chehalis","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2},
   {"id":23,"region":"Ellensburg","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2},
   {"id":24,"region":"Monroe","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2}
],"footer":[
   {"region":"Total","f1":14000,"f2":12600,"f3":13321,"f4":15281,"f5":14931,"f6":13461,"f7":14126,"f8":12866}
]}

so the treegrid support (id,parentid) and how about grid?
26  General Category / General Discussion / can not remove accordion panels once complete? on: December 10, 2014, 09:47:17 PM
    thepanels=$('#layout_west_accordion').accordion('panels');
        for (var i=0;i<thepanels.length;i++)
       {
         var index = $('#layout_west_accordion').accordion('getPanelIndex', thepanels);
         $('#layout_west_accordion').accordion('remove', index);
       
       }
我在动态产生accordion的panels前,把原来的删除掉,为什么循环一次删除不完呢,这个代码执行了3次才行,为什么,怎么解决?
Pages: 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!