Hi,
I have couple of general questions for Grid
1) Is it possible to set the width in Percentage to Grid cell? I tried below but it is not working
<GridColumn title="Last Name" cell={lastNameCell} width="50%"/>
2) Onchange : I have created custom cell inside the grid (for example lastNameCell which of type control input Html) and onchange of input I have return following code 1. In the below code whenever I start typing it invokes grid itemchange event, however with itemchange event I also want to invoke other function which I received from other component
Code 1
onChange = (event) => {
this.props.onChange({
dataItem: this.props.dataItem,
field: "FullName",
syntheticEvent: event.syntheticEvent,
value: event.target.value
});
this.setState({
data: this.filterData(event.target.value),
value: event.target.value
});
}
For example : My first component is receiving the function from other component, therefore whenever I start editing the controls onchange invokes the function return in other component. later in first component I have added Grid with custom input control, therefore whenever I start editing the control inside the grid it should invoke the grid itemchange as well as the function which I am receiving from other component.
3) For paging, in the example mentioned at below link, if I removed all the records from input js file, the grid still displays the forwarding arrow in enable state. is there any way to disable this? Attached is the screenshot for same
https://stackblitz.com/run/?file=app%2Fwith-state.js
Regards,
Parag