Expand Collapse buttons disappeared after Q3 upgrade

8 posts, 0 answers
  1. Tim
    Tim avatar
    60 posts
    Member since:
    May 2011

    Posted 16 Nov 2011 Link to this post

    Why is Q3 not backwards compatible? What do I need to add now to a grid that is being created in code behind to get back my hierarchy expand and collapse. This is really not good. I am almost ready to tell the client to dump these controls and go with something different.
  2. Martin
    Admin
    Martin avatar
    811 posts

    Posted 17 Nov 2011 Link to this post

    Hello Tim,

    I am really sorry to hear that upgrading to the Q3 bits caused issues to your project. I want to assure you that the Q3 release was extensively tested and should be backward compatible. However a bug might have slipped through our regression tests and got live. To advise you further I would need a runnable demo that demonstrates the problem. I would suggest that you send through a formal support ticket. This way I will be able to debug it locally and provide you with more to the point resolution.

    Meanwhile I have played a bit with this online demo and it seems to work as expected.

    Regards,
    Martin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tim
    Tim avatar
    60 posts
    Member since:
    May 2011

    Posted 17 Nov 2011 Link to this post

    Hey Martin,
    Thanks for the reply. I'm sorry but I don't have time to put a sample project together I am running on tight deadlines on the 2 projects that I am currently involved in, Attached is the class file that I am using to create the Grid and you can use that as a reference. I reverted to the Q2 dll with no code changes and everything is fine now. I won't be upgrading until this bug is fixed or a solution is rendered. I have also included some screenshots of the problem.
    using System.Drawing;
    using System.Web.UI.WebControls;
    using Telerik.Web.UI;
     
    namespace MAAS.WebApplication.Controls
    {
        public static class BatchRadGrid
        {
     
            internal static RadGrid GridDefinition(string id)
            {
                RadGrid _policyRadGrid = new RadGrid
                                             {
                                                 ID = id,
                                                 Width = Unit.Percentage(98),
                                                 Height = Unit.Pixel(460),
                                                 PageSize = 10,
                                                 AllowPaging = true,
                                                 EnableAjaxSkinRendering = true,
                                                 AllowSorting = true,
                                                 AutoGenerateColumns = false,
                                                 ShowStatusBar = true,
                                                 GridLines = GridLines.None,
                                                 AutoGenerateEditColumn = false,
                                                 AutoGenerateDeleteColumn = false,
                                                 ExportSettings =
                                                     {
                                                         HideStructureColumns = true,
                                                         ExportOnlyData = true,
                                                         IgnorePaging = true,
                                                     },
                                                 HeaderContextMenu =
                                                     {
                                                         Enabled = true,
                                                         CssClass = "GridContextMenu GridContextMenu_Web20"
                                                     },
                                                 PagerStyle = {Mode = GridPagerMode.NextPrevNumericAndAdvanced},
                                                 ClientSettings =
                                                     {
                                                         Scrolling = {AllowScroll = true, UseStaticHeaders = true},
                                                         Selecting = {AllowRowSelect = true},
                                                         AllowExpandCollapse = true,
                                                         ClientEvents = {OnRowDblClick = "RowDblClicked"}
     
                                                     },
                                                 FilterMenu = {EnableImageSprites = false},
                                                 MasterTableView =
                                                     {
                                                         PageSize = 10,
                                                         CommandItemDisplay = GridCommandItemDisplay.Top,
                                                         CommandItemSettings =
                                                             {
                                                                 ShowExportToExcelButton = false,
                                                                 AddNewRecordText = "Add New Batch"
                                                             },
                                                         EnableHeaderContextMenu = true,
                                                         HorizontalAlign = HorizontalAlign.NotSet,
                                                         EditFormSettings =
                                                             {
                                                                 FormCaptionStyle = {CssClass = "EditFormHeader"},
                                                                 ColumnNumber = 3,
                                                                 CaptionDataField = "BatchID",
                                                                 CaptionFormatString = "Edit properties of Item {0}",
                                                                 InsertCaption = "New Batch",
                                                                 FormTableItemStyle = {Wrap = false},
                                                                 FormMainTableStyle =
                                                                     {
                                                                         BackColor = Color.FromArgb(222, 222, 214),
                                                                         CellPadding = 3,
                                                                         CellSpacing = 0,
                                                                         GridLines = GridLines.None,
                                                                         Width = Unit.Percentage(43)
                                                                     },
                                                                 FormTableStyle =
                                                                     {
                                                                         BackColor = Color.FromArgb(222, 222, 214),
                                                                         CellPadding = 2,
                                                                         CellSpacing = 0,
                                                                         Height = Unit.Percentage(100)
                                                                     },
                                                                 FormTableAlternatingItemStyle = {Wrap = false},
                                                                 FormTableButtonRowStyle =
                                                                     {
                                                                         HorizontalAlign = HorizontalAlign.Right,
                                                                         CssClass = "EditFormButtonRow"
                                                                     },
                                                             },
                                                         HierarchyLoadMode = GridChildLoadMode.ServerBind,
                                                         DataKeyNames = new string[] {"BatchID"},
                                                         EditMode = GridEditMode.PopUp,
                                                     },
                                             };
     
                //Add Edit Column
                GridEditCommandColumn _masterGridEditCommandColumn = new GridEditCommandColumn
                                                                         {
                                                                             ButtonType = GridButtonColumnType.ImageButton,
                                                                             HeaderText = "",
                                                                             UniqueName = "MasterEditRecord",
                                                                             HeaderStyle = {Width = Unit.Pixel(20)},
                                                                             ItemStyle = {Width = Unit.Pixel(20)}
                                                                         };
                _policyRadGrid.MasterTableView.Columns.Add(_masterGridEditCommandColumn);
     
                //Add Delete Column
                GridButtonColumn _masterDeleteCommandColumn = new GridButtonColumn
                                                                  {
                                                                      ConfirmText = "Confirm",
                                                                      ConfirmDialogType = GridConfirmDialogType.RadWindow,
                                                                      ButtonType = GridButtonColumnType.ImageButton,
                                                                      HeaderText = "",
                                                                      ConfirmTitle = "Delete",
                                                                      CommandName = "Delete",
                                                                      Text = "Delete",
                                                                      UniqueName = "MasterDeleteRecord",
                                                                      HeaderStyle = {Width = Unit.Pixel(20)},
                                                                      ItemStyle =
                                                                          {
                                                                              HorizontalAlign = HorizontalAlign.Center,
                                                                              Width = Unit.Pixel(20)
                                                                          }
                                                                  };
     
                _policyRadGrid.MasterTableView.Columns.Add(_masterDeleteCommandColumn);
     
     
                GridButtonColumn _masterPromoteCommandColumn = new GridButtonColumn
                                                                   {
                                                                       ConfirmText = "Confirm",
                                                                       ConfirmDialogType = GridConfirmDialogType.RadWindow,
                                                                       ButtonType = GridButtonColumnType.ImageButton,
                                                                       HeaderText = "",
                                                                       ConfirmTitle = "Promote Batch",
                                                                       CommandName = "Promote",
                                                                       Text = "Promote",
                                                                       UniqueName = "MasterPromoteRecord",
                                                                       HeaderStyle = {Width = Unit.Pixel(20)},
                                                                       ItemStyle =
                                                                           {
                                                                               HorizontalAlign = HorizontalAlign.Center,
                                                                               Width = Unit.Pixel(20)
                                                                           }
                                                                   };
                _policyRadGrid.MasterTableView.Columns.Add(_masterPromoteCommandColumn);
     
                GridBoundColumn _masterBoundColumn = new GridBoundColumn
                                                         {
                                                             DataField = "BatchID",
                                                             HeaderText = "Batch ID",
                                                             UniqueName = "BatchID",
                                                             HeaderStyle = {Width = Unit.Pixel(50)},
                                                             ItemStyle = {Width = Unit.Pixel(50)},
                                                             ReadOnly = true,
                                                         };
                _policyRadGrid.MasterTableView.Columns.Add(_masterBoundColumn);
     
                _masterBoundColumn = new GridBoundColumn
                                         {
                                             DataField = "AccountingPeriodID",
                                             HeaderText = "Accounting Period",
                                             UniqueName = "AccountingPeriodID",
                                             HeaderStyle = {Width = Unit.Pixel(130)},
                                             ItemStyle = {Width = Unit.Pixel(130)},
                                             ReadOnly = true,
                                         };
                _policyRadGrid.MasterTableView.Columns.Add(_masterBoundColumn);
                _masterBoundColumn = new GridBoundColumn
                                         {
                                             DataField = "BatchName",
                                             HeaderText = "Batch Name",
                                             UniqueName = "BatchName",
                                             HeaderStyle = {Width = Unit.Pixel(200)},
                                             ItemStyle = {Width = Unit.Pixel(200)},
                                             ReadOnly = true,
                                         };
                _policyRadGrid.MasterTableView.Columns.Add(_masterBoundColumn);
     
                _masterBoundColumn = new GridBoundColumn
                                         {
                                             DataField = "BatchStatusName",
                                             HeaderText = "Batch Status",
                                             UniqueName = "BatchStatusName",
                                             HeaderStyle = {Width = Unit.Pixel(80)},
                                             ItemStyle = {Width = Unit.Pixel(80)},
                                             ReadOnly = true,
                                         };
                _policyRadGrid.MasterTableView.Columns.Add(_masterBoundColumn);
     
                _masterBoundColumn = new GridBoundColumn
                                         {
                                             DataField = "BatchDescription",
                                             HeaderText = "Batch Description",
                                             UniqueName = "BatchDescription",
                                             HeaderStyle = {Width = Unit.Percentage(100)},
                                             ItemStyle = {Width = Unit.Percentage(100)},
                                         };
                _policyRadGrid.MasterTableView.Columns.Add(_masterBoundColumn);
     
     
                // (II in hierarchy level) Detail table - Manual Adjustments of the Batch
     
                GridTableView _batchAdjustments = new GridTableView(_policyRadGrid)
                                                      {
                                                          ID = string.Format("{0}_ChildGrid", id),
                                                          Name = string.Format("{0}_ChildGrid", id),
                                                          DataMember = "Policy",
                                                          AutoGenerateColumns = false,
                                                          Width = Unit.Percentage(100),
                                                          PageSize = 10,
                                                          BackColor = Color.FromArgb(198, 203, 214),
                                                          CommandItemDisplay = GridCommandItemDisplay.Top,
                                                          //CommandItemTemplate = new MyCommandItemTemplate(),
                                                          CommandItemSettings =
                                                              {
                                                                  ShowExportToExcelButton = true,
                                                                  AddNewRecordText = "Add New Adjustment",
     
                                                              },
                                                          EnableHeaderContextMenu = true,
                                                          HorizontalAlign = HorizontalAlign.NotSet,
                                                          EditFormSettings =
                                                              {
                                                                  EditColumn =
                                                                      {
                                                                          UniqueName = "EditRecord",
                                                                      },
                                                              },
                                                          HierarchyLoadMode = GridChildLoadMode.ServerOnDemand,
                                                          EditMode = GridEditMode.PopUp,
                                                      };
     
                GridRelationFields _relationFields = new GridRelationFields
                                                         {
                                                             MasterKeyField = "BatchID",
                                                             DetailKeyField = "ManualAdjustmentBatchId"
                                                         };
                _batchAdjustments.ParentTableRelation.Add(_relationFields);
     
                _policyRadGrid.MasterTableView.DetailTables.Add(_batchAdjustments);
     
     
                //Add Edit Column
                GridEditCommandColumn _gridEditCommandColumn = new GridEditCommandColumn
                                                                   {
                                                                       ButtonType = GridButtonColumnType.ImageButton,
                                                                       HeaderText = "",
                                                                       UniqueName = "PolicyEditRecord",
                                                                       HeaderStyle = {Width = Unit.Pixel(33)},
                                                                       ItemStyle =
                                                                       {
                                                                           HorizontalAlign = HorizontalAlign.Center,
                                                                           Width = Unit.Pixel(33)
                                                                       },
                                                                   };
                _batchAdjustments.Columns.Add(_gridEditCommandColumn);
     
                //Add Delete Column GridButtonColumn
                GridButtonColumn _deleteCommandColumn = new GridButtonColumn
                                                            {
                                                                ButtonType = GridButtonColumnType.ImageButton,
                                                                CommandName = "Delete",
                                                                UniqueName = "DeleteTransaction",
                                                                HeaderStyle = {Width = Unit.Pixel(33)},
                                                                ItemStyle =
                                                                    {
                                                                        HorizontalAlign = HorizontalAlign.Center,
                                                                        Width = Unit.Pixel(33),
                                                                    },
                                                            };
     
     
                _batchAdjustments.Columns.Add(_deleteCommandColumn);
     
                //Add columns           
                GridBoundColumn _boundColumn = new GridBoundColumn
                                                   {
                                                       DataField = "ManualAdjustmentBatchId",
                                                       HeaderText = "ManualAdjustmentBatchId",
                                                       UniqueName = "ManualAdjustmentBatchID",
                                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                                       ItemStyle = {Width = Unit.Pixel(100)},
                                                       Visible = false,
                                                       ReadOnly = true,
                                                   };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                                   {
                                                       DataField = "ManualAdjustmentId",
                                                       HeaderText = "Manual Adjustment Id",
                                                       UniqueName = "ManualAdjustmentId",
                                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                                       ItemStyle = {Width = Unit.Pixel(100)},
                                                       Visible = false,
                                                       ReadOnly = true,
                                                   };
                _batchAdjustments.Columns.Add(_boundColumn);
     
     
                _boundColumn = new GridBoundColumn
                                                   {
                                                       DataField = "OriginatingSystemCode",
                                                       HeaderText = "Originating System Code",
                                                       UniqueName = "OriginatingSystemCode",
                                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                                       ItemStyle = {Width = Unit.Pixel(100)},
                                                       Visible = false,
                                                       ReadOnly = true,
                                                   };
                _batchAdjustments.Columns.Add(_boundColumn);
     
     
                _boundColumn = new GridBoundColumn
                                   {
                                       DataField = "PolicyNumber",
                                       HeaderText = "Policy Number",
                                       UniqueName = "PolicyNumber",
                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                       ItemStyle = {Width = Unit.Pixel(100)},
                                       EditFormColumnIndex = 0,
                                   };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                   {
                                       DataField = "PolicyVersion",
                                       HeaderText = "Policy Version",
                                       UniqueName = "PolicyVersion",
                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                       ItemStyle = {Width = Unit.Pixel(100)},
                                       EditFormColumnIndex = 1,
                                   };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                   {
                                       DataField = "InternalLegalEntityCode",
                                       HeaderText = "Internal Legal Entity Code",
                                       UniqueName = "InternalLegalEntityCode",
                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                       ItemStyle = {Width = Unit.Pixel(100)},
                                       EditFormColumnIndex = 2,
                                   };
                _batchAdjustments.Columns.Add(_boundColumn);
     
     
                _boundColumn = new GridBoundColumn
                                   {
                                       DataField = "ProductLine2Name",
                                       HeaderText = "Product Line 2 Name",
                                       UniqueName = "ProductLine2Name",
                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                       ItemStyle = {Width = Unit.Pixel(100)},
                                       EditFormColumnIndex = 3
                                   };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                   {
                                       DataField = "DirectAssumedCededCode",
                                       HeaderText = "Direct Assumed Ceded Code",
                                       UniqueName = "DirectAssumedCededCode",
                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                       ItemStyle = {Width = Unit.Pixel(100)},
                                       EditFormColumnIndex = 0,
     
                                   };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                   {
                                       DataField = "PolicyTransactionTypeCode",
                                       HeaderText = "Policy Transaction Type Code",
                                       UniqueName = "PolicyTransactionTypeCode",
                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                       ItemStyle = {Width = Unit.Pixel(100)},
                                       EditFormColumnIndex = 1
                                   };
     
            _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "FinancialAmount",
                                         HeaderText = "Financial Amount",
                                         UniqueName = "FinancialAmount",
                                         HeaderStyle = {Width = Unit.Pixel(100)},
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 2,
                                         DataFormatString = "{0:C}"
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                GridDateTimeColumn _bounddtColumn = new GridDateTimeColumn
                {
                                       DataField = "PolicyEffectiveDate",
                                       HeaderText = "Policy Effective Date",
                                       UniqueName = "PolicyEffectiveDate",
                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                       ItemStyle = {Width = Unit.Pixel(100)},
                                       EditFormColumnIndex = 3,
                                       DataFormatString = "{0:M/d/yyyy}",
                                   };
                _batchAdjustments.Columns.Add(_bounddtColumn);
     
                _boundColumn = new GridBoundColumn
                                          {
                                              DataField = "CoverageCode",
                                              HeaderText = "Coverage Code",
                                              UniqueName = "CoverageMarkelCode",
                                              HeaderStyle = { Width = Unit.Pixel(100) },
                                              ItemStyle = {Width = Unit.Pixel(100)},
                                              Visible = false,
                                              ReadOnly = true,
                                          };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "AnnualStatementLineNAICCode",
                                         HeaderText = "Annual Statement Line NAIC Code",
                                         UniqueName = "AnnualStatementLineNAICCode",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 0,
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "InwardAssumingCompanyCode",
                                         HeaderText = "Inward Assuming Company Code",
                                         UniqueName = "InwardAssumingCompanyCode",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 1,
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                   {
                                       DataField = "ProducerCode",
                                       HeaderText = "Producer Code",
                                       UniqueName = "ProducerCode",
                                       HeaderStyle = {Width = Unit.Pixel(100)},
                                       ItemStyle = {Width = Unit.Pixel(100)},
                                       EditFormColumnIndex = 2,
                                       DataFormatString = "{0:MM/dd/yyyy}",
                                   };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "LegacyProgramCode",
                                         HeaderText = "Legacy Program Code",
                                         UniqueName = "LegacyProgramCode",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 3,
     
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "FinancialRiskISOCountrySubdivisionCode",
                                         HeaderText = "Financial Risk ISO Country Subdivision Code",
                                         UniqueName = "FinancialRiskISOCountrySubdivisionCode",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 0,
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "LineOfBusinessCode",
                                         HeaderText = "Line Of Business  Code",
                                         UniqueName = "LineOfBusinessCodeb",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 2,
     
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "SublineCode",
                                         HeaderText = "Subline  Code",
                                         UniqueName = "SublineCode",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 3,
     
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "RatingClassCode",
                                         HeaderText = "Rating Class  Code",
                                         UniqueName = "RatingClassCode",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 0,
     
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "CoverageTriggerCode",
                                         HeaderText = "Coverage Trigger Code",
                                         UniqueName = "CoverageTriggerCode",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 1,
     
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "RegionCode",
                                         HeaderText = "Region Code",
                                         UniqueName = "RegionCode",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 2,
     
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "LegacyAccountingUnitCode",
                                         HeaderText = "Legacy Accounting Unit Code",
                                         UniqueName = "LegacyAccountingUnitCode",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 3,
     
                                     };
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _bounddtColumn = new GridDateTimeColumn
                                     {
                                         DataField = "PremiumFinancialEffectiveFromDate",
                                         HeaderText = "Premium Financial Effective From Date",
                                         UniqueName = "PremiumFinancialEffectiveFromDate",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 0,
                                         DataFormatString = "{0:M/d/yyyy}",
                                     };
                _batchAdjustments.Columns.Add(_bounddtColumn);
     
                _bounddtColumn = new GridDateTimeColumn
                                     {
                                         DataField = "PremiumFinancialEffectiveToDate",
                                         HeaderText = "Premium Financial Effective To Date",
                                         UniqueName = "PremiumFinancialEffectivetoDate",
                                         HeaderStyle = {Width = Unit.Pixel(100)},
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 0,
                                         DataFormatString = "{0:M/d/yyyy}",
     
                                     };
                _batchAdjustments.Columns.Add(_bounddtColumn);
     
                _bounddtColumn = new GridDateTimeColumn
                                     {
                                         DataField = "CoverageEffectiveDate",
                                         HeaderText = "Coverage Effective Date",
                                         UniqueName = "CoverageEffectiveDate",
                                         HeaderStyle = { Width = Unit.Pixel(100) },
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 0,
                                         DataFormatString = "{0:M/d/yyyy}",
                                     };
     
                _batchAdjustments.Columns.Add(_bounddtColumn);
     
                _bounddtColumn = new GridDateTimeColumn
                                     {
                                         DataField = "CoverageExpirationDate",
                                         HeaderText = "Coverage Expiration Date",
                                         UniqueName = "CoverageExpirationDate",
                                         HeaderStyle = {Width = Unit.Pixel(100)},
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 0,
                                         DataFormatString = "{0:M/d/yyyy}",
                                     };
     
                _batchAdjustments.Columns.Add(_bounddtColumn);
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "PolicyClaimManualAdjustmentTypeName",
                                         HeaderText = "Manual Adjustment Type Name",
                                         UniqueName = "PolicyClaimManualAdjustmentTypeName",
                                         HeaderStyle = {Width = Unit.Pixel(100)},
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 0,
                                     };
     
                _batchAdjustments.Columns.Add(_boundColumn);
     
                _boundColumn = new GridBoundColumn
                                     {
                                         DataField = "AutoGenerated",
                                         HeaderText = "Auto-Generated",
                                         UniqueName = "AutoGenerated",
                                         HeaderStyle = {Width = Unit.Pixel(100)},
                                         ItemStyle = {Width = Unit.Pixel(100)},
                                         EditFormColumnIndex = 0,
                                     };
     
                _batchAdjustments.Columns.Add(_boundColumn);
                return _policyRadGrid;
            }
        }
     
        #region Custom Text Editor Declaration
     
        public class MultiLineTextBoxColumnEditor : GridTextColumnEditor
        {
            private TextBox textBox;
             
            protected override void LoadControlsFromContainer()
            {
                this.textBox = this.ContainerControl.Controls[0] as TextBox;
            }
     
            public override bool IsInitialized
            {
                get { return this.textBox != null; }
            }
     
            public override string Text
            {
                get { return this.textBox.Text; }
                set { this.textBox.Text = value; }
            }
     
            protected override void AddControlsToContainer()
            {
                this.textBox = new TextBox
                                   {
                                       ToolTip = "Custom multi-line text editor",
                                       TextMode = TextBoxMode.MultiLine,
                                       Rows = 4,
                                       Columns = 40,
                                       Visible = true,
                                       BackColor = ((Color) new WebColorConverter().ConvertFromString("#DEDED6"))
                                   };
     
                this.ContainerControl.Controls.Add(this.textBox);
            }
        }
     
        #endregion
     
     
    }

  5. Martin
    Admin
    Martin avatar
    811 posts

    Posted 17 Nov 2011 Link to this post

    Hello Tim,

    I have reviewed your code and was able to pinpoint the cause of the issue. Strangely enough it looks like the FilterMenu = {EnableImageSprites = false} breaks the expand column. Could you please verify whether removing or commenting this line changes the behavior?

    I have forwarded your report to our developers for further investigation. Once I have any feedback on the matter I will get back to you with the details.

    Regards,
    Martin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  6. Tim
    Tim avatar
    60 posts
    Member since:
    May 2011

    Posted 17 Nov 2011 Link to this post

    Hey Martin,
    Thanks that did indeed take care of the problem.
  7. Martin
    Admin
    Martin avatar
    811 posts

    Posted 18 Nov 2011 Link to this post

    Hello Tim,

    I just want to confirm that the reported issue is a bug in the RadGrid component. Our developers are aware of the problem and will give their best to fix it as soon as possible. Unfortunately, I can not provide you with exact estimate about the fix will be available. However, you can follow the status of the issue in our public issue tracking system.

    Kind regards,
    Martin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  8. Tim
    Tim avatar
    60 posts
    Member since:
    May 2011

    Posted 18 Nov 2011 Link to this post

    Thanks Martin,
    I am not dependent on the filtermenu setting. That was some extraneous code that was copied from a sample on the forum. So far I have not run into any other problems with Q3. Thanks for your attention to this matter. Will I get point credits for finding the defect?
  9. Martin
    Admin
    Martin avatar
    811 posts

    Posted 18 Nov 2011 Link to this post

    Hello Tim,

    Indeed your report deserve a reward. Your Telerik points are already updated accordingly.

    Kind regards,
    Martin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017