Hi Telerik Team
Im using Radscheduler (2012.1.321.40) in a customer project and need to render multiple appointments e.g. "unassigned Tasks" in the first Grouped Resource "Unassigned" which is kind of a virtual resource from where appointments can be assigned to real resources by drag+drop operation.
Therefore I need to be able to set the height of the first grouped Resource "Unnassigned" (e.g height of 10 appointments) without the need to scroll cell content. The height of the other grouped resources (swimmlanes) should be settable also (min+max/auto where auto is current behaviour where available space is divided by number of grouped resources)
If total height of visible grouped resources exeeds the available space in Y-Axis, a scrollbar should allow for vertical scrolling.
What do other think about such a feature?
The only way to achive this behaviour at the moment would be adding a radSplitcontainer to the form, add add two radscheduler to it.
But then you need to sync viewsettings, visible scrollarea and need separate datasource which makes searching|filtering more complex...
Regards
Daniel K
I've downloaded the most recent trial version of Winforms and I’m testing several new features including the enhanced drag and drop (specifically from Radgridview to another radgridview). I've found several older unbound implementations on your website and I'm having troubles adapting them to using the most current version.
Is there a SQL bound example of this feature that someone can point out (in VB please) that uses the most recent version (2012 Q1) that I can review and build from for testing?
Thank you.
void RadGridView_RowFormatting(object sender, RowFormattingEventArgs e)
{
object value = e.RowElement.RowInfo.Cells[1].Value;
if (value != null)
{
if (e.RowElement.Tag == null)
{
e.RowElement.DrawBorder = true;
e.RowElement.GradientStyle = GradientStyles.Solid;
CustomAnimatedPropertySetting setting = new CustomAnimatedPropertySetting(e.RowElement);
setting.ApplyValue(e.RowElement);
e.RowElement.Tag = setting;
}
}
else
{
CustomAnimatedPropertySetting setting = e.RowElement.Tag as CustomAnimatedPropertySetting;
if (setting != null)
{
e.RowElement.Tag = null;
setting.Stop();
e.RowElement.ResetValue(LightVisualElement.DrawBorderProperty, ValueResetFlags.Local);
e.RowElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
e.RowElement.ResetValue(LightVisualElement.BorderColorProperty, ValueResetFlags.Animation | ValueResetFlags.Local);
}
}
}
public class CustomAnimatedPropertySetting : AnimatedPropertySetting
{
GridRowElement row;
public CustomAnimatedPropertySetting(GridRowElement row)
: base(
LightVisualElement.BorderColorProperty,
Color.Blue, // start value
Color.White, // end value
40, // number of animation frames
10 // time in ms between 2 frames
)
{
this.row = row;
this.AnimationFinished += new AnimationFinishedEventHandler(CustomAnimatedPropertySetting_AnimationFinished);
this.AnimatorStyle = AnimatorStyles.AnimateAlways;
this.ApplyEasingType = RadEasingType.Linear;
this.UnapplyEasingType = RadEasingType.Linear;
}
public void Stop()
{
GridRowElement o = this.row;
this.row = null;
this.Stop(o);
}
void CustomAnimatedPropertySetting_AnimationFinished(object sender, AnimationStatusEventArgs e)
{
if (row != null && row.Parent != null)
{
this.ApplyValue(row);
}
else
{
row = null;
this.AnimationFinished -= new AnimationFinishedEventHandler(CustomAnimatedPropertySetting_AnimationFinished);
}
}
}
Hi Folks,
I would like to make the border become flashing... but it failed to do so....what's wrong with the code ?
Thanks!
Charles.
gridViewDateTimeColumn1.EditorType = Telerik.WinControls.UI.GridViewDateTimeEditorType.TimePicker;
gridViewDateTimeColumn1.EnableExpressionEditor = true;
gridViewDateTimeColumn1.FieldName = "Me_Dia1";
gridViewDateTimeColumn1.Format = System.Windows.Forms.DateTimePickerFormat.Time;
gridViewDateTimeColumn1.FormatString = "{0:t}";
gridViewDateTimeColumn1.HeaderText = "Me_Lun";
gridViewDateTimeColumn1.IsAutoGenerated = true;
gridViewDateTimeColumn1.Name = "Me_Dia1";
gridViewDateTimeColumn1.Width = 65;
public
TestForm()
{
InitializeComponent();
// add a skip button
WizardCommandAreaButtonElement skipButton =
new
WizardCommandAreaButtonElement
{
Text =
"Skip"
,
MinSize =
new
Size(radWizard1.NextButton.Size.Width, radWizard1.NextButton.Size.Height),
Alignment = ContentAlignment.MiddleRight,
Margin =
new
Padding(4, 0, 4, 0)
};
radWizard1.CommandArea.CommandElements.Add(skipButton);
}
<
telerik:RadNumericTextBox
ID
=
"ntxtMaxWorkHoursSitting"
runat
=
"server"
Width
=
"80px"
CausesValidation
=
"true"
Type
=
"Number"
MinValue
=
"0"
MaxValue
=
"24"
ShowSpinButtons
=
"true"
IncrementSettings-Step
=
"0.5"
>
<
NumberFormat
DecimalDigits
=
"2"
/>
</
telerik:RadNumericTextBox
>