jQWidgets Forums

jQuery UI Widgets Forums Grid Grid filterrow

This topic contains 3 replies, has 2 voices, and was last updated by  abasan 7 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid filterrow #97845

    abasan
    Participant

    hi

    I have grid with following property

    
     sortable: true,
     filterable: true,
     showfilterrow: true,
                      
     altrows: true,
     enabletooltips: true,
     editable: false,
     editmode: 'selectedrow',
    
     columnsresize: true,
     columnsreorder: true,
                    
     virtualmode: true,
     pageable: true,
    

    by default I set ‘sortable’ to true in grid
    but when I set this property value to false with this code:
    $('#grid').jqxGrid('filterable', false)
    if there was a value in filter fields filterrow do not hide but if filter fields was empty filterrow be hidden.

    I call
    $('#grid').jqxGrid('clearfilters');'
    and also
    $('#grid').jqxGrid('clearfilters',false);'
    before
    $('#grid').jqxGrid('sortable', false)
    too , but my problem do not solved.

    and if call
    $('#grid').jqxGrid('showfilterrow',false);
    when filter fields contain value it made javascript error

    thanks

    Grid filterrow #97848

    Stanislav
    Participant

    Hello abasan,

    I did some testing but didn’t find anything wrong. All properties and code snippets, that you sent, were working fine.
    Maybe you could send us an example of some sorts, so we can see the whole issue you are experiencing.
    A fiddle would be most appreciated and would help a lot.

    Also, what version of jQwidgets and browser are you using, I am testing on the latest version.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    Grid filterrow #97888

    abasan
    Participant

    hi

    sorry there was a mistake in my writing

    my aim was ‘filterable’ but by mistake I write ‘sortable’

    I set ‘filterable’ to false

    I use last version of component 5.5.0 and check in Firefox and IE and Chrome

    and please make attention that is set grid ‘virtualmode’ property to true

    I write my problem again as follow:

    I have grid with following property

    
     sortable: true,
     filterable: true,
     showfilterrow: true,
                      
     altrows: true,
     enabletooltips: true,
     editable: false,
     editmode: 'selectedrow',
    
     columnsresize: true,
     columnsreorder: true,
                    
     virtualmode: true,
     pageable: true,
    

    by default I set ‘filterable’ to true in grid
    but when I set this property value to false with this code:
    $('#grid').jqxGrid('filterable', false)
    if there was a value in filter fields filterrow do not hide but if filter fields was empty filterrow be hidden.
    I call
    $(‘#grid’).jqxGrid(‘clearfilters’);’
    and also
    $(‘#grid’).jqxGrid(‘clearfilters’,false);’
    before
    $(‘#grid’).jqxGrid(‘filterable’, false)
    too , but my problem do not solved.
    and if call
    $(‘#grid’).jqxGrid(‘showfilterrow’,false);
    when filter fields contain value it made javascript error

    thanks

    Grid filterrow #97889

    abasan
    Participant

    hi

    it was my mistake and component work fine

    sorry for that.

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

You must be logged in to reply to this topic.