Announcement

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

    Issue with FilterEditor on TreeGrid with CheckBox Selection

    Hi,
    I'm using TreeGrid with Checkbox selection. I'm able filter data using filter editor without any issues but its not preserving the state of selection once i clear filter.

    i.e, if i select a record on one of filtered records and if i clear the filter, it is displaying all records but without selection state for the record which i did.

    I've tested the same with latest patched version of smartgwt:
    smartgwt 3.1p_2013-05-26

    I'm using following code:
    Code:
        employeeTreeGrid.setShowOpenIcons(false);  
        employeeTreeGrid.setShowDropIcons(false);  
        employeeTreeGrid.setClosedIconSuffix("");  
        employeeTreeGrid.setSelectionType(SelectionStyle.SIMPLE);
        employeeTreeGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
        employeeTreeGrid.setCascadeSelection(true);
        employeeTreeGrid.setShowPartialSelection(true);
        employeeTreeGrid.setShowFilterEditor(true); 
        employeeTreeGrid.setLoadDataOnDemand(false);
        employeeTreeGrid.setFilterLocalData(true);// I tried by removing this also..but no luck!
        employeeTreeGrid.setKeepParentsOnFilter(true);
        employeeTreeGrid.setFilterOnKeypress(true);
        employeeTreeGrid.setDataSource(EmployeeXmlDS.getInstance());  
        employeeTreeGrid.setAutoFetchData(true);
    //If i don't use below handler, its showing empty results when filtered. 
    employeeTreeGrid.addFilterEditorSubmitHandler(new FilterEditorSubmitHandler() {
    		
    		@Override
    		public void onFilterEditorSubmit(FilterEditorSubmitEvent event) {
    			employeeTreeGrid.filterData(event.getCriteria());
    			event.cancel();
    		}
    	});
    I've modified one of showcase example to replicate this. Please find the attached testcase for more details.

    Please let me know where i'm doing wrong or how to fix?
    Attached Files

    #2
    Hi Isomorphic/team,
    Can i get any solution for this?
    It is persisting other cell values i'm giving on filtered records but not the selection. I'm really stuck with this issue.. :(

    Comment

    Working...
    X