Hi,
I have loaded multiple polygons from SQL on a bing map and have a context menu for the polygons on the information layer.
However, I cant find any way to bind and get the unique id of the clicked polygon.
<
telerik:InformationLayer
x:Name
=
"infoLayer"
>
<
telerik:InformationLayer.Reader
>
<
telerik:SqlGeospatialDataReader
Source
=
"{Binding SpatialData}"
x:Name
=
"Data"
GeospatialPropertyName
=
"Polygon"
ToolTipTemplate
=
"{StaticResource ToolTipDataTemplate}"
/>
</
telerik:InformationLayer.Reader
>
<
telerik:InformationLayer.ContextMenu
>
<
ContextMenu
x:Name
=
"PolygonMenu"
>
<
MenuItem
Header
=
"Menu Item 1"
Command
=
"{Binding Path=PolygonSelectedCommand}"
CommandParameter
=
"{Binding ElementName=infoLayer,Path=????}"
/>
</
ContextMenu
>
</
telerik:InformationLayer.ContextMenu
>
<
telerik:InformationLayer.ShapeFill
>
<
telerik:MapShapeFill
Fill
=
"Transparent"
Stroke
=
"Red"
StrokeThickness
=
"1"
/>
</
telerik:InformationLayer.ShapeFill
>
<
telerik:InformationLayer.HighlightFill
>
<
telerik:MapShapeFill
Fill
=
"#b2FFFFFF"
Stroke
=
"Red"
StrokeThickness
=
"1"
/>
</
telerik:InformationLayer.HighlightFill
>
</
telerik:InformationLayer
>
Thanks,
Hi,
I am trying to replace TextBox that had CharacterCasing="Upper" with RadMaskedTextInput.
I do not want to have placeholders, so I cannot use Mask=">a10"
Is there any other way to change charaters to upper when typing into RadMaskedTextInput?
Thanks,
Lukasz
Hi,
i love the DataForm Control, but is there a way to create the Fields and Layout in Codebehind? We want to create somethinfg like a Form-Designer,
where the user can layout the form himself. First Step is to read from a File which fields, position, length,... and 2 Step is to create the field on the form.
Thanks
Best Regards
Rene
Hi,
I am using a customized control derived from TileListPanel. and I have overriden ArrangeOverride() in this control. I am using this control in two different windows and those two windows are being shown at a time on UI.
I am seeing a crash whose callstack is origination from Mycontrols' ArrangeOverride(). Below is the callstack. could you please help me out in fixing this issue.
Object reference not set to an instance of an object.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Telerik.Windows.Controls.TilesPlacementLocator.MarkTakenPlaceHolders(Int32 row, Int32 column, Tile tile)
at Telerik.Windows.Controls.TileListPanel.DistributeTiles(Size availableSize, List`1 tiles, Int32 firstColumnIndex)
at Telerik.Windows.Controls.TileListPanel.ArrangeOverride(Size finalSize)
Thanks,
Nausheen
Hi,
i get an Error after updating to Win10.
"ContextMenuTemplate should contain a RadContextMenu as root element."
<
UserControl
x:Class
=
"flexCRM_Adressen.Pages.Adresse"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"800"
d:DesignWidth
=
"1200"
>
<
UserControl.Resources
>
<
XmlDataProvider
x:Key
=
"Lang"
Source
=
"../lng/deutsch.xml"
XPath
=
"CrypTool"
/>
<
Style
TargetType
=
"{x:Type telerik:PaneHeader}"
>
<
Setter
Property
=
"FontSize"
Value
=
"15"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"0,0,0,1"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"#FFA0A0A0"
/>
<
Setter
Property
=
"Background"
Value
=
"#e9e9e9"
/>
<
Setter
Property
=
"Height"
Value
=
"40"
/>
<
Setter
Property
=
"Padding"
Value
=
"5"
/>
</
Style
>
<
Style
TargetType
=
"{x:Type telerik:DocumentHost}"
>
<
Setter
Property
=
"FontSize"
Value
=
"15"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"0,0,0,1"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"#FFA0A0A0"
/>
<
Setter
Property
=
"Background"
Value
=
"#e9e9e9"
/>
<
Setter
Property
=
"Height"
Value
=
"40"
/>
<
Setter
Property
=
"Padding"
Value
=
"5"
/>
</
Style
>
<
Style
TargetType
=
"{x:Type telerik:GridViewColumn}"
x:Key
=
"VorgaengeRowStyle"
>
</
Style
>
<
DataTemplate
x:Key
=
"MyTemplate"
>
<
GroupBox
Margin
=
"10"
>
<
GroupBox.HeaderTemplate
>
<
DataTemplate
>
<
Border
Background
=
"LawnGreen"
CornerRadius
=
"5,5,0,0"
>
<
TextBlock
Text
=
"Kunde"
Margin
=
"5"
Width
=
"100"
/>
</
Border
>
</
DataTemplate
>
</
GroupBox.HeaderTemplate
>
<
Border
Margin
=
"10"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
>
<
Grid
x:Name
=
"ReadOnlyGrid"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"40"
/>
<
ColumnDefinition
Width
=
"300"
/>
<
ColumnDefinition
Width
=
"50"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Image
Grid.Column
=
"0"
Grid.Row
=
"0"
Source
=
"/flexCRM_Adresssen;component/Style/Images/adressenr.png"
Height
=
"20"
Margin
=
"10,0,5,0"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Identnummer, Mode=TwoWay}"
Padding
=
"0"
Name
=
"IdentnummerText"
Grid.Row
=
"0"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
IsReadOnly
=
"True"
Margin
=
"5"
/>
<
Image
Grid.Column
=
"0"
Grid.Row
=
"1"
Source
=
"/flexCRM_Adresssen;component/Style/Images/adresseninfo.png"
Height
=
"20"
Margin
=
"10,0,5,0"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Name, Mode=TwoWay}"
Padding
=
"0"
Name
=
"NameText"
Grid.Row
=
"1"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
FontWeight
=
"SemiBold"
Margin
=
"5"
MaxWidth
=
"400"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Ans, Mode=TwoWay}"
Padding
=
"0"
Name
=
"AnschriftText"
Grid.Row
=
"2"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
Margin
=
"5"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
MaxWidth
=
"400"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Str, Mode=TwoWay}"
Padding
=
"0"
Name
=
"StrasseText"
Grid.Row
=
"3"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
Margin
=
"5"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
MaxWidth
=
"400"
/>
<
StackPanel
Grid.Row
=
"4"
Grid.Column
=
"1"
Orientation
=
"Horizontal"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Stretch"
>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Plz, Mode=TwoWay}"
Width
=
"70"
Padding
=
"0"
Name
=
"PlzText"
Height
=
"Auto"
FontSize
=
"10"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Nort, Mode=TwoWay}"
Padding
=
"0"
Name
=
"OrtText"
Height
=
"Auto"
FontSize
=
"10"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"10,5,5,5"
/>
</
StackPanel
>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Staat, Mode=TwoWay}"
Padding
=
"0"
Name
=
"StaatText"
Grid.Row
=
"5"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
MaxWidth
=
"400"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"0"
Source
=
"/flexCRM_Adresssen;component/Style/Images/telefon.png"
Height
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Tele, Mode=TwoWay}"
Padding
=
"0"
Name
=
"TelefonText"
Grid.Row
=
"0"
Grid.Column
=
"3"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
MaxWidth
=
"400"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"1"
Source
=
"/flexCRM_Adresssen;component/Style/Images/mobiltelefon.png"
Height
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Mtele, Mode=TwoWay}"
Padding
=
"0"
Name
=
"MobilText"
Grid.Row
=
"1"
Grid.Column
=
"3"
MaxWidth
=
"400"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"2"
Source
=
"/flexCRM_Adresssen;component/Style/Images/email.png"
Width
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Email, Mode=TwoWay}"
Padding
=
"0"
Name
=
"EmailText"
Grid.Row
=
"2"
Grid.Column
=
"3"
MaxWidth
=
"400"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"3"
Source
=
"/flexCRM_Adresssen;component/Style/Images/www.png"
Width
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Urlt, Mode=TwoWay}"
Padding
=
"0"
Name
=
"UrlText"
Grid.Row
=
"3"
Grid.Column
=
"3"
MaxWidth
=
"400"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
Button
Grid.Column
=
"2"
Grid.Row
=
"4"
HorizontalContentAlignment
=
"Left"
Padding
=
"0"
Margin
=
"5"
Width
=
"40"
HorizontalAlignment
=
"Left"
BorderBrush
=
"{x:Null}"
BorderThickness
=
"0"
>
<
Image
Source
=
"/flexCRM_Adresssen;component/Style/Images/googlemaps.png"
Stretch
=
"Uniform"
/>
</
Button
>
</
Grid
>
</
Border
>
</
GroupBox
>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"MyEditTemplate"
>
<
GroupBox
Margin
=
"10"
>
<
GroupBox.HeaderTemplate
>
<
DataTemplate
>
<
Border
Background
=
"LawnGreen"
CornerRadius
=
"5,5,0,0"
>
<
TextBlock
Text
=
"Kunde"
Margin
=
"5"
Width
=
"100"
/>
</
Border
>
</
DataTemplate
>
</
GroupBox.HeaderTemplate
>
<
Border
Margin
=
"10"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
>
<
Grid
x:Name
=
"ReadOnlyGrid"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"40"
/>
<
ColumnDefinition
Width
=
"320"
/>
<
ColumnDefinition
Width
=
"50"
/>
<
ColumnDefinition
Width
=
"320"
/>
</
Grid.ColumnDefinitions
>
<
Image
Grid.Column
=
"0"
Grid.Row
=
"0"
Source
=
"/flexCRM_Adresssen;component/Style/Images/adressenr.png"
Height
=
"20"
Margin
=
"10,0,5,0"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Identnummer, Mode=TwoWay}"
Padding
=
"0"
Name
=
"IdentnummerText"
Grid.Row
=
"0"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"12"
IsReadOnly
=
"True"
Margin
=
"5"
/>
<
Image
Grid.Column
=
"0"
Grid.Row
=
"1"
Source
=
"/flexCRM_Adresssen;component/Style/Images/adresseninfo.png"
Height
=
"20"
Margin
=
"10,0,5,0"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Name, Mode=TwoWay}"
Padding
=
"0"
Name
=
"NameText"
Grid.Row
=
"1"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
FontWeight
=
"SemiBold"
Margin
=
"5"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Ans, Mode=TwoWay}"
Padding
=
"0"
Name
=
"AnschriftText"
Grid.Row
=
"2"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"12"
Margin
=
"5"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Str, Mode=TwoWay}"
Padding
=
"0"
Name
=
"StrasseText"
Grid.Row
=
"3"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"12"
Margin
=
"5"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
/>
<
StackPanel
Grid.Row
=
"4"
Grid.Column
=
"1"
Orientation
=
"Horizontal"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Stretch"
>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Plz, Mode=TwoWay}"
Width
=
"70"
Padding
=
"0"
Name
=
"PlzText"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Nort, Mode=TwoWay}"
Padding
=
"0"
Name
=
"OrtText"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
Margin
=
"10,5,5,5"
/>
</
StackPanel
>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Staat, Mode=TwoWay}"
Padding
=
"0"
Name
=
"StaatText"
Grid.Row
=
"5"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"0"
Source
=
"/flexCRM_Adresssen;component/Style/Images/telefon.png"
Height
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Tele, Mode=TwoWay}"
Padding
=
"0"
Name
=
"TelefonText"
Grid.Row
=
"0"
Grid.Column
=
"3"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
Width
=
"300"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"1"
Source
=
"/flexCRM_Adresssen;component/Style/Images/mobiltelefon.png"
Height
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Mtele, Mode=TwoWay}"
Padding
=
"0"
Name
=
"MobilText"
Grid.Row
=
"1"
Grid.Column
=
"3"
MaxWidth
=
"350"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
Width
=
"300"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"2"
Source
=
"/flexCRM_Adresssen;component/Style/Images/email.png"
Width
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Email, Mode=TwoWay}"
Padding
=
"0"
Name
=
"EmailText"
Grid.Row
=
"2"
Grid.Column
=
"3"
MaxWidth
=
"350"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
Width
=
"300"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"3"
Source
=
"/flexCRM_Adresssen;component/Style/Images/www.png"
Width
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Urlt, Mode=TwoWay}"
Padding
=
"0"
Name
=
"UrlText"
Grid.Row
=
"3"
Grid.Column
=
"3"
MaxWidth
=
"350"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
Width
=
"300"
/>
<
Button
Grid.Column
=
"2"
Grid.Row
=
"4"
HorizontalContentAlignment
=
"Left"
Padding
=
"0"
Margin
=
"5"
Width
=
"40"
HorizontalAlignment
=
"Left"
BorderBrush
=
"{x:Null}"
BorderThickness
=
"0"
>
<
Image
Source
=
"/flexCRM_Adresssen;component/Style/Images/googlemaps.png"
Stretch
=
"Uniform"
/>
</
Button
>
</
Grid
>
</
Border
>
</
GroupBox
>
</
DataTemplate
>
</
UserControl.Resources
>
<
Grid
x:Name
=
"AdressenGrd"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"50"
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Border
Grid.Row
=
"0"
Grid.Column
=
"1"
Background
=
"White"
Margin
=
"5,0,0,0"
>
<
Grid
x:Name
=
"AdressenHeaderGrid"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"50"
/>
<
RowDefinition
Height
=
"50"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
telerik:RadButton
VerticalAlignment
=
"Center"
BorderThickness
=
"0"
Height
=
"Auto"
HorizontalAlignment
=
"Center"
x:Name
=
"LoadlayoutButton"
Background
=
"{x:Null}"
Width
=
"Auto"
BorderBrush
=
"Transparent"
Margin
=
"5"
Grid.Row
=
"0"
Click
=
"ButtonLoad_Click"
>
<
StackPanel
Orientation
=
"Vertical"
>
<
Image
Width
=
"35"
Height
=
"35"
Source
=
"/flexCRM_Adresssen;component/Style/Images/resetlayouttn.png"
/>
</
StackPanel
>
<
telerik:RadButton.Template
>
<
ControlTemplate
TargetType
=
"Button"
>
<
ContentPresenter
Content
=
"{TemplateBinding Content}"
Cursor
=
"Hand"
/>
</
ControlTemplate
>
</
telerik:RadButton.Template
>
</
telerik:RadButton
>
<
telerik:RadButton
VerticalAlignment
=
"Center"
BorderThickness
=
"0"
Height
=
"Auto"
HorizontalAlignment
=
"Center"
x:Name
=
"SavelayoutButton"
Background
=
"{x:Null}"
Width
=
"Auto"
BorderBrush
=
"Transparent"
Margin
=
"5"
Grid.Row
=
"1"
Click
=
"ButtonSave_Click"
>
<
StackPanel
Orientation
=
"Vertical"
>
<
Image
Width
=
"35"
Height
=
"30"
Source
=
"Style/Images/savelayoutbtn.png"
/>
</
StackPanel
>
<
telerik:RadButton.Template
>
<
ControlTemplate
TargetType
=
"Button"
>
<
ContentPresenter
Content
=
"{TemplateBinding Content}"
Cursor
=
"Hand"
/>
</
ControlTemplate
>
</
telerik:RadButton.Template
>
</
telerik:RadButton
>
</
Grid
>
</
Border
>
<
telerik:RadDocking
x:Name
=
"RadDocking1"
Grid.Row
=
"0"
Grid.Column
=
"0"
Margin
=
"0,0,10,0"
BorderThickness
=
"0"
Padding
=
"0"
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
MinWidth
=
"300"
Height
=
"490"
>
<
telerik:RadPaneGroup
telerik:RadDocking.SerializationTag
=
"Group0"
>
<
telerik:RadDocumentPane
Header
=
"Document 1"
Title
=
"Document 1"
telerik:RadDocking.SerializationTag
=
"pane0"
CanUserClose
=
"False"
CanFloat
=
"False"
CanUserPin
=
"False"
>
<
telerik:RadDataForm
x:Name
=
"AdresseDataForm"
ItemsSource
=
"{Binding Adressen}"
telerik:StyleManager.Theme
=
"Windows8Touch"
AutoGenerateFields
=
"False"
ReadOnlyTemplate
=
"{StaticResource MyTemplate}"
EditTemplate
=
"{StaticResource MyEditTemplate}"
EditEnded
=
"AdresseDataForm_OnEditEnded"
CommandButtonsVisibility
=
"Cancel,Commit,Edit,Add,Delete"
/>
</
telerik:RadDocumentPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
Orientation
=
"Vertical"
InitialPosition
=
"DockedRight"
>
<
telerik:RadPaneGroup
telerik:RadDocking.SerializationTag
=
"Group1"
>
<
telerik:RadPane
Header
=
"Vorgänge"
Title
=
"Vorgänge"
CanUserClose
=
"False"
CanDockInDocumentHost
=
"False"
telerik:RadDocking.SerializationTag
=
"pane1"
>
<
Grid
x:Name
=
"VorgaengeGrid"
Background
=
"Transparent"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
wpfx:BusyIndicator
Name
=
"BusyBar"
Margin
=
"0"
Grid.Row
=
"0"
>
<
telerik:RadGridView
telerik:StyleManager.Theme
=
"Windows8"
ShowGroupPanel
=
"False"
CanUserSortGroups
=
"False"
FontSize
=
"14"
ShowColumnHeaders
=
"False"
BorderThickness
=
"0"
x:Name
=
"VorgaengeRadGridViewRgv"
SnapsToDevicePixels
=
"True"
IsFilteringAllowed
=
"False"
CanUserDeleteRows
=
"False"
CanUserInsertRows
=
"False"
RowIndicatorVisibility
=
"Collapsed"
AutoGenerateColumns
=
"False"
BorderBrush
=
"{x:Null}"
HorizontalGridLinesBrush
=
"{x:Null}"
VerticalGridLinesBrush
=
"{x:Null}"
FrozenColumnsSplitterVisibility
=
"Collapsed"
Margin
=
"0,10,0,0"
IsReadOnly
=
"True"
SelectionMode
=
"Single"
FontFamily
=
"Tahoma"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Gruppe}"
Width
=
"*"
IsVisible
=
"False"
Style
=
"{StaticResource VorgaengeRowStyle}"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Type}"
Width
=
"auto"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Anzahl}"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
wpfx:BusyIndicator
>
</
Grid
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
<
telerik:RadPaneGroup
telerik:RadDocking.SerializationTag
=
"Group2"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
>
<
telerik:RadPane
Header
=
"Kalender"
Title
=
"Kalender"
CanUserClose
=
"False"
CanDockInDocumentHost
=
"False"
telerik:RadDocking.SerializationTag
=
"pane2"
>
<
Frame
x:Name
=
"KalenderFrame"
NavigationUIVisibility
=
"Hidden"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
Orientation
=
"Horizontal"
InitialPosition
=
"DockedBottom"
>
<
telerik:RadPaneGroup
telerik:RadDocking.SerializationTag
=
"Group4"
>
<
telerik:RadPane
Header
=
"Pane Bottom 1"
CanUserClose
=
"False"
CanDockInDocumentHost
=
"False"
telerik:RadDocking.SerializationTag
=
"pane4"
IsPinned
=
"False"
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
Orientation
=
"Horizontal"
InitialPosition
=
"DockedBottom"
>
<
telerik:RadPaneGroup
telerik:RadDocking.SerializationTag
=
"Group3"
>
<
telerik:RadPane
Header
=
"Umsatz"
Title
=
"Umsatz"
CanUserClose
=
"False"
CanDockInDocumentHost
=
"False"
telerik:RadDocking.SerializationTag
=
"pane3"
Height
=
"400"
>
<
Frame
x:Name
=
"FinzanzenFrame"
NavigationUIVisibility
=
"Hidden"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
Grid
>
</
UserControl
>
Where is the Problem?
Thanks
Best Regards
Rene
Hi,
Can we have a way to get all the child nodes selected just by selecting a parent node. It is possible through checkbox in treeview. But can we acheive the same through selection?
Thanks,
pelli
I have a grid view where in one column I need to have two radio buttons defined (yes and no), but If I try that I get an error about "The property "Visual Tree" can only be set once.". What I'm wanting is for user to be able to change a selection for that row if he makes a mistake. I'm rather new at all of this so I might be going about this the wrong way, just using examples I've found and trying to piece together something to work.
Thanks,
-- Jim
<telerik:GridViewDataColumn Header="Products Coverage" DataMemberBinding="{Binding UnderwritingFactor}">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate> <RadioButton GroupName="ProductsCoverage" Content="Yes" IsChecked="{Binding PropertyLiability.HasProductsCoverage, Mode=TwoWay}" IsEnabled="{Binding PropertyLiability.HasFarmLiability, Mode=OneWay}"/> <RadioButton GroupName="ProductsCoverage" Margin="5, 0, 0, 0" Content="No" IsChecked="{Binding PropertyLiability.HasEProductsCoverage, Converter={StaticResource BoolInverseConverter}, Mode=TwoWay}" IsEnabled="{Binding PropertyLiability.HasFarmLiability, Mode=OneWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
Hi,
How can I dismiss the rightclick Context menu by pressing "ESC" key in Treeview? Please provide your inputs.
Thanks,
Subhashini
I'm currently adding print functionality to my WPF application. To do this I'm using the function below which takes in a visual element, scales it to ensure that it will fit on a paper page, then prints using PrintDialog.PrintVisual(...)
private void ScalePrint(Visual visual, string printingTitle = null)
{
System.Windows.FrameworkElement e = visual as System.Windows.FrameworkElement;
if (e == null)
return;
PrintDialog pd = new PrintDialog();
if (pd.ShowDialog() == true)
{
//store original scale
Transform originalScale = e.LayoutTransform;
//get selected printer capabilities
System.Printing.PrintCapabilities capabilities = pd.PrintQueue.GetPrintCapabilities(pd.PrintTicket);
//get scale of the print wrt to screen of WPF visual
double scale = Math.Min(capabilities.PageImageableArea.ExtentWidth / e.ActualWidth, capabilities.PageImageableArea.ExtentHeight /
e.ActualHeight);
//Transform the Visual to scale
e.LayoutTransform = new ScaleTransform(scale, scale);
//get the size of the printer page
System.Windows.Size sz = new System.Windows.Size(capabilities.PageImageableArea.ExtentWidth, capabilities.PageImageableArea.ExtentHeight);
//update the layout of the visual to the printer page size.
e.Measure(sz);
e.Arrange(new System.Windows.Rect(new System.Windows.Point(capabilities.PageImageableArea.OriginWidth, capabilities.PageImageableArea.OriginHeight), sz));
//now print the visual to printer to fit on the one page.
pd.PrintVisual(visual, printingTitle);
//apply the original transform.
e.LayoutTransform = originalScale;
}
}
Do you know of a way to scale the charts to the size of the page correctly for printing, or do I need to use a separate print method. Please note that in many cases the chart will need to be printed along with other controls on the page; there will be very few, if any, instances of a chart being printed on its own.
Thanks for the help.
Andrew.
Helllo, i have a rad-pane that i want edit her pop-up, i want the pop up will have max heigh, and also a border with a curner-radios,
i try do it with the blend' but i can't get the pop-up template to edit it.
here is my code, i want that the right-group pop up will have a maximum heigh and border with a curner-radios.
<telerik:RadPaneGroup x:Name="RightGroup" Style="{DynamicResource RadPaneGroupStyle1}" >
<telerik:RadPane x:Name="propertiesPanel"
Header="Properties"
CanUserClose="False"
CanFloat="False"
CanDockInDocumentHost="False"
ContextMenuTemplate="{x:Null}" >
<Grid>
<ScrollViewer HorizontalScrollBarVisibility="Disabled" CanContentScroll="True" VerticalScrollBarVisibility="Auto">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<ContentPresenter Margin="5,0,3,-3" />
<ListView Grid.Row="1" Margin="3" >
<ListViewItem Content="item1" />
<ListViewItem Content="item2" />
<ListViewItem Content="item3" />
<ListViewItem Content="item4" />
</ListView>
</Grid>
</ScrollViewer>
</Grid>
</telerik:RadPane>
</telerik:RadPaneGroup>