|
. . .
<GridComponent allowPaging={true} pageSettings={{pageSize:8}} dataSource={data}>
<ColumnsDirective>
<ColumnDirective field='OrderID' headerText='Order ID'></ColumnDirective>
<ColumnDirective field='CustomerID' headerText='Customer ID'></ColumnDirective>
<ColumnDirective field='OrderDate' textAlign='right' format='yMd'></ColumnDirective>
<ColumnDirective field='ShipCountry' headerText='Ship Country'></ColumnDirective>
<ColumnDirective headerText='Template' template={`<div><select onchange='onChange()'><option> Select </option><option> DeSelect </option></select></div>`} >
</ColumnDirective>
</ColumnsDirective>
<Inject services={[Page]} />
</GridComponent>
. . .
// Handler for drop down bind on window object.
window.onChange = () =>{
console.log(document.activeElement.value); //Onchange event handler fires every drop down changes.
}
|
Thanks Ramdhas, exactly what I needed.