ExtJs - Renderer for remote store combobox in grid editor -


i know has been asked somewhere again , again can't find solid answer standard kind of problem.

as many have done before have editor inside grid combobox uses remote store database. suppose there table in database 50,000 records. combobox loads first 15. when select record between these 15 displays fine. render displayfield instead valuefield, use following function

  rendercombobox : function(value, metadata, record, rowindex, colindex, store, view, isnewrow){             var me      = this,           columns = me.columns,           editor, editorstore, editorindex, displayfield, display, rec;      for(var i=0,j=columns.length;i<j;i++){                 if(columns[i].geteditor){           editor = columns[i].geteditor(record);           if(editor.xtype === 'combobox'){               editorstore   = editor.getstore().load();               editorindex   = editorstore.findexact(editor.valuefield, value);               displayfield = editor.displayfield;           }       }     }           if(editorindex != -1){         rec = editorstore.getat(editorindex);         if(rec && rec.get(displayfield)){             display = rec.get(displayfield);         }                    }           return display;         } 

the problem following scenario.

if type ahead, can find record not between these 15 records. example record 42,300. select , moment ok. if click on field on editor in grid (i.e. datefield) renderer function combobox returns undefined tries find record value of record 42,300 not exist in store. debugger says store contains again first 15 records.

is there configuration miss? store needs limitation. can't bring 50,000 records database @ once.

i think example want: http://extjs.eu/ext-examples/#combo-in-grid


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -