show decimal number c1gridview dataformatting

Originally Posted 23 January 2016, 2:31 am EST

  • Originally Posted 23 January 2016, 2:31 am EST

    for show number I use c1gridview dataformatting "d"
    but I want to show decimal number for example 3.1
    what is the dataformatting parameter?
  • Marked as Answer



    In order to show decimal number in a particular column of WijGrid, you are suggested to make use of both ‘dataType’ and ‘dataFormattingString’ option of the ‘columns’ option of WijGrid.

    Here is the code snippet:

    columns: [
    { headerText: "Number", dataType: "number", dataFormatString: "n1" },
    { headerText: "Nationality" },
    { headerText: "Player" },
    { headerText: "Position" },

    For complete implementation, please refer to the attached sample application.

    Raunak Ladha
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels