Announcement

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

    Google Chrome Listgrid rendering order issue

    Using Smartclient 8.2 in Google Chrome 16.0.912.77,
    We have problems with a listgrid that can be ordered with input fields.

    if a listgrid is ordered on a certain field (either with sortFieldNum or by user).
    entering a value in one of the fields results in the order of the items being changed. Even if the ordering is not on the column we're editing.

    e.g. ordering is set on col 1 and col 2 has a text input.

    A input
    B input
    C input
    D input

    entering a value 'Text' in input of line B would result in something like

    A input
    D input
    B input=Text
    C input

    while
    A input
    B input=Text
    C input
    D input

    is expected since inputting a value in a column that was not ordered on last should not change the order of the items

    This is unexpected and very disturbing behaviour.

    It runs fine in IE8 and FF 3.6.

    Kind Regards

    #2
    Is only the case if the column you sort on has does not result in distinct values.

    e.g.

    default sorting on col 1

    col 1 col 2 col 3
    A A input
    A B input
    A C input
    A D input
    A E input
    A F input

    when inputting data in col 3 while sorted on col 1, rows randomly shift place.

    when sorting on col 1 and then col 2 asc this is not the case,
    however we cannot control our users sorting on the first column only.
    Making it horrible to input col3 since rows are switching places without any reason.

    As mentioned before, this does work ok in IE 8 and FF 3.6.
    Rows do not switch on input of col 3, even if only sorted on col 1.

    Comment


      #3
      Without any way to reproduce the problem, the only comment we can provide is that you may have hit a native bug in Chrome where array.sort() is not stable for identical values. This has never been reported before, but perhaps it's a transient regression in Chrome.

      We would need a way to reproduce the problem to tell you definitively.

      Comment

      Working...
      X