jQWidgets Forums

jQuery UI Widgets Forums Grid text foramtter in jqxGrid

This topic contains 2 replies, has 2 voices, and was last updated by  svktella 9 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • text foramtter in jqxGrid #76733

    svktella
    Participant

    Hi,

    I have “234343 | sdfsdafsdf | dfsdfdsfdsfds” and i need to get the 234343 and display in a jqxGrid column.My input to the grid is JSON.Can you help me how to write a formatter for this.

    Thanks
    Sandeep.

    text foramtter in jqxGrid #76756

    Vladimir
    Participant

    Hello Sandeep,

    You can either use the cellsRenderer option and analyze and modify the data for your cell to display only the digit part (you can separate it with parseInt(), or use yourvalue.split(‘ | ‘)[0] to split the data) or use the beforeLoadComplete callback and modify the data before it is displayed in the grid.

    Best Regards,
    Vladimir

    jQWidgets Team
    http://www.jqwidgets.com

    text foramtter in jqxGrid #76807

    svktella
    Participant

    Hi Vladimir,

    Thank you very much for the help.

    Sandeep.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.