jQWidgets Forums

jQuery UI Widgets Forums Grid A question about filtering

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

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • A question about filtering #77449

    lineker
    Participant

    Hi All,

    If grid properties are set as follow, nothing is displayed

    
    showfilterrow: true,
    filterable: false,
    

    I know that, showfilterrow property can not be set to true without setting filterable property to true, but in my opinion grid should be displayed without any filter at this case instead of display nothing. At source code there should be a control as follow:

    
    if (showfilterrow property is true) {
      if (filterable property is true) {
         apply showfilterrow property
        }
      else {
         ignore showfilterrow property
       }
    }
    
    A question about filtering #77451

    Peter Stoev
    Keymaster

    Hi lineker,

    This is not a bug. showfilterrow is a special type of filter and if filterable is set to false, filtering is Disabled at all. This is demonstrated in the demos and documentation and is definitely not a bug and is by design.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    A question about filtering #77452

    lineker
    Participant

    Hi Peter,

    I am trying from following link:

    http://jsfiddle.net/jqwidgets/Td3Qn/

    At this link, if I set filterable to false, nothing is displayed.

    A question about filtering #77453

    lineker
    Participant

    Hi Peter,

    But I agree with you that this can not be called a bug because there is paradox at my code example so it is normal not to display anything

    A question about filtering #77456

    Peter Stoev
    Keymaster

    Hi lineker,

    It is normal behavior if “filterable” is false, the filtering to be disabled. showfilterrow displays a filter row if filtering is enabled. In all examples where filter row is displayed, filterable is set to true and it should be if you want filtering in your Grid.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    A question about filtering #77459

    lineker
    Participant

    Hi Peter,

    Yes I agree with you, thanks

    A question about filtering #77460

    lineker
    Participant

    Hi Peter,

    I know that I wrote too much but I am not sure if you understood me correctly.
    And this is my last post about this issue

    showfilterrow: true,
    filterable: false,

    With the word “nothing is displayed” I mean grid is not displayed.
    I don’t mean filter row.
    At this situation, normal behaviour should be:

    Grid should be displayed without any filter because of filterable is set to false

    which means filterable is disabled.

    I think with my word “nothing” you understood filter row, I am talking about whole grid, there is nothing at the page

    But despite this, I do not call this a bug

    A question about filtering #77490

    Peter Stoev
    Keymaster

    Hi lineker,

    We Throw an Exception so its shown in your Browser’s Console. The exception’s text is: jqxGrid: “showfilterrow” requires setting the “filterable” property to true!

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.