i have 2 questions:
- how set first row in extjs gridpanel selected and
- how write separate js file custom validations phone nos , datefields , etc
thanks in advance
assuming have instance of grid, can select row using selectfirstrow(). here sample code:
grid.getselectionmodel().selectfirstrow(); you can move custom validations file. need move your
ext.apply(ext.form.vtypes, { daterange : function(val, field) { var date = field.parsedate(val); ... } }); to separate file. , ensure js file included.
Comments
Post a Comment