or
public string Header { get; set; }
public ObservableCollection<
DiagramNodeProperty
> DiagramNodeProperties { get; set; }
<
telerik:RadScheduleView.DragDropBehavior
>
<
localScheduler:ScheduleViewLevel1DragDropBehavior
/>
</
telerik:RadScheduleView.DragDropBehavior
>
public class ScheduleViewLevel1DragDropBehavior : ScheduleViewDragDropBehavior
{
public override bool CanStartDrag(DragDropState state)
{
return true;
}
public override bool CanResize(DragDropState state)
{
return false;
}
public override bool CanDrop(DragDropState state)
{
//...
return true;
}
public override void Drop(DragDropState state)
{
//...
}
}
public
class
BindingTypedList<T> : Collection<T>, INotifyCollectionChanged
{
public
void
AddRange(IList<T> items)
{
foreach
(T item
in
items)
{
this
.Add(item);
}
FireCollectionChanged(items);
}
public
void
FireCollectionChanged(IList<T> items)
{
try
{
if
(CollectionChanged !=
null
)
CollectionChanged(
this
,
new
NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, items.ToList()));
}
catch
(Exception ex)
{
MessageBox.Show(ex.Message +
"\n"
+ ex.StackTrace);
}
}
public
event
NotifyCollectionChangedEventHandler CollectionChanged;
}
<
telerik:RadGridView.Resources
>
<
Style
TargetType
=
"{x:Type telerik:GridViewHeaderCell}"
>
<
Setter
Property
=
"ToolTip"
Value
=
"{Binding Content, RelativeSource={RelativeSource Self}}"
/>
</
Style
>
</
telerik:RadGridView.Resources
>
<
telerik:GridViewDataColumn
Header
=
"Type"
DataMemberBinding
=
"{Binding Path=DriveType}"
ToolTip
=
"Drive Type"
/>
for
(i = 0; i < 3000; i++)
{
LoadZones();
}
protected
void
LoadZones()
{
PolylineData polyline =
new
PolylineData()
{
ShapeFill =
new
MapShapeFill()
{
Stroke =
new
SolidColorBrush(Colors.Red),
StrokeThickness = 2,
Fill = Brushes.Blue,
}
};
LocationCollection points =
new
LocationCollection();
points.Add(
new
Location(-20.0791497684858, 57.5683593750001));
points.Add(
new
Location(-20.04819100048355, 57.6390838623048));
points.Add(
new
Location(-20.082374288709, 57.6507568359376));
points.Add(
new
Location(-20.0791497684858, 57.5683593750001));
polyline.Points = points;
this
.visualizationLayer.Items.Add(polyline);
}
this
.mapShapeDataReader.SourceCollection.Add(
new
AsyncReaderSource()
{
//Add PolygoneData Object
});
<
telerik:RadGridView
Grid.Row
=
"1"
VerticalAlignment
=
"Stretch"
HorizontalAlignment
=
"Left"
DataMember
=
"ClientNumber"
ItemsSource
=
"{Binding}"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
ShowColumnHeaders
=
"False"
ShowGroupPanel
=
"False"
IsFilteringAllowed
=
"False"
Name
=
"grdSearchResults"
AutoExpandGroups
=
"True"
FontSize
=
"16"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
UniqueName
=
"ClientNumber"
ToolTip
=
"Client Number"
/>
<
telerik:GridViewDataColumn
UniqueName
=
"LastName"
ToolTip
=
"Last Name"
/>
<
telerik:GridViewDataColumn
UniqueName
=
"FirstNames"
ToolTip
=
"First Name"
/>
<
telerik:GridViewDataColumn
UniqueName
=
"CaseNumber"
ToolTip
=
"Case Number"
/>
<
telerik:GridViewDataColumn
UniqueName
=
"DateOfBirth"
DataFormatString
=
"{}{0:d}"
ToolTip
=
"DOB"
/>
<
telerik:GridViewDataColumn
UniqueName
=
"InterviewDate"
DataFormatString
=
"{}{0:d}"
ToolTip
=
"Interview Date"
/>
</
telerik:RadGridView.Columns
>
<!-- other stuff -->
</
telerik:RadGridView
>