Telerik Forums
UI for WPF Forum
3 answers
209 views
Hi,

I am using the Virtual Queryable Collection View with the telerik Grid Views. When I scroll using the Mouse Wheel and the Scroll Direction is Down it calls the Items Loading event which lets me fetch the next set of view models; However when the scroll direction is UP using the Mouse Wheel I would like to load the set of View Models which are above the current item. This will avoid firing the Items Loading event for every single Item when scrolling UP using the Mouse Wheel.


Please refer the image file attached for more details.

Thanks,
PD.




Dimitrina
Telerik team
 answered on 30 Dec 2013
6 answers
331 views
I am somewhat new to WPF and styling, but I understand most of the basics.

I have managed to modify the expander as well as a few other items.

But one simple thing has escaped me - styling the foreground of the RadTreeViewItem.

This:
<Style TargetType="{x:Type telerik:RadTreeViewItem}">
   <Setter Property="Foreground" Value="#ffff0000"/>
</Style>
is not only not setting the font color, but no items show up.

Any help?  I'm sure it's simple.

Also, I second the suggestion for more examples and perhaps more documentation.

This is my favorite page: http://www.telerik.com/help/wpf/radtreeview-structure.html

Thanks!


Tak
Top achievements
Rank 1
 answered on 30 Dec 2013
5 answers
1.0K+ views
Running the latest 2013 version.

I read this:
http://www.telerik.com/help/wpf/radgridview-performance-tips-tricks.html

And it makes sense that a large dataset should be time consuming...
"Binding large dataset to the RadGridView is a time consuming task that can at times test the user’s patience."

I'm binding to 10 items and it takes 62 milliseconds (measured from DataLoading to DataLoaded). However, the control takes around a second to display the items. This makes no sense at all. I have bound to a simple data item with simple dependency properties:

<Window x:Class="Vironova.MiniTem.Views.MyTableWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        Title="MyTableWindow" Height="700" Width="300">
        <telerik:RadGridView x:Name="radGridView" Width="Auto" Height="Auto" AutoGenerateColumns="False" ItemsSource="{Binding MyViewModel.MyObjects}" SelectionMode="Multiple" DataLoadMode="Asynchronous">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding MyType}" Header="Type"/>
                <telerik:GridViewDataColumn DataFormatString="F1" DataMemberBinding="{Binding Value}" Header="Value"/>
            </telerik:RadGridView.Columns>   
        </telerik:RadGridView>
</Window>

MyObjects is an ObservableCollection<>.

Also, when scrolling this list of items (setting the height to a lower value) it lags.

What could be causing this?

UPDATE:
I just realized that all filter functions seem to clear the list. If I sort on the first column, the items go away. I then have to click two times until the sort arrow disappears - then the items are re-populated (after a second of wait).
Dimitrina
Telerik team
 answered on 30 Dec 2013
3 answers
234 views
I was trying to get the "Databinding" tab control demo working that allows you to dynamically add and remove tabs, and I don't see how to set the content for the currently selected tab. This is what I would like to do.

I have a search button. When I press the search button, I want to be able to dynamically add content to the selected tab. The content should remain when the user switches tabs as well(I am assuming for this I just need to set the IsContentPerserved flag). I would like to be able to do this in the code-behind, as I am pulling data with entity framework to populate a user control, which I will then put in the selected tab. How would I do this? Thank you.
Pavel R. Pavlov
Telerik team
 answered on 27 Dec 2013
2 answers
219 views
Hi.

I'm struggling to fit the PivotGrid to my use case and can't seem to find any relevant example.
Basically, I have two group levels, let's say Product Category (first level) and then Product Name (second level, with each category containing one or more products). The Product Sale Amount is the numeric value I need to group on (Sum). The columns of the pivot will be the sale dates, in months. The problem is that products could be in different currencies, but each product is always in the same currency.
Would it be possible to have the Level 2 as "Product Name" + "Currency", as two adjacent columns? I can get the currency as a third level but that is not ideal since I need to unnecessarily expand an extra level.
Also, since it would be incorrect to sum amounts in different currencies, would it be possible to remove (or hide) the "Grand Total" column for Level 1 only?

Many thanks
Domenico
Ventzi
Telerik team
 answered on 27 Dec 2013
1 answer
120 views
Hi,

The default color with Expression DarkTheme is hard to see, how can I easy change that?

Milena
Telerik team
 answered on 27 Dec 2013
2 answers
183 views
Despite looking through the on-line documentation, searching the forums, viewing the examples, searching the Toolbox in the VS2012 IDE and examining the properties for a 2D pie chart I have found nothing on how to create a 3D pie chart.

Can someone please point me in the right direction.
Raymond
Top achievements
Rank 1
 answered on 27 Dec 2013
0 answers
183 views
I have a radmenu inside a grid row that is nested inside Prism regions about 3 deep.
I want the menu to take all the available space in the row that is set to width = *
The menu seems to be setting it's own width, causing all the dynamic layout in the WPF app to croak because the menu is "Sized"
I want the menu to look like a normal menu and fill the rest of the dead space on the right. So when I maximize or resize WPF just does it's magic. In short the menu cannot have any determinate width.

How do I do that?

Never mind, this works:

<Grid><Cell *>
<
StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
RadMenu Here
</StackPanel>

Eric
Top achievements
Rank 1
 asked on 26 Dec 2013
1 answer
99 views
I have a RadMap control with a VisualizationLayer that I've bound to a collection of model view objects. When I add objects to be displayed on the map and then dynamically change the application's theme (by removing and adding the Telerik ResourceDictionaries) an InvalidOperation Exception is thrown by the VisualizationLayer of the RadMap.

Is this a bug with the Telerik controls or am I doing something wrong? Please see the WPF project that replicates this error uploaded here: https://dl.dropboxusercontent.com/u/22608/MapThemesCrash.zip

Thanks!
Petar Marchev
Telerik team
 answered on 26 Dec 2013
1 answer
62 views
Is it possible to use VirtualQueryableCollectionView with ItemsLoading event to get the data for my current scroll position? Now it looks like it is sending requests to get all data from the begin to my scroll position.
Zarko
Telerik team
 answered on 26 Dec 2013
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?