Telerik Forums
UI for WPF Forum
4 answers
196 views
What's the easiest way to style the border of the WPF DropDownButton popup?
Hans
Top achievements
Rank 2
 answered on 23 Jan 2015
11 answers
403 views

I was reading this thread:

http://www.telerik.com/community/forums/wpf/gridview/column-chooser.aspx

Can you please post a working wpf example since I cannot get the code to compile when I replace the rad context menu with the standard windows context menu. Can you please post a working copy using the wpf rad grid view for all of us to use?

Bill

Stefan
Telerik team
 answered on 23 Jan 2015
2 answers
277 views
I have a RadGridView with MultiSelect turned on. When this Grid is instantiated, I need to select rows that are determined from a List passed into the ViewModel. Any ideas on how to do this?  The "SelectedItems" property of the RadGridView is readonly and cannot be set via markup.

Thank you!
Steve
Top achievements
Rank 1
 answered on 23 Jan 2015
3 answers
321 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
103 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
180 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
121 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
81 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
99 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
157 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?