Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 06, 2011 01:56 PM by vikas227
Member
623 Points
801 Posts
Jul 06, 2011 01:56 PM|LINK
my code will be like this for index.cshtml
@(Html.Telerik().Grid<TelerikMvcApplication1.Models.tb_TestMvc>().BindTo((List<TelerikMvcApplication1.Models.tb_TestMvc>)ViewData["tb_TestMvc"]) .Name("Grid") .Columns(columns => { columns.Bound(p => p.Id).Width(210); columns.Bound(p => p.ContactTitle).Width(130).Format("{0:c}"); columns.Bound(p => p.ContactName).Width(130).Format("{0:N}"); columns.Bound(p => p.Country).Width(130).Format("{0:d}"); }) .Sortable() .Filterable() .Pageable() )
and for the controller it will be like this:
public ActionResult Index()
{
var tme = new db_TestEntities(); ViewData["tb_TestMvc"] = tme.tb_TestMvc.ToList(); return View(); }
please help me on this code i will be using mvc3 with telerik control.
vikas227
Member
623 Points
801 Posts
how can i implement this type of editing as in the url :http://demos.telerik.com/aspnet-ajax/...
Jul 06, 2011 01:56 PM|LINK
my code will be like this for index.cshtml
{