show decimal number c1gridview dataformatting

Originally Posted 23 January 2016, 2:31 am EST

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

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

    Reply

    Hi,

    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.

    Regards,
    Raunak Ladha
    2016/01/WijGrid_Decimal.html
Need extra support?

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

Learn More

Forum Channels