We are displaying various types of data, including dates and numeric values within itemTemplates in our igGrid.
The issue that we have is that we cannot figure out how to safely format the values for display, including consideration of internationalization.
Can someone please point us in the right direction? Would it make more sense to use a grid as the column editor and, if so, can you please provide an example?
Hi, Karl.
The itemTempalte value is a string of the following format:
"<p>Some Text: ${ProductID}</p>"
You can change it to:
"<p>" + someText + ": ${ProductID}</p>".
For sure what you need is to have a data source, that is localized for the different languages and some additional files for the labels, like "someText" that will be localized also. So before the grid is rendered the template will be already localized. Then you can use the formatter function for every single column. In this way you be able to format the different types of data according to the formats that the country serves. You can also entirely use only the formatter instead of concatenating the template string.
I will wait for your feedback and don't hesitate if you have more questions.
Best regards, Nikolay Alipiev
Sorry, the real problem is listed in the title, but is not in the body of the question: the issue is with the columns in an igCombo that is used as the editor for a column in the igGrid. How can we apply formatting to those columns which are defined in an itemTemplate of the combo.