I have followed the example at (http://www.igniteui.com/grid/basic-editing) and made my own test, but the formatter is fired before the lookup array is filled with data, that's why I receive the error:
Uncaught TypeError: Cannot read property 'Text' of undefined
How to make the formatter to fire at the right time? Attached is the html version and razor version too.
Hello Luis,
Thank you for posting in the Infragistics community !
You can just move the code inside the formatter function. However I rewritten your code with a more consistent one. Please see the modified sample and let me know if it works for you.
I moved the code to the formatter function and it doesn't works either. See the attachment.
I do not see all the changes presented in my sample reflected in your code. Also, your data source is null because this is how you have set it. Look at line 65 in your code:
dataSource: null
You will not get your code working if the datasource is null. Please refer to my sample agaian where I have defined a datasource for the combo control and it worked. It works fine and displays the category name instead of the category id in the first column of the grid.
Hi. You're are right! I set the wrong datasource in the razor version (my mistake). I apologize for the inconvenience and thank you for your patience.
Thanks again.
It is ok, I am glad this thread was helpful for you. Please let me know if you need any further assistance on the issue.