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.

Grid Edit Dialog Title

Thread ID:

Created:

Updated:

Platform:

Replies:

100561 Aug 16,2011 04:05 PM Aug 18,2011 08:19 AM ASP.NET MVC (Classic) 1
loading
Tags: Grid
Bill Irwin
Asked On August 16, 2011 04:05 PM

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


Ranjithkumar R G [Syncfusion]
Replied On August 18, 2011 08:19 AM

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.



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.

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.

;