Results 1 to 3 of 3

Thread: Grid Column hidden: 'true' plus .refresh() artifacts, related to loading gridstate.

  1. #1
    Sencha User
    Join Date
    Jul 2015
    Posts
    15
    Answers
    3

    Default Grid Column hidden: 'true' plus .refresh() artifacts, related to loading gridstate.

    First an explanation of why I am doing attempting to do this. I am storing grid states remotely and loading them via state.manager.httpProvider. After a state read I
    Code:
    grid.initState();
    grid.getView().refresh();
    to apply my state to the grid. This method is causing the artifacts as described below.

    When manually setting columns to hidden(as a initState does) and refreshing the grid a variety of artifacts are caused and hidden columns are partly shown as demonstrated in this fiddle.
    https://fiddle.sencha.com/#fiddle/163n

    Can someone help with a solution? Thank you

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Answers
    165

    Default

    Where and when are you applying the state? Is it part of the UX classes you have defined? State must be applied before component initialization.
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  3. #3
    Sencha User
    Join Date
    Jul 2015
    Posts
    15
    Answers
    3

    Default

    Thank you, I am applying the state in the readsuccess listener of my state provider. Because the provider is AJAX my grid is initialized before the state has returned. My followup would be, how can I delay the grid initialization until my state is ready?

Similar Threads

  1. Replies: 1
    Last Post: 18 Apr 2013, 12:26 PM
  2. Replies: 1
    Last Post: 27 Dec 2012, 6:34 AM
  3. how to make the hidden propertie of a column in a grid at true or false?
    By marxan in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 21 Feb 2011, 12:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •