Results 1 to 2 of 2

Thread: ListViewSelectionModel loses selection when Locked

  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2008
    Posts
    59

    Default ListViewSelectionModel loses selection when Locked

    Hi all,

    My goal with this ListView component I have is to display it read-only with the current selection showing and locked.

    However, although I can disable the component with the selection showing, if I add a call to lock the selection, the selection disappears from the view. That is, the component still indicates that it has a selection, but it does not show as selected anymore in the actual display to the user.

    The setLocked API documentation claims that it only locks the current selection. This locking should not affect the view by removing it from the display.

    Is this a known issue? Is there a workaround?

    I do not want to leave the selection unlocked because in read-only mode the user should not be changing the selection state (which it appears to do when clicked, even while disabled).

    Thanks,

    Paul

  2. #2
    Sencha Sr Product Manager
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    1,178

    Default

    Sounds like when the state changes the refresh removes the selection when it calls refresh and the cell render. Possibly using the selection to set selection once disabled could fix that. Would that help?

Similar Threads

  1. [OPEN] Ext.selection.Model loses selection on page change [4.2.3]
    By agarberi in forum Ext:Bugs
    Replies: 3
    Last Post: 26 Sep 2014, 2:14 AM
  2. Locked column grid loses column information
    By bladesling in forum Ext: Q&A
    Replies: 2
    Last Post: 8 Aug 2012, 1:13 PM
  3. Replies: 8
    Last Post: 2 Feb 2012, 1:50 PM
  4. ComboBox loses entries after selection of one
    By twilbrand in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 24 Jul 2009, 6:05 AM
  5. getDataModel().removeRows(0) loses selection
    By next2you in forum Ext 1.x: Bugs
    Replies: 5
    Last Post: 6 Jun 2007, 8:55 PM

Posting Permissions

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