Results 1 to 3 of 3

Thread: combox / selecting from large recordsets

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Location
    Heidelberg, Germany
    Posts
    79
    Answers
    1

    Default combox / selecting from large recordsets

    Hi,

    I am wondering what is the best / proven way to select a record from a large dataset as part of a form. For example, take an invoice form that requires the selection of a customer. For small datasets I could easily use a combox, for hundreds of thousands of customers that cannot be loaded from the server in one go, this is not an option, because the combox has several shortcomings in that case. For example, with queryMode:remote and displayField!=valueField I cannot use setValue to load an existing value, because the combobox's store will usually not contain the required record at that time.

    However, since the problem seems to be such a standard one, I cannot believe, other people have not come across is and I am wondering what would be a proven way in Ext to select a record from a large dataset, if it not by using a combobox.

    Thanks in advance for any pointers / any experience shared!

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    There are other approaches, of course, but one way I approached this in the past was to extend the combobox so that when an initial value was selected, it would make a request to the server which included the value as a filter. This would return the selected record (or the appropriate page of data, if desired), so the displayField != valueField scenario is resolved.

    Thanks
    Joel

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Location
    Heidelberg, Germany
    Posts
    79
    Answers
    1

    Default

    Thanks, Joel, for sharing your approach. That is exactly what I have been doing so far. However, I find it hard to believe that such a common usecase is not covered by standard components in such a big framework as ext is. Thus my question. Any other pointers, anyone else?

Similar Threads

  1. Replies: 1
    Last Post: 5 Apr 2012, 8:33 AM
  2. how to use combox as textfield and combox in grid editor
    By genTaliaru in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 22 May 2009, 4:55 AM
  3. combox box
    By sseetharaman in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 28 Feb 2009, 1:28 PM
  4. how to add even on combox box?
    By Reynolds in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 9 Jan 2008, 1:09 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
  •