or
<
DataTemplate
x:Key
=
"ObstructionPointItemTemplate"
><
br
>
<
telerik:MapPinPoint
<br>
BorderBrush="{StaticResource ObstructionPointColor}"<
br
>
Template="{StaticResource PointControlTemplate}" <
br
>
telerik:MapLayer.Location="{Binding }"><
br
>
<
telerik:MapLayer.HotSpot
><
br
>
<
telerik:HotSpot
X
=
"0.5"
Y
=
"0.5"
/><
br
>
</
telerik:MapLayer.HotSpot
><
br
>
</
telerik:MapPinPoint
><
br
>
</
DataTemplate
>
I have a WPF application that uses the RadGridView control to display search results:
<
telerik:RadGridView
AutoExpandGroups
=
"True"
AutoGenerateColumns
=
"False"
CanUserDeleteRows
=
"False"
CanUserFreezeColumns
=
"False"
CanUserInsertRows
=
"False"
CanUserResizeColumns
=
"True"
CanUserSortColumns
=
"True"
EnableColumnVirtualization
=
"True"
EnableRowVirtualization
=
"True"
FontSize
=
"{x:Static res:Car.Common_DataEntryFontSize}"
FontWeight
=
"Bold"
IsBusy
=
"{Binding Path=IsLoadingReads, RelativeSource={RelativeSource AncestorType={x:Type cs:Searcher}}}"
IsReadOnly
=
"True"
MouseDoubleClick
=
"ReadsGrid_MouseDoubleClick"
Name
=
"ReadsGrid"
RowIndicatorVisibility
=
"Collapsed"
RowStyleSelector
=
"{StaticResource StyleSelector}"
SelectionChanged
=
"ReadsGrid_SelectionChanged"
SelectionUnit
=
"FullRow"
ScrollViewer.CanContentScroll
=
"True"
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
ShowGroupFooters
=
"True"
ToolTip
=
"{x:Static res:Car.Searcher_ReadsGrid_ToolTip}"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Plate, Mode=OneWay}"
Header
=
"{x:Static res:Car.Common_Plate}"
Width
=
"*"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding State, Mode=OneWay}"
Header
=
"{x:Static res:Car.Common_State}"
Width
=
"75"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding TimeStamp, Mode=OneWay, Converter={StaticResource DateConverter}}"
Header
=
"{x:Static res:Car.Common_DateNTime}"
Width
=
"Auto"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding GPSInformation.Position.Latitude, Mode=OneWay, Converter={StaticResource CoordConverter}, ConverterParameter={x:Static res:Car.GpsStatus_NS}}"
Header
=
"{x:Static res:Car.Searcher_Latitude}"
Width
=
"Auto"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding GPSInformation.Position.Longitude, Mode=OneWay, Converter={StaticResource CoordConverter}, ConverterParameter={x:Static res:Car.GpsStatus_EW}}"
Header
=
"{x:Static res:Car.Searcher_Longitude}"
Width
=
"Auto"
/>
<
telerik:GridViewImageColumn
DataMemberBinding
=
"{Binding GpsQuality, Mode=OneWay, Converter={StaticResource DeviceStatuses}}"
Header
=
"{x:Static res:Car.Searcher_GpsQuality}"
ImageStretch
=
"None"
Width
=
"125"
/>
</
telerik:RadGridView.Columns
>
<
telerik:RadGridView.CommandBindings
>
<
CommandBinding
CanExecute
=
"DisplayEditRecordDetails_CanExecute"
Command
=
"cs:CarSystemCommands.DisplayEditRecordDetails"
Executed
=
"DisplayEditRecordDetails_Executed"
/>
</
telerik:RadGridView.CommandBindings
>
</
telerik:RadGridView
>
My name is LAZAU Florin and I am using gridview from telerik.
I want to edit the tamplate and I use blend. The problems is that after I click edit tamplate a got an error:"key cannot be null.Parameter name : key". I attach a sample image
HI all,
I have created a rad pane custom control in a class say
public class CustomControl:RadPane{}
<DataTemplate x:Key="ObstructionPointItemTemplate" DataType="mapLayers:ObstructionPointViewModel"> <telerik:MapPinPoint telerik:MapLayer.Location="{Binding Path=Location}" ToolTip="{Binding Label}" > <i:Interaction.Behaviors> <behaviors:PointBehavior/> <!--This behavior allows the drap and drop move--> </i:Interaction.Behaviors> </telerik:MapPinPoint> </DataTemplate>
<DataTemplate x:Key="ObstructionPointItemTemplate" DataType="mapLayers:ObstructionPointViewModel"> <telerik:MapEllipse Width="0.1" Height="0.1" telerik:MapLayer.Location="{Binding Path=Location}" Fill="{StaticResource PointFill}" ToolTip="{Binding Label}" Stroke="{StaticResource ObstructionPointColor}" StrokeThickness="2" > </telerik:MapEllipse> </DataTemplate>
var radDocument = RadDocumentHelper.GetDefaultDocument(); foreach (var item in ClausesSelectedList) { radDocument = item.ClauseData.GetRadDocument(FieldOrderNumber, RevNumber.Value); var section = new Section(); var frag = new DocumentFragment(radDocument); var docPos1 = new DocumentPosition(radDocument); docPos1.MoveToLastPositionInDocument(); radDocument.InsertFragment(frag, docPos1); }