Telerik Forums
UI for WPF Forum
1 answer
180 views

Good afternoon. How can I save the geometry of the selected objects to RadDiagram in xaml file? Now I take the RadDiagramShape geometry, convert it to a string and written in the xaml file. But when I try the reverse conversion, an error is thrown

1) the RadDiagramShape declare

<telerik:RadDiagramShape x:Name="ConditionShape"
 IsEditable="False"
AllowCopy="False" AllowCut="False" AllowDelete="False" AllowDrop="False" AllowPaste="True" Background="Azure" 
Geometry="{telerik:CommonShape ShapeType=RectangleShape }" StrokeThickness="1" Height="100" Width="100" RenderTransformOrigin="0.5,0.5" Position="180,50"/>

2) the entry in the xaml file

Init.overview.LibraryItems.FunctionItem[end].Data = Convert.ToString(ShapeFactory.GetShapeGeometry(FlowChartShapeType.DecisionShape));
 FunctionLibrary Done = new FunctionLibrary();
            Done = Init.overview;
            XmlSerializer xml = new XmlSerializer(typeof(FunctionLibrary));
            file.Close();
            using (var fStream = new FileStream(path: "./****.xml", mode: FileMode.Create, access: FileAccess.Write, share: FileShare.ReadWrite))
            {
                xml.Serialize(fStream, Done);
                fStream.Close();
            }
3) the result in a file
      <Data>M56;0,5L111,5;37,5 56;74,5 0,5;37,5z</Data>

4)  and the inverse transform

var converter = new System.Windows.Media.GeometryConverter();
var data = (Geometry) converter.ConvertFromString(ListCode[i].Data);
ConditionShape.Geometry = data;

this line is not recognized as geometry. how to convert in the required format?

Martin Ivanov
Telerik team
 answered on 01 Nov 2016
4 answers
213 views
Hi

 am creating a Line series chat with RadCartesianChart in WPF application.
i have verified the samples in telerik chart control, i didn't find any  example for the creation of multiple x axis with constant y axis .

Can u please give a sample for the creation of dynamic creation of "X axis".

i have attached an image for "example of chart look like"

Thanks in advance!!.:)
Martin Ivanov
Telerik team
 answered on 01 Nov 2016
4 answers
497 views

Hi,

I'm trying to get my UI framework built and I'm having some difficulty getting the default state of things working correctly.  I attached two photos, one is the default view that my current XAML gives me and the second picture is how I want it to be displayed by default.  Essentially, I would like a new RadPane or RadDocumentPane to display as a Tabbed Document by default.  This means having each pane have it's own "window", not tabs stacked up in the same window.  Hopefully that makes sense.

If you need any other information, please let me know.

Kindest Regards,

Craig

My XAML:

<TabControl.ContentTemplate>
<DataTemplate>
<!--<telerik:RadDocking>
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerikHelpers:PyrixRadPaneGroup PanesSource="{Binding DockingManagerVM.DockingWindowVMs}"
PanesTemplateSelector="{StaticResource DockingTemplateSelector}" />
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
</telerik:RadDocking>-->
    <telerik:RadDocking x:Name="radDocking1">
<telerik:RadSplitContainer Height="200" InitialPosition="DockedTop" Orientation="Horizontal">
<telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="200, 200">
<telerik:RadPane Header="pane" />
</telerik:RadPaneGroup>
<telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="400, 200">
<telerik:RadDocumentPane Header="pane" />
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
</DataTemplate>
</TabControl.ContentTemplate>

Craig
Top achievements
Rank 1
 answered on 31 Oct 2016
1 answer
241 views

Hi,

This behavior is not the same as Microsoft's TreeViewItem.

If I host let's say multiple RadTreeView in a Docking system, each in a different RadPanel where each TreeView is contained in a UserControl with FocusManager.IsFocusScope = true (this is important for proper RoutedCommand routing), then as I select a node in each treeview and activate different panels, the highlighted "focused" state stays on, they don't turn to gray. I find this very confusing in the UI because now you don't know which treeview has actual focus (other than seeing which panel is active.) Press an arrow key, hmm, I wonder which treeview's will act upon it. :) We also have a mixture of WPF controls and your Rad controls, so they are dealing with lost focus with selection in inconsistent ways.

