This question is locked. New answers and comments are not allowed.
Hi telerik team,
I have used width(100) etc, in my telerik columns.bound within the Column(columns => ) . But the text is not getting wrapped, instead i just expands the grid, which i do not want.
the width has no effect if the text has exceeded the column width.
appreciate help. below is the snippet
Best regards,
Anand
I have used width(100) etc, in my telerik columns.bound within the Column(columns => ) . But the text is not getting wrapped, instead i just expands the grid, which i do not want.
the width has no effect if the text has exceeded the column width.
appreciate help. below is the snippet
@(Html.Telerik().Grid(Model.ListM).Name("MyGrid") .DataKeys(keys => keys.Add(o => o.Number)) .Columns(columns => { columns.Bound(o => o.Name).Title("Name").emplate(@<text> @Html.ActionLink((string)item.Name, "Details", "Management", new { id = item.Number }, null) </text>).Width(100); columns.Bound(o => o.City).Title("City").Width(100).Filterable(false); columns.Bound(o => o.State).Title("State").Width(100).Filterable(false); columns.Bound(o => o.Country).Title("Country").Width(100).Filterable(false); }) .ClientEvents(e => e.OnLoad("customizeTelerikGridFilter")) .EnableCustomBinding(true) .DataBinding(dataBinding => dataBinding.Server().Select("_GetList", "Management")) .Pageable(paging => paging.Style(GridPagerStyles.NextPreviousAndNumeric | GridPagerStyles.PageSizeDropDown) .PageSize((int)ViewBag.RecordsinPage, new int[] { 25, 50, 75, 100 }) .Total((int)ViewBag.TotalRecords) .Position(GridPagerPosition.Both)) .Sortable(sorting => sorting .OrderBy(sortOrder => sortOrder.Add(o => o.Name).Ascending())) .Filterable()Best regards,
Anand