Announcement

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

    Problem with deselectAllRecords()

    Hi,

    I need to programatically deselect all records in a TreeGrid, and then select its parent record in the same TreeGrid.

    After a user manually selects a record, I have the screenshot 1.png. That is correct.

    After programatically deselecting all records, and selecting the parent record, I have the screenshot 2.png. As you can see, the previously selected record is now deselected, but I still see the marked record. When I move the mouse around, this disappears, but I need this mark to disappear immediatly, so only the new selected record (the parent record) is marked.

    I do this with
    Code:
    treeGrid.deselectAllRecords();
    treeGrid.selectRecord( treeNode );
    I am using SmartGWT EE 3.0.
    Attached Files

    #2
    Someone? I think the solution should be easy but I don't find it :-(

    Comment


      #3
      I tried to change the focus to another element of the page, or to collapse the tree branch, or to redraw the tree, but that doesn't work.
      Is this impossible to achieve?

      Comment


        #4
        Hello,

        Is this happening with all Browsers ?

        Comment


          #5
          Hello,

          yes, I tried with Firefox 10.0.2 and Internet Explorer 8.

          Comment


            #6
            I discovered that after the treeGrid.deselectAllRecords() call, the cell still has the style class "crm-NavigationPaneGridCellOver". That's why it's style is still the cellOver style.
            How can I change that?

            Comment


              #7
              I can't believe that is so difficult!
              After trying different methods like redraw(), refresh(), nothing works.

              Any ideas?

              The exact version of my smartgwt is "v8.2p_2012-04-12/EVAL Deployment".

              Comment


                #8
                Do you need some more information or why don't I get any reaction ?

                Comment


                  #9
                  Please Isomorphic help to solve this problem

                  I'm also facing the same problem. I have tried many things but it's not working actually. Please Isomorphic help to solve this problem.

                  edulid did you find any solution to this..?

                  Comment


                    #10
                    I am having the same problem with a regular ListGrid. I call deselectAllRecords() on it and yet the previously selected row(s) are still highlighted in the grid as if they are selected.

                    Anyone know how to resolve this?

                    Comment


                      #11
                      khuram No, still no solution.

                      Comment

                      Working...
                      X