Hi Francois,
Thanks for contacting Syncfusion forum.
Query- 1 : Child grid - doesn't update cell value when column value is "document.name"?
Based on your shared information we suspect that your reported issue may occurs in while missing to define primary key column in child grid. Primary key column must be specified using columns.isPrimaryKey property when performing crud operation. please refer to the below reference link.
Note : Based on PrimaryKey column value only CRUD operation in Grid will take place. So, Kindly define the IsPrimaryKey property to Grid Column whose value is unique.
Query – 2: How can i set default value for a column? valueAccessor?
We can achieve your requirement using our default property of defaultValue (used to set default value automatically while adding new record in column level for required column. Please refer to the below code and reference links.
|
{ field: 'OrderID', headerText: 'Order ID', textAlign: 'Right', defaultValue: 10001, width: 120 }, |
By default valueAccessor is used to access/manipulate the value of display data. You can achieve custom value formatting by using valueAccessor.
For information about valueAccessor, please refer to the below links.
Query – 3 : I have created a button on the toolbar to Enable/Disable html encoding, which changes a variable. When this variable changes, the whole grid is refreshed. The variable is used to toggle html encoding: :disableHtmlEncode="!showHtml"
By default in EJ2 Grid, disableHtmlEncode default value as true. So, value will be updated what type of text will be entered in the grid because there is no form of conversion performed in grid. But when it as false, entered html string as converted to the corresponding html code value.
Based on your shared information we unclear about your issue scenario. So please share your toolbar code definition, issue reproducing sample and video demonstration.
Query – 4: How can i disable the drag and drop functionality of the edit dialog?
Based on your information we suspect that you want to disable dragging property of dialog while adding and editing. So we suggest to use allowDragging as false for required dialog element in actionComplete event.
Please refer to the below code and reference link.
|
actionComplete : function(args){
if(args.requestType === 'add' || args.requestType == 'beginEdit'){
args.dialog.allowDragging = false;
}
}, |
Query – 5: Now I have two buttons, Expand and Collapse. Can i merge this buttons into one to have Expand when collapsed and vice-versa?
We suggest to use our toggle button instead of normal to achieve collapse and expand vice versa.
That is a toggle Button allows you to change between the two states. The Button is active in toggled state and can be recognized through the
e-active class. The functionality of the toggle Button is handled by click event. To create a toggle Button, set the
isToggle property to true. Using this toggle button’s two states we can achieve your requirement.
Query – 6: When using cache and trying to edit/add/delete a record the grid doesn't update. This is the intended functionality? If so, is not stated in the documentation
We unclear above your requirement, before proceed this what you meant that like using cache. Please explain your requirement briefly.
Please get back to us, if you need any further assistance.
Regards,
Thiyagu S