(This actually occurs for all your controls, like RadGridView and RadPropertyGrid, but I'm picking on the radtreeview for now.)

The main question is: Was this intended behavior? If yes, then I guess I'll move on, sadly (maybe change your source code). I might then ask why you wanted to deviate from Microsoft's default behavior, since generally I'm seeing an effort in most of your controls to try to emulate the WPF controls pretty closely (at least the simple ones :)). Or why you didn't want to provide a property to choose between this behavior or the default (Microsoft) way.

For tech talk, if you use ILSpy and look at WPF's TreeViewItem.ChangeVisualState(), you'll see that Microsoft is looking at IsKeyboardFocused to determine whether to highlight or gray out a treeviewitem. In your RadTreeViewItem.ChangeVisualState(), you are checking IsFocused, which is logical focus, not keyboard focus. That's why all my treeviews show a highlighted blue selected node at the same time.

 

Martin Ivanov
Telerik team
 answered on 31 Oct 2016
1 answer
201 views

Hello,

I am using RadGridView in my WPF application along with IDataErrorInfo for Validation.

 

For every column in the grid, I am currently setting ValidatesOnDataErrors = "InViewMode". In case of validation errors, the cells with errors get a red validation border and the whole row gets a red background (as shown in the attachment).

 

My requirement is such that I want to remove the red background of the row and show one red validation border on the whole row instead of separate errors on the cells. I also want to remove the red icon from the row (as shown in attachment). So whenever there is an error in any cell, the whole row should get a validation border, and not the individual cells. Is there a way to do this?

Muhammad Ummar
Top achievements
Rank 1
 answered on 31 Oct 2016
1 answer
139 views

When i want to show a telerik report in my application, i get the follow error in the report. 

 

"An error has ocurred while processing Table 'table1'

The assembly xxx is not permitted to be used by an ObjectDataSource component. Please include it in an AssemblyReferences element in the Telerik.Reporting configurarion section of your applicacion configuration file.

 

i included a configuration file, with my string connections and i seen the follow article :

http://www.telerik.com/forums/the-assembly-xxx-is-not-permitted-to-be-used-in-an-objectdatasource

http://www.telerik.com/support/kb/reporting/details/telerik-reporting-r3-2016---upgrade-issues-with-objectdatasource-component

 

 

but, i don't to solve this problem.

Yana
Telerik team
 answered on 31 Oct 2016
1 answer
115 views

This page (http://docs.telerik.com/devtools/wpf/api/html/t_telerik_windows_controls_data_propertygrid_editing_propertygridpreparededitoreventhandler.htm) lists PropertyGridPreparedEditorEventArgs as the type that the RadPropertyGrid PreparedEditor event should receive.  That type doesn't exist (version 2016.1.112.45).  If I try to just declare EventArgs, it blows up at run time.

How do I use this event?

Stefan
Telerik team
 answered on 31 Oct 2016
1 answer
241 views

I've started with your excellent RadSpreadsheet "First Look" SDK example so I have a dialog that looks a lot like Excel. I can fill in my data nicely.

But what I'd like to do is to add buttons to the spreadsheet. Clicking those buttons would open small modal forms for calculating data which I'd use to update the sheet. I do not see that I can put a button into a cell. Is it possible to put a button onto the spreadsheet?

Thanks.

-reilly.

 

Deyan
Telerik team
 answered on 31 Oct 2016
23 answers
314 views
How to add Miximize/Restore button to RadDocking (or to RadSplitContainer) in addition to Close button that is already there? In particularly, it helps set the behavior of the RadDocking  (or RadSplitContainer) similar to the behavior of a Window instance of MS Windows OS.
Dmitry
Top achievements
Rank 1
 answered on 31 Oct 2016
2 answers
395 views
After installing (with a Setup) the software at the customer Computer, the following error message will be shown:

System.Windows.Markup.XamlParseException was unhandled
Message: An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll

Additional information: Zeilennummer "4" und Zeilenposition "17" von "Durch den Aufruf des Konstruktors für Typ "MyNamesspace.MainWindow", der den angegebenen Bindungseinschränkungen entspricht, wurde eine Ausnahme ausgelöst.".

The MainWindow.xaml (Position 4, 17):

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

On the development Computer (where Telerik installed), everything works.

How can I install application at the customer Computer?

Kalin
Telerik team
 answered on 31 Oct 2016
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?