jQWidgets Forums

jQuery UI Widgets Forums Grid Columntype : 'text'

Tagged: 

This topic contains 4 replies, has 3 voices, and was last updated by  Pietervk 9 years, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Columntype : 'text' #82146

    Pietervk
    Participant

    The filter behavior is different when you have a text column or a numbers column. In text you can filter on “contains”, in numbers you can’t, which is expected behavior. I have a mixed column, with text and numbers, that should all be treated as text. I am not quite sure when, but sometimes the Grid does not display the “contains” filtering, on other data it does.

    I was able to solve this by specifying columntype: ‘text’ in the columns specification. Please notice that this is not (yet) documented in the API of the jqxGrid.

    Pieter

    Columntype : 'text' #82147

    admin
    Keymaster

    Hi Pietervk,

    You have probably missed to set the “type” of each data field in the source object.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Columntype : 'text' #82193

    Pietervk
    Participant

    Hi Peter,
    that works too. However, the dataAdapter does not document this as mandatory, and the examples do not have it in all fields either.

    But my point was not to criticize, but to support you in the good work. I tried columntype:’text’ because it seemed logical, and it worked, but it is not documented. Perhaps I should get the source code, so I use that.

    If you do not want feedback, just let me know, and I will only ask questions when I can’t find the solution.

    Thanks
    Pieter

    Columntype : 'text' #82194

    Peter Stoev
    Keymaster

    Hi Pieter,

    columntype: “ops” will work, too. If the type is not found, it goes to the default type.

    It’s not mandatory for the dataAdapter. It’s mandatory for a Grid which has Filtering and Sorting. That’s the reason in all of these demos you will find the property set.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Columntype : 'text' #82195

    Pietervk
    Participant

    Thanks, I changed it.

    Pieter

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

You must be logged in to reply to this topic.