Announcement

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

    TreeGrid sorting is not happening propely

    Hi,

    We are using Smart Gwt-4.1p (29th Oct 2014)
    Browser: Google chrome 39.0.2171.95 m, IE8 and IE9

    I am using the TreeGrid in my project. I am having one wired issue for my tree grid. If I do sorting to my treeGrid, it is doing in the reverse order ie.., for ascending, it is sorting in descending manner and vice versa. Please help me out in rectifying this issue.

    - Why is it doing in reverse order?

    Any suggestions would be appreciated.

    #2
    From a quick check, this does not appear to be happening in any of the tree-related samples for 4.1, with any of the common field types.

    To look into this, we need a way to reproduce the problem.

    Comment


      #3
      I would like to know is there any way to invoke a handler, on click of the Sort Ascending or Sort Descending option on the TreeGrid menuItem. Because for the first time If I do Sort Ascending or Sort Descending, it is not doing the sort.

      Comment


        #4
        The standard sortAscending/sortDescending menu items call listGrid.sort() or listGrid.toggleSort() if the grid is already sorted.

        You could of course provide custom header menu options with other behavior instead if you want to do something else.

        We're not aware of a framework bug in this area. If your treeGrid is failing to sort and you believe there's a framework bug we'd be happy to take a look but we would need a test case and steps to reproduce the problem.

        Regards
        Isomorphic Software

        Comment


          #5
          Thanks for the response.
          After some observation, I am getting the below error when I expand/collapse the TreeGrid Node.

          Please tell me for what reason the below error is thrown?

          14:24:21.364 [ERROR] [<SeC>] 14:24:21.356:KPR8:WARN:TreeGrid:isc_TreeGrid_0:getCellRecord called with bad rowNum: null
          com.smartgwt.client.core.JsObject$SGWT_WARN: 14:24:21.356:KPR8:WARN:TreeGrid:isc_TreeGrid_0:getCellRecord called with bad rowNum: null
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
          at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
          at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
          at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
          at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
          at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
          at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
          at java.lang.Thread.run(Thread.java:745)

          Comment


            #6
            This is a warning that something is calling the "getCellRecord()" API and passing in a bad rowNum (null instead of a proper record index).

            Without seeing this problem in action we can't comment on what the cause is. There may be some issue in your application code where you're making this call, or making some other call which ultimately falls through to this method. Or of course there could be a framework issue we haven't seen before in some particular configuration you happen to be hitting.

            If this is not causing any user-visible bad behavior in your app this actually could be safe to ignore - but we can't really be certain without seeing a way to reproduce the problem. If you'd like us to investigate further, please show us a way to reproduce this with a small standalone test case we can run and we'll take a look.

            Regards
            Isomorphic Software

            Comment

            Working...
            X