Results 1 to 4 of 4

Thread: Problem with shared instance of store

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    118
    Answers
    1

    Default Problem with shared instance of store

    Hi ,

    I am developing an application where there is page which have several combo boxes but with same value . So instead of creating different store I created only one which is acting like shared instance for all combo boxes. But problem is , every combo box is having forceSelection:true.

    So , when I try to type with any combo , all other combo's shows blank .

    here is the fiddler link

    https://fiddle.sencha.com/#view/editor&fiddle/2430

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Seems like you'd have to have different stores to achieve this behavior, but then you'd have to update the other combos. Can I ask what the use case is here?

  3. #3
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425
    Answers
    20

    Default

    You'll probably need to create a chained store for the 2nd combo.

  4. #4
    Sencha User
    Join Date
    Apr 2013
    Posts
    914
    Answers
    105

    Default

    Like LesJ says you have to use chained stores: https://fiddle.sencha.com/#view/editor&fiddle/24at

Similar Threads

  1. Store shared via multiple components
    By couetbis in forum Ext: Q&A
    Replies: 1
    Last Post: 18 Mar 2014, 9:11 PM
  2. Multiple Store Instance Problem
    By cdrascic in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 5 Jul 2013, 7:47 PM
  3. Replies: 1
    Last Post: 25 May 2012, 1:31 PM
  4. Two combos with shared store
    By Spenna in forum Ext: Q&A
    Replies: 3
    Last Post: 6 Jan 2012, 2:53 AM

Tags for this Thread

Posting Permissions

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