We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ExternalFormTemplate - edit form header -toggle-icon not showing


Hi

Edit form in  ExternalFormTemplate  header title display apply  bellow code - toggle-icon  not showing  

$('#<%= CustomerGrid.ClientID %>_eFormHeader').text("Showing details of " + this.getCurrentViewData()[args.rowIndex].str_company_name + "(" + this.getCurrentViewData()[args.rowIndex].str_customer_code + ")");


Thanks

pratheep


Attachment: header_arrow_852034c.rar

1 Reply

RU Ragavee U S Syncfusion Team June 30, 2016 07:19 AM UTC

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. 


Loader.
Up arrow icon