I created a support ticket and asked the following question:
I am binding a RadGridView to a SQL Server table.
The code below returns the following Data Exception Error:
Cannot set column 'SSAN'. The value violates the MaxLength limit of this column.
The SSAN field is a varchar(9). It should store 111223333 and not 111-22-3333. How can I set the column to save the text without the literals?
Dim col As GridViewMaskBoxColumn = New GridViewMaskBoxColumnWith col .Name = "SSAN2" .FieldName = "SSAN" .HeaderText = "SSN" .MaskType = MaskType.Standard .Mask = "000-00-0000" .TextAlignment = ContentAlignment.MiddleCenter .DataType = GetType(String) '.FormatString = "{0:000-00-0000}"End WithRadGridView1.MasterTemplate.Columns.Add(col)Public Class CustomMaskedEditor Inherits RadMaskedEditBoxEditor Public Overrides Property Value() As Object Get Dim value__1 As Object = MyBase.Value value__1 = Convert.ToString(value__1).Replace("-", String.Empty) Return value__1 End Get Set MyBase.Value = value__1 End Set End PropertyEnd ClassPrivate Sub radGridView1_EditorRequired(sender As Object, e As EditorRequiredEventArgs) If e.EditorType = GetType(RadMaskedEditBoxEditor) Then e.EditorType = GetType(CustomMaskedEditor) End IfEnd SubImports Telerik.WinControls.UIPublic Class CustomMaskedEditor Inherits RadMaskedEditBoxEditor Public Overrides Sub BeginEdit() MyBase.MaskTextBox.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals MyBase.BeginEdit() Me.EditorElement.Focus() End SubEnd ClassUpgraded to Version 2012.2.726.40 today and have been struggling to get my project working again.
One thing I noticed right away is that my command buttonelements in my grid no longer display their images.
here's how I am adding them in code:
private void radGridViewJobs_CellFormatting(object sender, CellFormattingEventArgs e){ try { foreach (RadElement ele in e.CellElement.Children) { if (ele is RadProgressBarElement) { e.CellElement.Children.Remove(ele); break; } } if (e.CellElement is GridCommandCellElement && !(e.CellElement.RowElement is GridTableHeaderRowElement)) { GridViewCommandColumn column = (GridViewCommandColumn)e.CellElement.ColumnInfo; String colname = column.FieldName.ToLower(); if (colname == "stationview") { RadButtonElement element = (RadButtonElement)e.CellElement.Children[0]; element.Image = global::PayerConnectClient.Properties.Resources.workstation; element.DisplayStyle = DisplayStyle.Image; element.ImageAlignment = ContentAlignment.MiddleCenter; String myStation = e.CellElement.RowInfo.Cells["workstation"].Value.ToString().Trim(); if (myStation.Length > 0) { element.ToolTipText = @"View/Modify " + myStation + " Profile and Current Configuration"; element.Enabled = true; element.DisplayStyle = DisplayStyle.Image; element.ShowBorder = true; } else { element.Enabled = false; element.DisplayStyle = DisplayStyle.None; element.ShowBorder = false; } if (element.ElementState == ElementState.Constructed) element.Click += new EventHandler(Workstation_Click); } } } catch (Exception ex) { RadMessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, RadMessageIcon.Error); }}
Other than the Telerik update - nothing else has changed.
Any help you could provide would be greatly appreciated. This is extremely urgent as I will be demoing this product early next week.
thanks!
Note: I am using 4 different themes: Office2010Blue, Black and Silver and Windows7. All themes show same behavior.

Hello,
I have downloaded the below reffered test application and try to run in the latest Telerik version release(Q2 2012 SP1), I am finding attached error messages which I can't debug it. I tried lot to adding all refernces and didn't found the required reference dll. RadControlDesignTimeData and
ControlStyleBuilderInfoList.
Please make it ruinable below attached application ASAP otherwise give new collapsible panel test application whic works in Telerik version (Q2 2012 SP1) (C# code required)
Thanks in advance.
Ref:http://www.telerik.com/community/forums/winforms/panels-and-labels/collapsible-panels.aspx
Regards
Manoj

Public Sub BorderStyleLabel(ByRef rdLabel As RadLabel) Dim labelBorder As BorderPrimitive labelBorder = DirectCast(rdLabel.LabelElement.Children(1), BorderPrimitive) labelBorder.BoxStyle = BorderBoxStyle.SingleBorder labelBorder.BackColor = Color.Chocolate labelBorder.Width = 1End SubmyInkCollector = New InkCollector(Me.txtSignature.Handle)myInkCollector.DefaultDrawingAttributes.Width = ThinInkWidthmyInkCollector.Enabled = Truethis.radChartView1 = new RadChartView();((System.ComponentModel.ISupportInitialize)(this.radChartView1)).BeginInit();this.SuspendLayout();this.radChartView1.Size = new System.Drawing.Size(592, 336);this.radChartView1.TabIndex = 10;this.radChartView1.Name = "radChartView1";this.radChartView1.AutoScroll = true;this.radChartView1.Location = new System.Drawing.Point(0, 0);this.radChartView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));this.ClientSize = new Size(592, 373);this.Controls.Add(this.radChartView1);this.Name = "KLDChart";this.Text = "KLDReport";this.Load += new System.EventHandler(this.KLDChart_Load);this.Controls.SetChildIndex(this.radChartView1, 0);((System.ComponentModel.ISupportInitialize)(this.radChartView1)).EndInit();this.ResumeLayout(false);
