radscheduler1.AppointmentEditDialogShowing += new EventHandler<
Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs
>(radscheduler1_AppointmentEditDialogShowing);
radscheduler1.AppointmentEditDialogShowing += New EventHandler(Of Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs)(radscheduler1_AppointmentEditDialogShowing)
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 GridViewMaskBoxColumn
With 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 With
RadGridView1.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
Property
End
Class
Private
Sub
radGridView1_EditorRequired(sender
As
Object
, e
As
EditorRequiredEventArgs)
If
e.EditorType =
GetType
(RadMaskedEditBoxEditor)
Then
e.EditorType =
GetType
(CustomMaskedEditor)
End
If
End
Sub
Imports Telerik.WinControls.UI
Public Class CustomMaskedEditor
Inherits RadMaskedEditBoxEditor
Public Overrides Sub BeginEdit()
MyBase.MaskTextBox.TextMaskFormat = MaskFormat.ExcludePromptAndLiterals
MyBase.BeginEdit()
Me.EditorElement.Focus()
End Sub
End Class
Upgraded 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 = 1
End
Sub
myInkCollector =
New
InkCollector(
Me
.txtSignature.Handle)
myInkCollector.DefaultDrawingAttributes.Width = ThinInkWidth
myInkCollector.Enabled =
True