Telerik Forums
UI for WPF Forum
4 answers
340 views
WPF, VS 2010

I have a treeview bound to a collection of objects that implement INotifyPropertyChanged.  The AssociatedOfferings child collection is a collection of the same type of object.  When I change a value of one of the objects from the ViewModel the change is not reflected in the TreeView.  My View is as follows:

<HierarchicalDataTemplate x:Key="TopItemTemplate" ItemsSource="{Binding AssociatedOfferings}">
      <StackPanel Orientation="Horizontal">
        <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding IsEnabled}"   />
        <TextBlock Text="{Binding Name}" Margin="10,0,0,0" />
      </StackPanel>
    </HierarchicalDataTemplate>
  
<telerik:RadTreeView ItemsSource="{Binding Items}" DataContext="{Binding}" ItemTemplate="{DynamicResource TopItemTemplate}" />

Then in the ViewModel if I take one of the objects and set its IsSelected property to True, or the Name to something else, the change is not reflected in the View.
Betsy
Top achievements
Rank 1
 answered on 27 Oct 2010
4 answers
279 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
284 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
489 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
92 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
154 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
118 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
238 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
79 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
139 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
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?