This question is locked. New answers and comments are not allowed.
Hello,
I'm new with telerik grid in ASP.Net MVC3.
I'm trying to do a simple grid with edit mode in line.
I used poco to display my data.
When i'm in display mode, everything is ok in my grid. But when i'm calling the edit mode, nothing is aligned anymore. Textbox are too large for columns (see the attach file)
Here is my code
Thanks for your help.
Ju (from France)
I'm new with telerik grid in ASP.Net MVC3.
I'm trying to do a simple grid with edit mode in line.
I used poco to display my data.
When i'm in display mode, everything is ok in my grid. But when i'm calling the edit mode, nothing is aligned anymore. Textbox are too large for columns (see the attach file)
Here is my code
@model List<ProtoFTCarto.Models.FormateurDto> @{ ViewBag.Title = "Index";}<br /><div class="blockTitle"> Formateurs (Grille simple via ajax)</div><div style="display: block;" class="blockContent">@(Html.Telerik().Grid(Model).Name("Grid") .TableHtmlAttributes(new { style = "table-layout:fixed" }).DataKeys(keys => keys.Add(c => c.Identifiant)) .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.BareImage).ImageHtmlAttributes(new { style = "margin-left:0" })) .DataBinding(dataBinding => { dataBinding.Ajax() .Select("_Index", "SLA2") .Insert("_Insert", "SLA2") .Update("_Update", "SLA2") .Delete("_Delete", "SLA2"); }).Columns(columns =>{ columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.BareImage); commands.Delete().ButtonType(GridButtonType.BareImage); }).Width(30).Title("Commands");columns.Bound(p => p.Nom).Width(210);columns.Bound(p => p.Prenom).Width(130);;}) .Editable(editing => editing.Mode(GridEditMode.InLine)) )</div>Thanks for your help.
Ju (from France)