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.