jQWidgets Forums

jQuery UI Widgets Forums Grid Bug: Disabled checklist items in filter row.

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • PAgenbag
    Participant

    Hi.

    I think I stumbled upon a bug in the jqxGrid , which made me pull my hair out a little before figuring it out.

    If one of the columns in you data is named ‘disabled’ , the grid seems to keyword match on that and disables the checkbox filtering on the whole grid.

    In this jsfiddle ( http://jsfiddle.net/RsV5g/13/ ) , you can see that all the checklist items (except for “select all”) is disabled.

    Even removing the column from the grid , does not fix the problem is the column is still in the data.

    Changing the column in the data to something like “is_disabled” fixes the problem.


    Peter Stoev
    Keymaster

    Hi PAgenbag,

    The problem is that disabled is a reserved keyword used by the ListBox, DropDownList and ComboBox items.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    PAgenbag
    Participant

    But surely a column name in my data should have no effect on ListBox, DropDownList and ComboBox ?
    Like I said , even if I dont use that column in my grid it Still disables the checklist items.

    Is there a list of reserved keywords that I should watch out for ?
    I’m building a generic, grid – that will produce a grid screen for whatever sql statement you pass to it.
    But now if that statement happens to include a column that matches a reserved word in one of the controls , things start wobbling.

    Its not a big deal… I can probably work around “disabled” , I’m just worried about Other keywords that might cause trouble without me noticing it during development.


    Peter Stoev
    Keymaster

    Hi Pagenbag,

    As I wrote, the problem is that “disabled” is a reserver keyword. If you wish you can use another datafield. In addition, you missed to add the datafields array which is absolutely necessary when you work with jQWidgets.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.