BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
@(Html.EJ().Grid<Object>("FlatGrid") .Datasource((IEnumerable<object>)ViewBag.data) .AllowPaging() .EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.Dialog); }) .ToolbarSettings(toolbar => { toolbar.ShowToolbar().ToolbarItems(items => { . . . . items.AddTool(ToolBarItems.Cancel); }); }) .Columns(col => { col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).Add(); . . . . col.HeaderText("Employee Details").Commands(command => { command.Type("detail") .ButtonOptions(new Syncfusion.JavaScript.Models.ButtonProperties() { Text = "Details", Width = "100px", Click = "onClick" }).Add(); }) .IsUnbound(true) .Add(); }) ) <script> function onClick(args) { var obj = $("#FlatGrid").ejGrid("instance"); var OrderID = obj.model.currentViewData[this.element.closest("tr").index()].OrderID ;//Retrieved the clicked(button) record alert("OrderID"+OrderID); } |
The provided information will help to analyze the issue and we will update you the response as early as possible.
Regards,
Gowthami V.
Hi Carlo,
We have created a custom sample request for your requirement and created a new support incident under your account. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Gowthami V.