Announcement

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

    bug: FormItem in FilterEditor is readOnly if ListGridField is not editable

    Hello,

    I've found a bug in the 3.1d enterprise edition (2012/10/04). The FormItem in the FilterEditor of a immutable ListGridField is marked readonly in the DOM, even if the ListGridField is explicitly configured to allow filtering.

    Here is a short example to reproduce the behaviour:

    Code:
    	public void onModuleLoad() {
    		final ListGrid lg = new ListGrid();
    
    		ListGridField f1 = new ListGridField("f1");
    
    		ListGridField f2 = new ListGridField("f2");
    		f2.setCanEdit(false);
    		f2.setCanFilter(true);
    
    		lg.setFields(f1, f2);
    		lg.setCanEdit(true);
    		lg.setShowFilterEditor(true);
    		lg.draw();
    	}

    #2
    There is another bug in the FilterEditor:

    If the ListGrid is disabled by default and enabled by a user action, the FilterEditor stays disabled.
    Here is the code for reproducing the Bug:

    Code:
    	public void onModuleLoad() {
    		final ListGrid lg = new ListGrid();
    
    		ListGridField f1 = new ListGridField("f1");
    
    		ListGridField f2 = new ListGridField("f2");
    		f2.setCanEdit(false);
    		f2.setCanFilter(true);
    
    		lg.setFields(f1, f2);
    		lg.setCanEdit(true);
    		lg.setShowFilterEditor(true);
    		[b]lg.setDisabled(true);[/b]
    
    		VLayout layout = new VLayout();
    		layout.setWidth100();
    		layout.setHeight100();
    		layout.addMember(lg);
    		Button enable = new Button("enable");
    		enable.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {
    			@Override
    			public void onClick(ClickEvent event) {
    [b]				lg.setDisabled(false);[/b]
    			}
    		});
    		layout.addMember(enable);
    		layout.draw();
    	}

    Comment


      #3
      @isomorphic: please can you tell me, if there is any work in progress on this issues?

      Comment


        #4
        Both of these issues should already be resolved in the latest nightly build.
        Let us know if you're still seeing them

        Thanks
        Isomorphic Software

        Comment

        Working...
        X