Grid Edit Dialog Title

In version 9.3 when using the DialogTemplate mode of the grid, is there a way to set the title of the dialog box?


1 Reply

RR Ranjithkumar R G Syncfusion Team August 18, 2011 12:19 PM UTC

Hi Bill,

Thanks for using Syncfusion products.

Your requirement of setting title of DialogTemplate can be achieved in the client side onactionsuccess event .Please refer to the code-snippet below.

[ASPX]

<%=Html.Syncfusion().Grid<_100561.Models.OrdersView>("flatgrid")

.Datasource(Model)
.EnablePaging()
.EnableSorting()
.EnableFiltering()
.ActionMode(ActionMode.JSON)

.Column(columns=> {
columns.Add(c => c.OrderID).HeaderText("orderid");
columns.Add(c => c.CustomerID).HeaderText("customerid");
columns.Add(c => c.EmployeeID).HeaderText("empid");
columns.Add(c => c.ShipCountry).HeaderText("shipcountry");
columns.Add(c => c.Freight).HeaderText("freight");
})

.Editing(edit =>
{

edit.DialogModeEditorTemplate("ViewUserControl1");
edit.EditMode(GridEditMode.DialogTemplate);
edit.AllowEdit(true)
.AllowNew(true)
.AllowDelete(true);
edit.PrimaryKey(key => key.Add(p => p.OrderID));
})
.ClientSideEvents(events => { events.OnActionSuccess("onsuccess"); })
%>


[Javascript]








Please refer to the below link to download the sample application.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=1005612050338485.zip

Note: If you want to run the sample in MVC3, change the configuration manager as Debug_MVC3/Release_MVC3.To briefly know about that

steps please kindly refer this document link.

How to Switch between MVC2 to MVC3

Please let me know if you have any concern.

Regards,
Ranjithkumar.



Loader.
Up arrow icon