Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid wrong record selection after open folder

    Hello,

    We upgraded our application from 5.0p (NIGHTLY 2015-03-23) to 5.0p (NIGHTLY-2015-04-15) and we have an issue with record selection after an open folder event.
    We are able to replicate this behaviour in a simple test case: if you run the code below after loading data, the first record is selected by DataArrivedHandler. Open the node 'Tammy Plant' without select it and then select record 'Susan Garfield': at this point the selected record is 'Tammy Plant' and not 'Susan Garfield'.
    With SmartGWT 5.0p (NIGHTLY 2015-03-23) the selected record was 'Susan Garfield'.

    Code:
    public void onModuleLoad() {
    		
    	final TreeGrid tree = new TreeGrid();  
    
    	tree.setLoadDataOnDemand(false);  
            tree.setWidth(500);  
            tree.setHeight(150);  
            tree.setDataSource(EmployeeXmlDS.getInstance());  
            tree.setAutoFetchData(true);  
            tree.setCanEdit(true);
            tree.setEditEvent(ListGridEditEvent.CLICK);
      
            TreeGridField nameField = new TreeGridField("Name", 150);  
            TreeGridField jobField = new TreeGridField("Job", 150);  
            TreeGridField salaryField = new TreeGridField("Salary");  
      
            tree.setFields(nameField, jobField, salaryField);
            
    		tree.addDataArrivedHandler(new DataArrivedHandler() {
    			
    			@Override
    			public void onDataArrived(DataArrivedEvent event) {
    				tree.startEditing(0);
    			}
    		});
              
            tree.draw();
    }
    To test this example you must use in the datasource the attached xml data.

    Browser version: Chrome 43.0.2357.81 (64-bit)

    Thanks in advance
    Attached Files

    #2
    We're not seeing this behavior with any recent nightly, so we'd recommend updating to the latest.

    Just for completeness: there are automated tests that cover this behavior, so it's odd that you report any build as having such an issue.

    Comment


      #3
      We have also tried the last nightly build (2015-06-03) and the behaviour is the same.
      However you can see this issue in the SmartGWT showcase Frozen Columns (http://www.smartclient.com/smartgwt/showcase/#tree_frozen_columns).
      Follow these steps to replicate the behaviour:

      * open node 'Charles Madigen'
      * open node 'Abigail Lippman'
      * double click on node 'Charles Madigen' to enter in edit mode
      * open node 'Rogine Leger'
      * select node 'Francine Dugas'

      At the end, the selected record is 'Rogine Leger' and not 'Francine Dugas'.
      We think that probably the issue is due to the editing mode of a node.

      Thanks

      Comment


        #4
        Hi all,

        I can reproduce using FF26 and the online showcase sample.

        Best regards
        Blama

        Comment


          #5
          Thanks for the extra info. This looks like it may be browser-dependent in some way. We'll be taking a look shortly.

          Regards
          Isomorphic Software

          Comment


            #6
            Hi to all,

            any news about this issue?
            However, if this can help, we have tested the frozen column showcase on IE10, FF38 and Chrome 43, replicating the problem.

            Best regards

            Comment


              #7
              We've made a change which we believe will resolve this issue for you.
              Please try the next nightly build, dated June 16 or above.

              Regards
              Isomorphic Software

              Comment


                #8
                Hi all,

                the issue is resolved in nightly 2015-06-16.

                Thanks a lot.

                Comment

                Working...
                X