公告
财富商城
积分规则
提问
发文
2019-08-27 12:30发布
在下西门庆
I have a two questions:
Thanks in advance
try this to select first row in grid :
Ext.getCmp('grid').getSelectionModel().selectRow(0);
Assuming you have an instance of your grid, you can select the row using selectFirstRow(). Here is the sample code:
selectFirstRow()
grid.getSelectionModel().selectFirstRow();
You can move your custom validations to another file. All you need to move your
Ext.apply(Ext.form.VTypes, { daterange : function(val, field) { var date = field.parseDate(val); ... } });
to separate file. and ensure that the js file is included.
最多设置5个标签!
try this to select first row in grid :
Assuming you have an instance of your grid, you can select the row using
selectFirstRow()
. Here is the sample code:You can move your custom validations to another file. All you need to move your
to separate file. and ensure that the js file is included.