Announcement

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

    TreeGrid with keyPressFilter

    Hi,

    We're getting an js-error using a keyPressFilter on a TreeGridField

    For reproduction you can copy the definition at the bottom and double click on the month-field, after typing one number the js-error occurs

    Maybe there is a reference to the fix of this bug http://forums.smartclient.com/showthread.php?t=31923

    Here is the code to reproduce the shown behaviour
    Code:
    isc.TreeGrid.create({
    	"width" : "200",
    	"canEdit" : true,
    	"fields" :
    	[{
    			"name" : "nameField",
    			"title" : "Name",
    			"type" : "text"
    		}, {
    			"name" : "monthField",
    			"title" : "Month",
    			"type" : "text",
    			"canEdit" : true,
    			"editorProperties" : {
    				"keyPressFilter" : "[0-9]",
    				"ID" : "monthField_editor"
    			}
    		}
    	],
    	data : isc.Tree.create({
    		"modelType" : "children",
    		"openProperty" : "isOpen",
    		"root" : {
    			"title" : "Root",
    			"isFolder" : false,
    			"isOpen" : false,
    			"id" : "12",
    			"isSelected" : false,
    			"children" :
    			[{
    					"title" : "",
    					"isFolder" : true,
    					"isOpen" : true,
    					"id" : "11",
    					"enabled" : true,
    					"isSelected" : false,
    					"nameField" : "q",
    					"monthField" : 9
    				}
    			]
    		}
    	})
    })
    This behaviour is reproduable in Firefox 34 and Chrome 39, in Internet Explorer 11 it works. I've tested it with the latest nightly SmartClient_v100p_2014-12-18_Pro

    Best Regards

    #2
    Sorry you were unlucky enough to hit this - it was a regression from a fix committed just 3 days ago, affecting only 10.0. It's corrected for tomorrow's nightly build.

    Comment

    Working...
    X