M
Mohammed Siraj
Guest
Hi Iram, We have introduced Revised GridControl component and integrated it with client-side SDK support in NewUI. As you are aware for form fields on a form page we have a FieldContext abstraction, via which you can add change event handlers against specific fields. For fields in a GridControl component, there is a specialization of FieldContext, called GridFieldContext with some additional GridControl specific API methods. Now for the requirement on hand, you can attach an onchange handler specifically to the given GridControl field as follows: var gridFieldContextA = rbf_getGridFieldContext( 0, //gridNo. 10, // gridRow index 'total'); // fieldName gridFieldContextA.addOnChangeHandler( function(){} ); Alternatively, on the GridControl field update event which fires for every field change in a GridControl component, you can specifcally request for the modified field using, GridControlComponent interface method getLastModifiedField(); This will return GridFieldContext object of the last modified field: var gridControlComp = rbf_getGridControlComponent( 0 );//argument is gridNo. var gridFieldContextA = gridControlComp.getLastModifiedField(); For more API details please refer: documentation.progress.com/.../ documentation.progress.com/.../
Continue reading...
Continue reading...