Telerik Forums
UI for WPF Forum
3 answers
370 views
Dear sir,

I was wondering how to draw orthogonal line connection on a diagram like visio.
RadDiagram provide three types of connection( polyline, beizer, spline.), but I couldn't find a way to draw orthogonal line.
I have looked over Routing service in the manual, but I couldn't understand it.

I need this function because my application is similar to MS visio.

Could you show me a example for this?

Thank you.
Petar Mladenov
Telerik team
 answered on 23 Jan 2015
6 answers
129 views
I'm experimenting with AsyncShapeFileReader using the provided example. It works as expected with AsyncShapeFileReader's Source and DataSource properties set. The only thing I wish to change in the example is to use AsyncReaderSourceCollection to asyncronously load multiple shape files and benefit UI Virtualization.

01.<telerik:VisualizationLayer.VirtualizationSource>
02.    <telerik:MapShapeDataVirtualizationSource>
03.        <telerik:MapShapeDataVirtualizationSource.Reader>
04.            <telerik:AsyncShapeFileReader x:Name="mapShapeDataReader">
05.                <telerik:AsyncReaderSourceCollection>
06.                    <telerik:AsyncReaderSource Source="/MyProject;component/Resources/myshape1.shp" DataSource="/MyProject;component/Resources/myshape1.dbf" />
07.                    <telerik:AsyncReaderSource Source="/MyProject;component/Resources/myshape2.shp" DataSource="/MyProject;component/Resources/myshape2.dbf" />
08.                </telerik:AsyncReaderSourceCollection>
09.            </telerik:AsyncShapeFileReader>
10.        </telerik:MapShapeDataVirtualizationSource.Reader>
11.    </telerik:MapShapeDataVirtualizationSource>
12.</telerik:VisualizationLayer.VirtualizationSource>


Visualization layer displays only the last AsyncReaderSource (myshape2.shp), although ReadShapeDataCompleted is called twice without exception. I wonder is it possible to load multiple shapes asynchronously and benefit Items Virtualization?

Petar Mladenov
Telerik team
 answered on 23 Jan 2015
6 answers
213 views
Hi,

I want to lock my merge Fields, but fields get in word docx file and i get with regex in ExpandoObject. How can i lock my fields?
burk
Top achievements
Rank 1
 answered on 23 Jan 2015
1 answer
154 views
I am trying to setup the Executive Dashboard to run on a local machine as a starting point so I can move into developing it to work with our own DB. I've changed the app.config to look at the localhost/webservice (e.g. http://localhost:3931/AWDWDataService.svc/) and changed the web.config to point to a local Adventureworks labs DB.

I updated the model from the local database which required an upgrade to Entity Frame Work 6, but now it's giving the error:

The type 'ExecutiveDashboard.Web.AdventureWorksDWAZ2008R2XLabsEntities' cannot be used as type parameter 'TContext' in the generic type or method 'System.ServiceModel.DomainServices.EntityFramework.LinqToEntitiesDomainService<TContext>'. There is no implicit reference conversion from 'ExecutiveDashboard.Web.AdventureWorksDWAZ2008R2XLabsEntities' to 'System.Data.Objects.ObjectContext'

Has anyone got an idea of how to fix this or managed to get it running locally?
Peshito
Telerik team
 answered on 23 Jan 2015
1 answer
105 views
Please see attach file.
I do not know how to change from '10 /10/81 ' to '10/10/1981'.
It shouldn't be '10/10/2081'
please guide me
thanks.

Kalin
Telerik team
 answered on 23 Jan 2015
3 answers
131 views
Our clients typically import data into our application using known coordinate systems, such as UTM. However, now we need to add support for unknown, arbitrary coordinate systems (we won't show an underlying basemap). I am struggling with this. My understanding is I should use an EmptyProvider and the EPSG900913Projection. I have several issues, but the first is the Center. In your Mercator (meters) example, the Center is set using meters:

Center="296247.258782387,426130.145788193"

However, when I create a blank project and set the Center using meters, the value contained in the center is still in decimal degrees:

moMap.Center = New Location(5643603, 2559429)

Printing moMap.Center shows the following:
{85.05112878,180}
    CalculationMethod: ""
    Description: ""
    Empty: {-Infinity,-Infinity}
    IsEmpty: False
    Latitude: 85.05112878
    Longitude: 180.0

What am I doing wrong? Once working, will all the other map methods and properties return values in meters instead of degrees, too?
Petar Mladenov
Telerik team
 answered on 23 Jan 2015
1 answer
188 views
Hi There

1. With InformationLayer Map Shape, MapPolyLine i was able to set zoom range value and style dynamically, like code below, looking for equivalent code for PolyLineData.

This works;
MapPolyline polylinedata = new MapPolyline()            
            polylinedata.SetValue(MapLayer.ZoomRangeProperty, new ZoomRange(2, 9));
            polylinedata.SetValue(MapLayer.BaseZoomLevelProperty, 5);
            polylinedata.SetValue(MapLayer.MaxScaleProperty, 5);
            polyline.Style = this.Resources["selectedPolyLineStyle"] as Style;   

Code below doesn't work;
PolylineData polylinedata = new PolylineData();
           polylinedata.SetValue(MapLayer.ZoomRangeProperty, new ZoomRange(2, 9));
           polylinedata.SetValue(MapLayer.BaseZoomLevelProperty, 5);
           polylinedata.SetValue(MapLayer.MaxScaleProperty, 5);
           polyline.Style = this.Resources["selectedPolyLineStyle"] as Style;

2. I have some 3K PolylineData framework elements which I'm creating dynamically live above , adding each of them to VirtualizationLayer in loop.This is quick but the because of 3K pPolylineData the Zoom and Panning performance is degraded.Kindly suggest the right approach.

Thanks in Anticipation

Thanks in Anticipation
Petar Mladenov
Telerik team
 answered on 23 Jan 2015
1 answer
120 views
I'm currently using the RadDiagram with MVVM. Inside my SerializableGraphSourceBase I have the overridden SerializeNode. When Saving the xml of my diagram this works as expected for all my basic properties such as

public string Header { get; set; }

I'm wondering if there is a way to do this for a property that is a list or collection

public ObservableCollection<DiagramNodeProperty> DiagramNodeProperties { get; set; }

Any help would be greatly appreciated.
Pavel R. Pavlov
Telerik team
 answered on 23 Jan 2015
2 answers
113 views
Hi.

I have updated the latest version of the telerik dlls for schedule view and the drag/drop behavior stopped working. I do not have this problem for the RadListBox, all works as it previously did.

the setup is this:
<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)
        {
            //...
        }
}

On the Appointment template I used                 telerik:DragDropManager.AllowDrag="True"

Everything was working ok before I updated the dlls , now none of the override methods in the ScheduleViewDragDropBehavior  are hit. 

Nasko
Telerik team
 answered on 22 Jan 2015
9 answers
138 views
My WPF app allows users to select between 4 accent colors. When they do, I update the Office2013Palette colors accordingly. On my own development machine this is working great: as I change the Office2013Palette all the colors in the app are updated in real-time. But when I deploy the application on Citrix the colors do not change immediately. Instead, it seems that the controls are only updated as they are reloaded/redrawn, for example, when switching between pages in the application.

Is there a way to perhaps force an update of the colors?
Sia
Telerik team
 answered on 22 Jan 2015
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
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?