Hi Pratheep,
We understand that your requirement is to customize the edit form title. Since you are replacing the Edit form header innerHtml with the new content, the toggle icon element which is actually present within the form header is also replaced resulting in the reported issue.
So we suggest you to traverse to the e-form-title class of the External form element and replace the content based on your requirement. Please refer to the below code example.
<script type="text/javascript">
function complete(args) {
if ((args.requestType == "beginedit" || args.requestType == "add")) {
$("#<%= OrdersGrid.ClientID %>_eFormHeader").find(".e-form-title").text("Showing details of " + this.getCurrentViewData()[args.rowIndex].CustomerID);
. . . .
}
</script> |
We have created a sample with the above solution, which can be downloaded from the below link.
Regards,
Ragavee U S.