Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Grid with many columns, filtering and showAllColumns on true

    Hi,
    I have a grid which has showAllColumns to true, the user can make about 20 columns visible, when he/she does that then I noticed that if the user enters a filter value in one of the first columns and then scrolled to the right and then filtered on another column. That the filter value of the first column was lost.

    After a lot of debugging it showed that the first column was not present anymore in the field list of the filtereditor (when putting a breakpoint).

    The solution was to also set showAllColumns to true for the filtereditor. This is easy, but I think it is better that the filtereditor 'gets' the same value for showAllColumns as the owning grid.

    gr. Martin

    #2
    We're not seeing this bug. Here's a simple test case that should reproduce the situation you describe:
    Code:
    var fields = [];
    var testData = [{}, {}, {}];
    for (var i = 0; i < 22; i++) {
        fields.add({name:"field" + i, width:100});
        testData[0]["field" + i] = i;
        testData[1]["field" + i] = "X" + i;
        testData[2]["field" + i] = "Y";
    }
    isc.DataSource.create({
        fields:fields,
        testData:testData,
        clientOnly:true,
        ID:"testDS"
    });
    
    isc.ListGrid.create({
        showFilterEditor:true,
        autoDraw:true,
        width:400,
        dataSource:testDS
    });
    In this example in our tests, you can enter a value in the first field's filter item, scroll to the right and enter a value in the last field's filter item, hit the filter buttton and the criteria are picked up for both fields.

    Can you show us a test-case where this problem occurs for you?

    Regards
    Isomorphic Software

    Comment


      #3
      Yes, your example works fine, sorry about that, I should have made a stand alone testcase before posting, it must be something I did overriding certain methods.

      gr. Martin

      Comment

      Working...
      X