Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

TreeGrid with keyPressFilter

$
0
0
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

Viewing all articles
Browse latest Browse all 4756

Trending Articles