Hi Shivani,
Greetings from Syncfusion support.
You can achieve your requirement of changing the default toolbar item text for child Grid alone by modifying the corresponding toolbar item’s text property value of the child Grid’s toolbar module in the parent Grid’s detailDataBound(triggers after initial detail row expand) event handler.
This is demonstrated in the below code snippet,
|
// Grid’s detailDataBound event handler
onDetailDataBound(args) {
args.childGrid.toolbarModule.toolbar.items.forEach( item => {
// Change the toolbar text for the required Grid toolbar item
if(item.text === "Add")
item.text = "Add record";
});
} |
We have prepared a sample based on this for your reference. You can find it below,
Please get back to us if you require any further assistance.
Regards,
Sujith R