Issue related to Grid height and width

hello,

how to add DropDown box on EditDialog mode while a adding new record.in razor view. could please provide a sample example in razor view


1 Reply

ES Eswari S Syncfusion Team September 27, 2011 04:42 PM UTC

Hi Shivkumar,

Thank you for your interest in Syncfusion products.

DropDownList can be added by using CellEditType property. Please refer to the following code snippets :

@{ Html.Syncfusion().Grid("SampleGrid")
.Datasource(Model)
.Caption("Orders")
.Column(col =>
{
. . .
. . .
col.Add(p => p.ShipCountry).CellEditType(CellEditType.DropdownEdit);
col.Add(p => p.Freight);
})
}

For your convenience, we have prepared the sample and the same can be downloaded from the following link :

Sample-481571469.zip

Also ,we would request you to check the following online UG link:

http://help.syncfusion.com/ug_93/User%20Interface/ASP.NET%20MVC/Grid/default.htm?turl=Documents%2Fthroughgridbuilder42.htm

Please try this and let us know if you need any further assistance.

Regards,
Eswari.S




Loader.
Up arrow icon