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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change text "Details of" on dialog template grid

Thread ID:

Created:

Updated:

Platform:

Replies:

125037 Jul 15,2016 09:01 PM UTC Jul 19,2016 05:52 AM UTC ASP.NET MVC 3
loading
Tags: Grid
Carlos Palomino
Asked On July 15, 2016 09:01 PM UTC

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

Mani Sankar Durai [Syncfusion]
Replied On 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. 


Carlos Palomino
Replied On July 18, 2016 04:47 PM UTC

Thanks for the reply.
Greetings.

Mani Sankar Durai [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;