Hi,
I have a problem with the most simplest thing with RadDateTimePicker (2009.3.9.1203). I only want to set date, at form opening, like this :
Me.radDateTimePickerStart.Value = DateTime.Now.AddDays(-7)
Me.radDateTimePickerEnd.Value = DateTime.Now
if I set property of format to System.Windows.Forms.DateTimePickerFormat.Custom, the render is not updating on the form, but if i debug the control, the value is ok. With custom format the problem disappear.
Here is the complete control setup :
Me.radDateTimePickerStart.AutoSize = True
Me.radDateTimePickerStart.Culture = New System.Globalization.CultureInfo("fr-CA")
Me.radDateTimePickerStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom
Me.radDateTimePickerStart.Location = New System.Drawing.Point(782, 531)
Me.radDateTimePickerStart.MaxDate = New Date(9998, 12, 31, 0, 0, 0, 0)
Me.radDateTimePickerStart.MinDate = New Date(1900, 1, 1, 0, 0, 0, 0)
Me.radDateTimePickerStart.Name = "radDateTimePickerStart"
Me.radDateTimePickerStart.NullDate = New Date(1900, 1, 1, 0, 0, 0, 0)
Me.radDateTimePickerStart.Size = New System.Drawing.Size(150, 22)
Me.radDateTimePickerStart.TabIndex = 5
Me.radDateTimePickerStart.Text = "RadDateTimePicker1"
Me.radDateTimePickerStart.Value = New Date(2010, 2, 12, 14, 18, 35, 101)
thx,
| Private Sub ExportToExcel(ByVal ExportAsML As Boolean, ByVal Exportfor2007 As Boolean, Optional ByVal exportVisual As Boolean = True) | |
| If ExportAsML = False AndAlso saveFileDialog.ShowDialog() = System.Windows.Forms.DialogResult.OK Then | |
| 'Export To Excel | |
| If (Not saveFileDialog.FileName.Equals(String.Empty)) Then | |
| Dim file As New FileInfo(saveFileDialog.FileName) | |
| If file.Extension.Equals(".xls") Then | |
| 'Här skall det bli ändring till gamla Excel | |
| ' Export(saveFileDialog.FileName) | |
| Else | |
| MessageBox.Show("Felaktig filtyp") | |
| End If | |
| Else | |
| MessageBox.Show("Välj ett filnamn.") | |
| End If | |
| ElseIf ExportAsML = True AndAlso saveFileDialog.ShowDialog() = System.Windows.Forms.DialogResult.OK Then | |
| 'Export To ExcelML | |
| If (Not saveFileDialog.FileName.Equals(String.Empty)) Then | |
| Dim fileName As String = Me.saveFileDialog.FileName | |
| Dim exporter As New ExportToExcelML() | |
| If Exportfor2007 Then | |
| exporter.RunExport(Me.RadGridView1, fileName, ExportToExcelML.ExcelMaxRows._1048576, exportVisual) | |
| Else | |
| exporter.RunExport(Me.RadGridView1, fileName, ExportToExcelML.ExcelMaxRows._65536, exportVisual) | |
| End If | |
| MessageBox.Show("Export klar.") | |
| Else | |
| MessageBox.Show("Välj ett filnamn.") | |
| End If | |
| End If | |
| End Sub | |
In my constructor i have set
AllowDragDrop =
true;
void
TreeView_ItemDrag(object sender, RadTreeViewEventArgs e)
{
//Does nothing
}
void
TreeView_DragEnter(object sender, DragEventArgs e)
{
e.Effect =
DragDropEffects.Move;
}
void
TreeView_DragDrop(object sender, DragEventArgs e)
{
//My business logic....
}
TreeView_DragDrop even is never get executed when i drop a RadTreeNode before/after another RadTreeNode in the view.
Please help...
groupTreeView.AllowArbitaryItemHeight =
true;
groupTreeView.AllowPlusMinusAnimation =
true;
groupTreeView.DropFeedbackColor =
Color.Black;
groupTreeView.Enabled =
true;
groupTreeView.ExpandAnimation =
ExpandAnimation.Opacity;
groupTreeView.Focusable =
true;
groupTreeView.PlusMinusAnimationStep = 10;
groupTreeView.ShowExpandCollapse =
true;
groupTreeView.ToggleMode =
ToggleMode.SingleClick;
groupTreeView.UseNewLayoutSystem =
true;
but this does not show me the Expand(+) and collapse(-) sign.
Note my TreeViewXML..
<?xml version="1.0" encoding="utf-16"?>
<TreeView xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" UseDefaultSelection="true" AllowDragDrop="true" AllowPlusMinusAnimation="true" ThemeName="Office2007Black" AllowDrop="true" BackColor="Window" DropFeedbackColor="Red" LineColor="ActiveCaption">
</TreeView>
Please help..