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

Change text "Details of" on dialog template grid

Dear,
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.
Greetings.

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 
[Index.cshtml] 
@(Html.EJ().Grid<object>("Grid") 
        .Datasource((IEnumerable<object>)ViewBag.dataSource) 
        .AllowPaging() 
              .AllowGrouping() 
.ClientSideEvents(eve=>eve.ActionComplete("complete")) 
 
<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"]);        
    }    }; 
    </script> 
 
 
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, 



Regards, 
Manisankar Durai. 



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

Thanks for the reply.
Greetings.


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.
 
 
Regards, 
Manisankar Durai. 


Loader.
Live Chat Icon For mobile
Up arrow icon