Hello Telerik Team,
I would like to know how I can add a UserControl in a ToolWindow. its not working for me like this:
The user control has a Panel and inside a Chart.
ToolWindow window = new ToolWindow();
window.controls.add(usercontrol);
How can I solve my problem?
Thanks very much,
Kind regards,
Alfonsina
Private Sub RadScheduler1_AppointmentFormatting(sender As Object, e As Telerik.WinControls.UI.SchedulerAppointmentEventArgs) Handles RadScheduler1.AppointmentFormatting
e.AppointmentElement.Text = "custom text"
End Sub
appointment text: "date from" - "date to" custom text;summary
see the attached image
how to change it to "custom text"
scheduler settings:
Me.RadScheduler1.ActiveViewType = Telerik.WinControls.UI.SchedulerViewType.Timeline
Me.RadScheduler1.GetTimelineView().ShowTimescale(Timescales.Months)
Me.RadScheduler1.GetTimelineView().GetTimescale(Timescales.Months).DisplayedCellsCount = 12
Thank You
int rowIdx = traysGrid.Rows.Add( |
tray.TrayID, tray.Barcode, |
dataContext.Locations.Where(loc => loc.LocationID == trayHistory.LocationID).First().Name |
, |
trayHistory.ArrivalDate, |
AuthenticationController.GetLoggedInUserName(), |
tray.Notes |
); |
GridViewDataRowInfo row = traysGrid.Rows[rowIdx]; |
traysGrid.GridElement.BeginUpdate(); |
row.VisualElement.BackColor = Color.Green; |
traysGrid.GridElement.EndUpdate(); |
private
void
ZoomItem(RadButtonElement button)
{
shouldZoomSelectedItem =
false
;
Size size =
this
.radCarousel1.CarouselElement.ItemsContainer.Size;
CarouselContentItem contentItem = (CarouselContentItem)button.Parent;
zoomedItem = contentItem;
button.ButtonFillElement.Visibility = ElementVisibility.Collapsed;
currScaleFactor = Math.Min(
((
float
)size.Width) / button.Size.Width / 2f,
((
float
)size.Height) / button.Size.Height / 2f);
AnimatedPropertySetting scaleChange =
new
AnimatedPropertySetting(
RadElement.ScaleTransformProperty,
new
SizeF(currScaleFactor, currScaleFactor),
5,
20
);
scaleChange.AnimationFinished +=
new
AnimationFinishedEventHandler(scaleChange_AnimationFinished);
SizeF offset =
new
SizeF(
(size.Width - contentItem.Size.Width * currScaleFactor) / 2f - contentItem.Location.X,
(size.Height - contentItem.Size.Height * 0.50f * currScaleFactor) / 2f - contentItem.Location.Y);
AnimatedPropertySetting positionChange =
new
AnimatedPropertySetting(
RadElement.PositionOffsetProperty,
offset,
5,
20
);
scaleChange.ApplyValue(contentItem);
positionChange.ApplyValue(contentItem);
}
private
bool
nonNumberEntered =
false
;
protected
void
radDDLAccountNo_KeyDown(Object sender, KeyEventArgs e)
{
ValidateNumericField(e);
}
private
void
radDDLAccountNo_KeyPress(Object sender, KeyPressEventArgs e)
{
KeyPressEvent(e);
}
private
void
ValidateNumericField(KeyEventArgs e)
{
nonNumberEntered =
false
;
if
(e.KeyCode < Keys.D0 || e.KeyCode > Keys.D9)
{
if
(e.KeyCode < Keys.NumPad0 || e.KeyCode > Keys.NumPad9)
{
if
(e.KeyCode != Keys.Back)
nonNumberEntered =
true
;
}
}
if
(Control.ModifierKeys == Keys.Shift)
nonNumberEntered =
true
;
}
private
void
KeyPressEvent(KeyPressEventArgs e)
{
if
(nonNumberEntered ==
true
)
{
e.Handled =
true
;
}
}