jQWidgets Forums

jQuery UI Widgets Forums Grid Change Column Type After Creation

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 7 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Change Column Type After Creation #94195

    ChaseRLewis73003
    Participant

    We are letting user import data and creating columns with their data for them in the jqxGrid. Initially we define all their data as ‘string’ since we don’t know what type of data it is. Within the everpresentrow we have built in dropdowns that allow users define the type of data they are using (or we try to automatically deduce it).

    What I would like to do is let associated columns that are ‘int’ type or ‘date’ type be sorted like they are ints or dates. Is there a way to change this after the columns definition or do I need to scrub the data on import and define the columns at initialization? Normally I just tell a column is ‘int’ or ‘date’ and jqxGrid auto-magically handles sorting correctly, but looking at the api I couldn’t see a way to redefine the type.

    Change Column Type After Creation #94221

    Hristo
    Participant

    Hello ChaseRLewis73003,

    You could use setcolumnproperty to change a property or also you could redefine property columns with all fields (with added new one).

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.