Telerik Forums
UI for WPF Forum
4 answers
272 views
Hi,
 I have downloaded the beta version of the WPF RadMap specifically to look at the shape file importing.
I have used your examples to render your example .shp files

ThematicLayer.Reader =

 

new MapShapeReader();

 

ThematicLayer.Reader.ReadCompleted += MapShapeReader_ReadCompleted;

ThematicLayer.Reader.Source =

 

new Uri(string.Format(ShapeFilePath, new object[] { layerName, ShapeExtension }), UriKind.Absolute);

 

ThematicLayer.Reader.DataSource =

 

new Uri(string.Format(ShapeFilePath, new object[] { layerName, DbfExtension }), UriKind.Absolute);

 

ThematicLayer.Reader.SourceType =

 

ShapeSourceType.ShapeFile;

 


this works fine, but when I use some shape files that I have bought I get an error when the shapes are drawn on the canvas

  Message=Width and Height must be non-negative.
  Source=WindowsBase
  StackTrace:
       at System.Windows.Size..ctor(Double width, Double height)
       at Telerik.Windows.Controls.Map.MapCanvas.SetItemPosition(MapCanvasItem item, Point point) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q3\Sources\Development\Controls\DataVisualization\Map\Layers\MapCanvas.cs:line 371
       at Telerik.Windows.Controls.Map.MapCanvas.ArrangeItem(MapCanvasItem item) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q3\Sources\Development\Controls\DataVisualization\Map\Layers\MapCanvas.cs:line 696
       at Telerik.Windows.Controls.Map.MapCanvas.ArrangeOverride(Size finalSize) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q3\Sources\Development\Controls\DataVisualization\Map\Layers\MapCanvas.cs:line 387
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
       at System.Windows.UIElement.Arrange(Rect finalRect)
       at System.Windows.ContextLayoutManager.UpdateLayout()

If I load my shape files into MapWindowGIS, they require 3 files, the .shp, the .dbf and the .shx.  I can't see where to specify the location of the .shx file in the MapShapeReader?

Am I missing something?

Thanks
Simon

Simon
Top achievements
Rank 1
 answered on 27 Oct 2010
4 answers
271 views
Hi,

I would like to know how we can increase the node spacing. Any sample or pointer would be really appreciated.

Warm Regards
Madhu
Madhu
Top achievements
Rank 1
 answered on 27 Oct 2010
7 answers
464 views
Hi

When a RadTreeViewItem is selected and the focus is on another element, a black dotted border appears on the focused element.
This looks like the image shown here:
http://blogs.windowsclient.net/anshulee/archive/2008/05/16/removing-the-dotted-border-around-selected-wpf-ui-element.aspx

To remove it using the vanilla WPF elements, I had to use something like this:
<Style TargetType="{x:Type TreeViewItem}"> 
   
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
</Style>

So I tried this with RadTreeViewItem i.e.
<Style TargetType="{x:Type telerik:RadTreeViewItem}"> 
   
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
</Style>

but this does not work. Do you have any workarounds for not showing the dotted border?

Many thanks



Madhu
Top achievements
Rank 1
 answered on 27 Oct 2010
1 answer
85 views
I need to convert some cells into GridViewComboBoxColumn only while inserting.  I tried during BeginningEdit event but was unsuccessful.  They need to be readonly during edit.

During AutoGeneratingColumns event they can be converted fine but that causes the column to be a combobox during edit also.  Existing records might have values which are not valid for the combobox.  So, some records do not display existing values.  Also data is generated dynamically so I can't use templates.  Any suggestions?
Maya
Telerik team
 answered on 27 Oct 2010
3 answers
138 views
Hello Telerik Team,

I am currently implementing a WPF RadChart and I am very impressed, but I have one slight problem.

I am using multiple Y-Axis, up to five, and I need the zooming an scrolling feature, as I have to visualize long term data.
I am currently facing two problems:

1) Even when completely zoomed out, I have Scrollbars drawn at each axis, minimzing the screen region for the graph.

2) Every Y-Axis draws a scrollbar. As they all are synchronized anyway, I would like to hide the scrollbards of the additional Y Axis, as this also reduces the graph screen region.

Currently, I am loosing a huge amount of screen real estate to the scrollbars. Is there any way to control the visibility of the bars at each axis? I couldn't find something in the documentation about this.

best regards

Ulrik
Evgeni "Zammy" Petrov
Telerik team
 answered on 27 Oct 2010
1 answer
97 views
I have two gridviews I want to drag and drop rows from one to the other. I cannot get any of the drag event to fire when I select a row and drag with the mouse. The only ones that seem to fire are the DragQuery and DragInfo, neither of which will give me drag effects. All the sample projects provided are for out of date code and need to have a half dozed helper classes. Are there no simple methods to implement this with the new Radgrid?
Tsvyatko
Telerik team
 answered on 27 Oct 2010
5 answers
223 views

Hello

1. Can I add Aggregate Function between the rows without using groping?

2. Can I show column footers for the gird not for the columns with custom function?

Best regards

Ehud

Maya
Telerik team
 answered on 27 Oct 2010
1 answer
58 views
Hello,

When I use DataSeries.AddRange method,a exception occurs:

Object reference not set to an instance of an object.
at Telerik.Windows.Controls.Charting.DataSeries.InsertItem(Int32 index, DataPoint item) in c:\Builds\WPF_Scrum\HotFix_2010_Q2\Sources\Development\Controls\Chart\Chart\Data\DataSeries.cs:line 214

My code snap is followed:
DataSeries barSeries = new DataSeries();
var maxKey = features.Max(x => x.Key);
ObservableCollection<DataPoint> dataPoints=new ObservableCollection<DataPoint>();
Parallel.For(1, maxKey, i =>
             {
                 DataPoint dataPoint;
                 if (features.ContainsKey(i))
                 {
                      int xLabel = i*_mStatisticsStep;
                      dataPoint = new DataPoint(xLabel, features[i])
                                   {XCategory = xLabel.ToString()};
                  }
                  else
                  {
                       int xLabel = i*_mStatisticsStep;
                       dataPoint = new DataPoint(xLabel, 0)
                                   {XCategory = xLabel.ToString()};
 
                  }
                  dataPoints.Add(dataPoint);
                  });
barSeries.AddRange(dataPoints);
Jerry
Top achievements
Rank 1
 answered on 27 Oct 2010
1 answer
110 views
Hi,
 i want to create a drill down report with Object data source not with SqlDataSource.
i simply need to drill through child collections. im having a master collection and and want to drill through in each detail collection.
\
http://www.telerik.com/help/reporting/designing-reports-interactivity-how-to-add-drillthrough-action.html
in reference to mentioned link i m able to link the master detail but paramter value isnt set when my detailed report get open.
Steve
Telerik team
 answered on 26 Oct 2010
2 answers
61 views
I havea TileView bound to a RadObservableCollection which contains a collection of image filenames.   The collection can contain duplicate fienames, but the TileView only shows one instance of each image.  Is it possible to have the TileView show all instances of all images?   Thanks, Todd.

										
Kevin
Top achievements
Rank 1
 answered on 26 Oct 2010
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?