Announcement

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

    ListGrid: Cannot switch back to “Default view” after creating custom views (custom views switch fine)

    In a ListGrid setup with “Create view / Edit view” options, the grid initially loads with the Default view and renders correctly. After I create one or more custom views, I can switch between these custom views seamlessly. However, when I try to switch back to the Default view, the original default layout/filters/sorts/grouping (as seen on initial load) do not come back. It either stays on the last custom state or shows an incorrect/incomplete state.

    SmartClient Version: v14.1p

    #2
    The only difference i could spot is , default view's gridViewData didnot have any width in the Json which is saved in the DB , But the custom ones has width data;

    ex:

    Default view :
    ({"field":[{"name":"colA"},{"name":"colB"},{"name":"colC"},{"name":"colD"},{"name":"colE"},{"name":"colF"},{"name":"colG","autoFitWidth":true,"width":15},{"name":"colH","autoFitWidth":true,"width":15},{"name":"colI","autoFitWidth":true,"width":15}],"sort":{"fieldName":"colA","sortDir":"ascending","sortSpecifiers":[{"property":"colA","direction":"ascending"}]},"hilite":"[No Hilites]","group":"[No Grouping]","showFilterEditor":true})

    Custom View :

    ({"field":[{"name":"colA","autoFitWidth":false,"width":242},{"name":"colB","width":242},{"name":"colC","width":242},{"name":"colD","width":242},{"name":"colE","width":242},{"name":"colF","width":247},{"name":"colG","autoFitWidth":true,"width":134},{"name":"colH","autoFitWidth":true,"width":128},{"name":"colI","autoFitWidth":true,"width":119}],"sort":{"sortSpecifiers":[{"property":"colA","direction":"ascending"}]},"hilite":"[No Hilites]","group":"[No Grouping]","showFilterEditor":true})

    Comment


      #3
      Were these viewStates captured in a previous version of SmartClient? Or are they perhaps hand-written?

      Can you reproduce this if you use the built-in Saved Search system?

      Comment

      Working...
      X