Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1085
Formatting combo editor columns
posted

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?

Parents
  • 4315
    Offline posted

    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

     

Reply Children