This question is locked. New answers and comments are not allowed.
I can't figure out why the Resizable function isn't working. Could anyone let me know why please!
<%@ Page Title="Profils de Profits" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %><%@ Import Namespace="BigBrother.MVC.Intranet.Resources.Views.ProfitMarginProfilesResources" %><%@ Import Namespace="BigBrother.MVC.Intranet.Models" %><asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> <%: ProfitMarginProfilesResources.PageTitle %></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <%: Html.Telerik().Grid<ProfitMarginProfilesModel>() .Name("Grid") .DataKeys(keys => keys.Add(c => c.ProfitMarginProfileId)) .ToolBar(commands => commands.Insert()) .DataBinding(dataBinding => dataBinding.Ajax() .Select("_SelectAjaxEditing", "ProfitMarginProfiles") .Insert("_InsertAjaxEditing", "ProfitMarginProfiles") .Update("_SaveAjaxEditing", "ProfitMarginProfiles") .Delete("_DeleteAjaxEditing", "ProfitMarginProfiles")) .Columns(columns => { columns.Bound(c => c.Name).Title(ProfitMarginProfilesResources.Name); columns.Bound(c => c.AccommodationRate).Title(ProfitMarginProfilesResources.Accommodation); columns.Bound(c => c.ActivityRate).Title(ProfitMarginProfilesResources.Activity); columns.Bound(c => c.TransportRate).Title(ProfitMarginProfilesResources.Transport); columns.Bound(c => c.DinningRate).Title(ProfitMarginProfilesResources.Dinning); columns.Bound(c => c.OtherRate).Title(ProfitMarginProfilesResources.Other); columns.Command(commands => { commands.Edit(); commands.Delete(); }).Width(180).Title("Commands"); }) .Pageable() .Scrollable() .Sortable() .Selectable() .Filterable() .Resizable(resizing => resizing.Columns(true)) .ClientEvents(events => events) %></asp:Content><asp:Content ID="Content3" ContentPlaceHolderID="ActionPanel" runat="server"></asp:Content><asp:Content ID="Content4" ContentPlaceHolderID="Scripts" runat="server"> <script type="text/javascript"> function onResize(e) { // update the hidden values which will be posted as IDictionary<string,int> var grid = $('#Grid').data('tGrid'); $('#config_0__value').val(grid.$tbody.outerWidth()); var index = $.inArray(e.column, grid.columns) + 1; $('#config_' + index + '__value').val(e.newWidth); } </script></asp:Content>