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
close icon

Change text "Details of" on dialog template grid

How can you change the text of dialog template for other custom grid from appearing "Details of" plus the primary key?

For example that "detail of" plus another value appears.

Attachment: Doc1_9f3ed823.zip

3 Replies

MS Mani Sankar Durai Syncfusion Team July 18, 2016 06:30 AM UTC

Hi Carlos, 

Thanks for contacting Syncfusion support, 

We have analyzed your query and the screenshot and we have achieved your requirement by using  
the ActionComplete event of grid in which you can change any value of title in Dialog Box 

For your convenience please refer the below code example and help document for actionComplete event in grid 
<script type="text/javascript"> 
function complete(args) { 
        var grid = $(".e-grid").ejGrid("instance") 
        if (args.requestType == "beginedit" || args.requestType == "add") 
            $('#' + this._id + '_dialogEdit').ejDialog("option", "title", "Details of" + this.getSelectedRecords()[0]["EmployeeID"]);        
    }    }; 
In the above code example we have set the “EmployeeID” value of grid instead of setting primary key value. 

We have also prepared a sample that can be downloaded from the below link, 

Manisankar Durai. 

CP Carlos Palomino July 18, 2016 04:47 PM UTC

Thanks for the reply.

MS Mani Sankar Durai Syncfusion Team July 19, 2016 05:52 AM UTC

Hi Carlos, 
Thanks for the update. 

Please get back to us if you need any further assistance we are happy to assist you.
Manisankar Durai. 

Live Chat Icon For mobile
Up arrow icon