EasyUI Forum
June 16, 2024, 08:00:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: Datagrid "onLoadSuccess" fires twice on: August 05, 2014, 10:53:53 PM
 Grin
I has solved it. Because I declared this datagrid in the  HTML<body> ,and I append  some new attributes  for datagrid in the javascript ,so this datagrid  is reloaded.
My solution is : throw them into $(function),then all are OK! Grin
2  General Category / EasyUI for jQuery / Datagrid "onLoadSuccess" fires twice on: August 05, 2014, 08:58:26 PM
I found  when datagrid was loaded,the onLoadSuccess event fired twice.
Code:
<script type="text/javascript">
$('#test').datagrid({
url:'datagrid_data1.json',
method:'get',
onLoadSuccess:function(data){
alert(1);
$('.datagrid-header td:contains(de)').click(function(){
alert(2);
});
}
});
</script>
When I refresh page, the output displays "1" twice.
why? In my mind, onLoadSuccess event should fire only once.
3  General Category / EasyUI for jQuery / Re: How to append custom options into a combotree? on: July 18, 2014, 12:25:15 AM
The “custom options”  is not belonged to this tree,just display them in  this select element(combotree).
For example, in some case,I don't want to select any nodes of this tree and I perfer to select "ALL",but “ALL” isn’t generated from url or json, I append it as extra option, that 's custom options what i said.
My English is poor ,thank you for sparing your precious time answering my question.
4  General Category / EasyUI for jQuery / How to append custom options into a combotree? on: July 17, 2014, 10:19:21 PM
How to append custom options into a combotree?
now,I have getted json data and generate a tree,I also want to append some custom options into a combotree,such as "ALL" and "NONE".
Can you give me some ideas?
Thanks! Grin
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!