EasyUI Forum
September 14, 2025, 06:18:18 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 / Bug Report / Re: Reload (bug or not)? on: January 25, 2014, 06:18:00 PM
Maybe look at this topic : http://www.jeasyui.com/forum/index.php?topic=2815.0
Cheers
2  General Category / EasyUI for jQuery / Re: tree after reload, i can't select neither check node on: January 25, 2014, 05:56:53 PM
Great thanks, it works Smiley
3  General Category / EasyUI for jQuery / Re: [ASK] Keyboard Navigation on Datagrid on: January 24, 2014, 11:18:06 AM
Hi
for sort of case, i use the jquery key event
http://api.jquery.com/category/events/keyboard-events/
Cheers
4  General Category / EasyUI for jQuery / Re: What is the best way to move up and down root nodes in a tree without DND on: January 24, 2014, 11:14:08 AM
Hi
i am using DND and keyboard

If you write the different methods for append, top and bottom event , you will be ok
Cheers
5  General Category / EasyUI for jQuery / Re: tree after reload, i can't select neither check node on: January 24, 2014, 11:11:36 AM
Hi
thanks for the answer

My first need is to select the node , the check was just a second example to see if i have access or not on the node methods

My case is exactly this:
I am moving the node position with my keyboard
After each move i update the database and ajax:on success, i reload the tree (later i will reload only some nodes , but today, i relaod all)

I would like to keep the selection on the node to continue moving it with my keaboard, without re-selecting it with my mouse

Do you know why after reloading, i can't use the select method ?
I have been testing with a js timer, with promise, but ... i don't get it Sad
Cheers
6  General Category / EasyUI for jQuery / tree after reload, i can't select neither check node on: January 23, 2014, 03:19:42 PM
Hi

After reloading the tree, i can't select neither check the node

My case is : i select a node, i drop it. I would like to keep the select on the moved node, the one which has change place
I also try with the check method, doesn't work after reload method (works well elsewhere)

So i feel it's due to the reload ?

The basic code is:


 $('#tt').tree('reload');
 $('#tt').tree('select', source.target);
 $('#tt').tree('check', source.target);


I have tried with jquery promise, but it still doesn't work. Example:


 var reload = $('#tt').tree('reload');
 reload.promise().done(function () {
     var myNode = $('#tt').tree('find', source.id);

     alert(myNode) //OK, i get my good id

     //Select the node
     $('#tt').tree('select', myNode.target);
     //$('#tt').tree('select', myNode.id);
     //$('#tt').tree('select', myNode);
 });


But i make it works elsewhere , where there is no reload. Example:

success: function(idResult){
    //Find the node with id
    var nextNode = $('#tt').tree('find', idResult);

    //Select the node
    $('#tt').tree('select', nextNode.target);


If you have any ideas why and how to solve this

Thanks a lot
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!