1

I have grid panel where some column cells require to show combo box. 

I have different services to load grid and combo data. I have different fields in record to show value in grid cell rows.

I want to display default value in combo from grid row record. 

One idea is that first I load and bind store to combo and find the record from grid row cell value, and setValue with combo. 

I am not sure It is feasible way to bind store to combo while rendering grid data. Will this impact performance ?

Please suggest.

Rishabh Shah
  • 541
  • 7
  • 28
  • Are you getting column configuration which having combo from xml or manually mentioning in code. – UDID Nov 14 '16 at 10:52
  • Manually by using widget in column configuration – Rishabh Shah Nov 14 '16 at 11:42
  • 1
    The way you mentioned is perfect, only problem I can see is if we need to set different value for different combo then it create problem but If store index is same for all the combo then it is absolutely fine. have a look to this fiddle. https://fiddle.sencha.com/#fiddle/1kai – UDID Nov 14 '16 at 12:09
  • Fiddle does not exist. – Rishabh Shah Nov 14 '16 at 14:51
  • We don't need to worry about store index and different value for different combo. I can get different values through onWidgetAttach function in column configuration. – Rishabh Shah Nov 15 '16 at 04:05
  • Can you check fiddle now. – UDID Nov 15 '16 at 05:08
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/128118/discussion-between-udid-and-rishabh-shah). – UDID Nov 15 '16 at 05:35
  • My point is that is it feasible to bind store to combo box during grid rendering ? Will it impact on performance of grid, if I have thousands of records ? – Rishabh Shah Nov 15 '16 at 17:18

0 Answers0