Hi,
I"m working with RadDiagram where I added several RadDiagramContainerShape and RadDiagramShape. The main container is a RadDiagramContainerShape and it is positioned at (0, 0) according to the RadDiagram.
When I click on the top left corner of the main container, at the red dot in the attached image, the button click is (41,39). Then I use PointToClient to get the position in the RadDiagram and I have (35, -40), knowing that it is supposed to be around (0, 0). Then to make sure of this I calculated the PointToScreen using the main container location which is (0, 0). The result was (6, 79), but it is supposed to be around the button click (41,39).
In addition, when I drag and drop shapes to my main container it never goes to the cursor position because all what is mentioned above is not accurate.
Is this normal, and what can I do to fix this?
Thanks in advance for your help!
<
telerik:GridViewDataColumn DataMemberBinding="{Binding PromptID}" Header="Prompts" Width="*" > <telerik:GridViewDataColumn.CellTemplate>
<DataTemplate> <input:RadComboBox x:Name="comboPrompts" IsEditable="True" TextSearchMode="Contains" IsTextSearchEnabled="True" EmptyText="Select"
DisplayMemberPath="CodeAndText"
SelectedValuePath="PromptID"
SelectedValue="{Binding PromptID}"
ItemsSource="{Binding Path=PromptsForStep, Source={StaticResource PromptsSource},Mode=TwoWay}"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<input:RadComboBox x:Name="comboPrompts" TextSearchMode="Contains" IsTextSearchEnabled="True" EmptyText="Select" IsEditable="True"
DisplayMemberPath="CodeAndText" SelectedValuePath="PromptID"
SelectedValue="{Binding PromptID}"
ItemsSource="{Binding Path=PromptsForStep, Source={StaticResource PromptsSource},Mode=TwoWay}"/>
</DataTemplate> </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>
Thanks
Vinotha
Hi,
Is it possible to create Fishbone (cause effect) diagram with telerik diagram control?
Like the image attached.
Best
Delio Tomaz
I started from the example in the demos.
Basically what is happening is that the template items render fine. Just when filtering is enabled everything disappears. Selecting the Item instead of typing causes the value to display the class type, not the TextSearch.TextPath.
What am I missing here?
<
DataTemplate
x:Key
=
"ComboBoxCustomTemplate"
>
<
Grid
Margin
=
"0 3"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
TextBlock
Grid.Row
=
"0"
>
<
Run
Text
=
"{Binding Distributor}"
></
Run
>
<
Run
>(</
Run
>
<
Run
Text
=
"{Binding Country}"
></
Run
>
<
Run
>)</
Run
>
</
TextBlock
>
<
TextBlock
Grid.Row
=
"1"
Foreground
=
"LightGray"
FontSize
=
"10"
Text
=
"{Binding Region}"
/>
</
Grid
>
</
DataTemplate
>
<
telerik:RadComboBox
x:Name
=
"DistributorTextBox"
Grid.Column
=
"1"
Grid.Row
=
"2"
ItemsSource
=
"{Binding DistributorData}"
VerticalAlignment
=
"Center"
EmptyText
=
"Select Distributor"
IsEditable
=
"True"
Cursor
=
"Hand"
telerik:StyleManager.Theme
=
"Windows7"
Height
=
"30"
IsFilteringEnabled
=
"True"
OpenDropDownOnFocus
=
"True"
TextSearchMode
=
"StartsWith"
TextSearch.TextPath
=
"Distributor"
ItemTemplate
=
"{StaticResource ComboBoxCustomTemplate}"
CanAutocompleteSelectItems
=
"False"
/>
I noticed that if I rip out the template, everything works as expected (filtering and selecting).
<
telerik:GridViewDataColumn
DataMemberBinding="{Binding NameToDisplay,
Converter={StaticResource<BR>SimpleLocalizationConverter}}"Width="Auto"><
BR
><
BR
></telerik:GridViewDataColumn
I'm trying to figure out how to "intercept" the SaveCommand for RadRibbonBackstageItem and respond to the event in my MVVM code.
<
telerik:RadRichTextBoxRibbonUI
IsMinimized
=
"True"
Grid.Row
=
"0"
Grid.Column
=
"0"
BackstageClippingElement
=
"{Binding ElementName=gridRadRtbParent}"
DataContext
=
"{Binding Commands, ElementName=ManageLettersRadRTB}"
CollapseThresholdSize
=
"50,50"
Title
=
"Letter"
TitleBarVisibility
=
"Collapsed"
QuickAccessToolBarPosition
=
"BelowRibbon"
ApplicationButtonContent
=
"File"
>
<
telerik:RadRichTextBoxRibbonUI.Resources
>
<
telerik:FontFamiliesProvider
x:Key
=
"FontFamiliesProvider"
/>
</
telerik:RadRichTextBoxRibbonUI.Resources
>
<!-- Menu - File -->
<
telerik:RadRichTextBoxRibbonUI.Backstage
>
<
telerik:RadRibbonBackstage
>
<
telerik:RadRibbonBackstageItem
Header
=
"New"
Icon
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/new.png"
IsSelectable
=
"false"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding NewDocumentCommand}"
/>
<
telerik:RadRibbonBackstageItem
Header
=
"Open"
Icon
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/open.png"
IsSelectable
=
"false"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding OpenDocumentCommand}"
/>
<
telerik:RadRibbonBackstageItem
x:Name
=
"FileSave"
Header
=
"Save"
Icon
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/save.png"
IsSelectable
=
"false"
telerik:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding SaveCommand}"
>
I tried to use SL5 interactivity but in order to make that work I had remove
"DataContext="{Binding Commands, ElementName=ManageLettersRadRTB}"
from RadRichTextBoxRibbonUI which basically disables all the built in functionality ... not what I want.
My goal is to respond with my own code when File - Save (which are RadRibbonBackstageItem) is selected from the RadRichTextBoxRibbonUI and not use the default controls Save process.
Is this possible? If so, could you provide any hints/sample.
Cheers, Rob.
<
telerik:RadGridView
x:Name
=
"ContentItemsGrid"
ColumnWidth
=
"Auto"
AutoExpandGroups
=
"True"
AutoGenerateColumns
=
"False"
FrozenColumnCount
=
"2"
RowIndicatorVisibility
=
"Collapsed"
GridLinesVisibility
=
"Horizontal"
SelectionMode
=
"Extended"
RowDetailsVisibilityMode
=
"Visible"
Loaded
=
"ContentItemsGrid_Loaded"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewSelectColumn
/>
<
telerik:GridViewImageColumn
DataMemberBinding
=
"{Binding Image}"
/>
<
telerik:GridViewImageColumn
DataMemberBinding
=
"{Binding ContentStateIcon}"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Caption}"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Created, StringFormat=d}"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding CreatedUser}"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding LastChanged, StringFormat=d}"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ChangedUser}"
/>
</
telerik:RadGridView.Columns
>
<
telerik:RadGridView.RowDetailsStyle
>
<
Style
TargetType
=
"telerik:DetailsPresenter"
>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Stretch"
/>
</
Style
>
</
telerik:RadGridView.RowDetailsStyle
>
<
telerik:RadGridView.RowDetailsTemplate
>
<
DataTemplate
>
<
Grid
Background
=
"White"
>
<
TextBlock
Text
=
"{Binding Preview}"
Margin
=
"30 0 5 0"
TextTrimming
=
"WordEllipsis"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:RadGridView.RowDetailsTemplate
>
</
telerik:RadGridView
>