Telerik Forums
UI for WPF Forum
2 answers
173 views
Hi,

i want to get the coressponding GridViewRow when i did a DoubleClick insinde RadGridView.
Insinde my RadGridView's MouseDoubleClick event handler i have the following code

var s = e.OriginalSource as FrameworkElement;

var parentRow = s.ParentOfType<GridViewRow>();

if (parentRow != null)

{

     MyDataItem item = (MyDataItem)parentRow.Item;

}


parentRow is always null.
I thought ParentOfType<T> walks up the visual tree until it finds a type of T regardless of how many
levels it has to walk up !?

Did i get something wrong ?
I am using WPF Q2 2012 controls.

Kind Regards
Kim
Kim Bouchard
Top achievements
Rank 1
 answered on 23 Aug 2012
5 answers
268 views
I am trying to build a real time data visualizer using telerik radchart. However, more often than not the first few minutes or so the data source does not have any data (thus the data points on the chart are 0s). I want the users to be able to see the 0 values as a line instead of just an empty graph with moving X axis. Any pointers on how I can achieve this?

Much appreciated.
danny
Top achievements
Rank 1
 answered on 23 Aug 2012
5 answers
216 views
Very recently i purchased telerik product, and needs to implement 3D pie chart in WPF, looking for a sample code.
Zhang
Top achievements
Rank 1
 answered on 23 Aug 2012
0 answers
113 views
Hello,

for my WPF application I need a DataGrid which realizes real Data Virtualization and not only UI Virtualization.

For the first time I've read your documentation. For Data Virtualization you are using VirtualQueryableCollectionView.

Look at: http://www.telerik.com/help/wpf/gridview-populating-datavirtualization.html

In my application the data comes from a MS SQL Server Database. What I need is to load only the data

from the database into the memory which are displayed in the DataGrid. If I'm scrolling in the DataGrid

the old data should be removed from the memory. If scrolling will be stopped only the data should be

in the memory which are displayed in the DataGrid.

Is that possible with your Data Virtualization ?

If I'm using your Data Virtualization does your built-in sorting, built-in filtering, built-in grouping

work without any limitations ? For example does your built-in filtering work on the whole data (for example a table

of my database) without loading all the data into the memory ?

Is it possible to edit data in the DataGrid or to add/remove a data row in the DataGrid if I'm using your Data Virtualization

Thank you for your answers.

Best regards,

Florian Schwarz





Florian
Top achievements
Rank 1
 asked on 23 Aug 2012
3 answers
402 views
Hi,

I am having a requirement to make something like stacked bar. Visually it should do this:

- bar should have approx 20 pixels height
- it should be horizontal
- it should behave like with CombineMode="Stack100 - meaning that total of all items value is 100% - bar occupies always the whole width available.
- each "slice" on the bar should be of predefined colors
 - there can be 5 types of slices (colors), but there can be many appearance of one type

Lets assume that We have next entity

public class ChartEntity
{
    public EntityType Type {get;set;}
    public string Value {get;set;}
}

and there is some data

List<ChartEntity> list = new ChartEntityList();
list.Add(new ChartEntity { Type = EntityType.TypeA, Value = 25 } );
list.Add(new ChartEntity { Type = EntityType.TypeB, Value = 35 } );
list.Add(new ChartEntity { Type = EntityType.TypeC, Value = 15 } );
list.Add(new ChartEntity { Type = EntityType.TypeA, Value = 9 } );
list.Add(new ChartEntity { Type = EntityType.TypeD, Value = 22 } );
list.Add(new ChartEntity { Type = EntityType.TypeE, Value = 37 } );
list.Add(new ChartEntity { Type = EntityType.TypeB, Value = 19 } );
list.Add(new ChartEntity { Type = EntityType.TypeC, Value = 5 } );

And lets define colors:

EntityType.TypeA = Yellow
EntityType.TypeB = Green
EntityType.TypeC = Blue
EntityType.TypeD = Red
EntityType.TypeE = Orange

Sine the total value is 25+35+15+9+22+37+19+5=167, the output should be something like this:

25/167 Yellow, 35/167 Green, 15/167 Blue, 9/167 Yellow, 22/167 Red, 37/167 Orange, 19/167 Green, 5/167 Blue

I dont need any legends, axes, or anything extra, all I need is horizontal bar. Is ChartView the way to go here. or there is a better control for this?

Regards,
Goran
Nikolay
Telerik team
 answered on 23 Aug 2012
0 answers
245 views
Hi, 

I´m working with the radpropertygrid control in a MVVM project, however my project has a viewModel that calls PropertyViewModel and also a View that contains the RadpropertyGrid(UserControl), and also a ShellView that contains moreViews including a TreeViewModel, how can I do to fire the propertygrid properties from a different View.

thanks in advance
Carlos Andres
Top achievements
Rank 1
 asked on 22 Aug 2012
1 answer
75 views
I'm trying to build automated tests for an application that has only bits of it implemented in Silverlight. When I connect to the path of the application it sends this error: "It's not a valid Wpf Application!" 

Does this mean that I can't record any of the test steps for this program?
Alex
Top achievements
Rank 1
 answered on 22 Aug 2012
2 answers
450 views
I am using both the RadTreeListView and the RadGridView controls and I am very happy with their performance.  However, there is a cosmetic effect I can't figure out how to remove.

I have RowIndicatorVisibility="Collapsed" and RowDetailsVisibilityMode="Collapsed" in these controls. Even with this portion of the control out of sight, there is still a drop shadow effect visible on the left edge of the grid's view. How do I get rid of this drop shadow?

Note: the attached screen shot illustrates the issue.

Thanks for your time. 
Don
Top achievements
Rank 1
 answered on 22 Aug 2012
1 answer
539 views
Hi,



I'm using the WPF RadGridView in an MVVM architecture.



My grid is sorted using a SortDescriptor defined on an "Order" property in XAML. The user is able to change the order using different ContextMenu Buttons. When I change the Order Property of the items in my ItemsSource, the changes are visible in the grid, but the sorting is not updated. Which means, the items are sorted in a wrong order.



How do I refresh the ItemsSource in my ViewModel? I do not want to aquire a reference to my RadGridView and call the Rebind() method.



Greets
Dimitrina
Telerik team
 answered on 22 Aug 2012
5 answers
266 views
Zooming and scrolling on the x-axis seems to have some issues:

  • The point on the far left stays in view. I would expect it to disappear
  • No line is drawn between the last point in view on the right, and the first point outside the viewable range on the right
  • When I zoom in between two data point, the graph is replaced with the text "No Data Series"
  • Scrolling sometimes doesn't result in an updated graph

The .avi file linked here shows me using the mouse to drag the scrollbar around and dragging the scrollbar handles to zoom in and out:
telerikchartzoomscrollbugs.avi

My xaml is simply:

<telerikChart:RadChart.DefaultView>
                  <telerikCharting:ChartDefaultView>
                     <telerikCharting:ChartDefaultView.ChartArea>
                        <telerikCharting:ChartArea>
                           <telerikCharting:ChartArea.ZoomScrollSettingsX>
                              <telerikCharting:ZoomScrollSettings ScrollMode="ScrollAndZoom"/>
                           </telerikCharting:ChartArea.ZoomScrollSettingsX>
                        </telerikCharting:ChartArea>
                     </telerikCharting:ChartDefaultView.ChartArea>
                  </telerikCharting:ChartDefaultView>
               </telerikChart:RadChart.DefaultView>


[edit]
forgot to mention the version I'm using: 2010.3.1314
[/edit]
Ves
Telerik team
 answered on 22 Aug 2012
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?