public
Form1()
{
InitializeComponent();
this
.radPanorama1.PanoramaElement.DragDropService.Stopping +=
new
EventHandler<Telerik.WinControls.RadServiceStoppingEventArgs>(DragDropService_Stopping);
}
void
DragDropService_Stopping(
object
sender, Telerik.WinControls.RadServiceStoppingEventArgs e)
{
if
(e.Commit)
{
RadTileElement tile =
this
.radPanorama1.PanoramaElement.DragDropService.Context
as
RadTileElement;
}
}
Telerik.WinControls.CompositeUI.RadDockWorkspace appWorkSpace = WorkItem.Workspaces.AddNew<Telerik.WinControls.CompositeUI.RadDockWorkspace>("myworkspace");
appWorkSpace.Dock = DockStyle.Fill;
appWorkSpace.DocumentTabsAlignment = Telerik.WinControls.UI.TabStripAlignment.Top;
appWorkSpace.DocumentManager.BoldActiveDocument = true;
appWorkSpace.DocumentManager.DocumentInsertOrder = Telerik.WinControls.UI.Docking.DockWindowInsertOrder.ToBack;
appWorkSpace.ShowDocumentCloseButton = true;
appWorkSpace.BackgroundImage = myImage; // whatever the image
Any ideas why it isn't working ?? I used to use a Workspace built with the Weifenluo dll and the BackgroundImage property worked properly with that workspace.
Any help would be appreciated !!
jjeffrroyy
list = new List<
DateTime
>();
DateTime date = DateTime.Now;
for (int i = 0; i < 10000; i++)
{
list.Add(date.AddDays(i));
}
grid.DataSource = list;
grid.BestFitColumns();
public List<
DateTime
> list { get; set; }
Private
Sub
DOCFirstDtn_Click(
ByVal
sender
As
System.
Object
,
ByVal
e
As
System.EventArgs)
Handles
DOCFirstDtn.Click
If
DocumentsGV.Rows.Count > 0
Then
DocumentsGV.Rows(0).IsSelected =
True
DocPreviousBtn.Enabled =
False
DocNextBtn.Enabled =
True
End
If
End
Sub
Private
Sub
DocLastBtn_Click(
ByVal
sender
As
System.
Object
,
ByVal
e
As
System.EventArgs)
Handles
DocLastBtn.Click
If
DocumentsGV.Rows.Count > 0
Then
DocumentsGV.Rows(DocumentsGV.Rows.Count - 1).IsSelected =
True
DocNextBtn.Enabled =
False
DocPreviousBtn.Enabled =
True
End
If
End
Sub
Private
Sub
DocPreviousBtn_Click(
ByVal
sender
As
System.
Object
,
ByVal
e
As
System.EventArgs)
Handles
DocPreviousBtn.Click
If
DocumentsGV.Rows.Count > 0
Then
Dim
SelectedRowIndex
As
Integer
= DocumentsGV.SelectedRows(0).Index
If
SelectedRowIndex = 1
Then
DocPreviousBtn.Enabled =
False
Else
DocPreviousBtn.Enabled =
True
End
If
DocNextBtn.Enabled =
True
DocumentsGV.Rows(SelectedRowIndex - 1).IsSelected =
True
End
If
End
Sub
Private
Sub
DocNextBtn_Click(
ByVal
sender
As
System.
Object
,
ByVal
e
As
System.EventArgs)
Handles
DocNextBtn.Click
If
DocumentsGV.Rows.Count > 0
Then
Dim
SelectedRowIndex
As
Integer
= DocumentsGV.SelectedRows(0).Index
Dim
vvv
As
Integer
= DocumentsGV.SelectedRows.Count
If
SelectedRowIndex = (DocumentsGV.Rows.Count - 2)
Then
DocNextBtn.Enabled =
False
Else
DocNextBtn.Enabled =
True
End
If
DocPreviousBtn.Enabled =
True
DocumentsGV.Rows(SelectedRowIndex + 1).IsSelected =
True
End
If
End
Sub