Telerik Forums
UI for WPF Forum
3 answers
243 views
I have a WPF application with a ToolBarTray with several toolbars. I want to allow users to drag them around to re-order them to their liking.

I have gotten as far as capturing the OnDragDropCompleted event (using RadDragDropManager) but cannot figure out how to reorder the toolbars.

I presume I need to remove the toolbars from the toolbartray items collection then add them back in the new order, but need some help.

I am very surprised that this isn't a starndard feature of the ToolbarTray component, as is seems like base functionality to me.

Regards,

Kevin
Tina Stancheva
Telerik team
 answered on 23 Aug 2012
2 answers
168 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
262 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
211 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
107 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
397 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
239 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
70 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
439 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
537 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
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
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
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?