Telerik Forums
UI for WPF Forum
3 answers
261 views

I have a Cartesian chart with DateTimeCategoricalAxis.
1- I want  a free space added at the end of the horizontal axis, and extends it beyond the maximum date which now available on the horizontal chart.

2 Every time the chart is initialized, it previews entire data! Is there a way to show only the last 50 data points at first time initialization of chart?

 

 

 

 

 

Pavel R. Pavlov
Telerik team
 answered on 22 Jan 2014
1 answer
127 views
The following post describes a way to asynchronously load distinct filter items:

http://blogs.telerik.com/vladimirenchev/posts/10-01-07/how-to-populate-radgridview-for-silverlight-distinct-filters-asynchronously-using-wcf-ria-services.aspx

I was able to get my code to work with this method (using a thread to retrieve the items from the DB and adding the result to the collection), but I wonder if there is any better/easier/cleaner way of doing it? The caveat with my current implementation is that I have to manually terminate the long-running thread whenever it becomes redundant (for example, when filter window closes, or when the whole grid is closed etc). 

Any idea/recommendation is appreciated. Thanks in advance.
Dimitrina
Telerik team
 answered on 22 Jan 2014
3 answers
101 views
I am having issue where a user pastes item like text or image from external application into a diagram.

When the user does this it adds an item to the diagram with text saying "Telerik.Windows.Controls.Diagram.Extensions.ViewModels.NodeViewModelBase".

How can I handle the paste action so it only pastes items onto the diagram that are valid Telerik diagram items?
And maybe allow pasted text from other applications but not anything else like images?
Pavel R. Pavlov
Telerik team
 answered on 22 Jan 2014
1 answer
284 views
How can I do the same thing of building a BrushCollection and assigning to RadStackedDataBar programmatically in code behind. Thanks for answers.

<telerik:RadStackedDataBar
    Name="xStackedDataBar"
    Grid.Row="1"
    Grid.Column="1"
    Minimum="-20"
    Maximum="20"
    ValuePath="BarValue"
    ToolTipPath="ToolTipItem"
    Margin="10,5">
    <telerik:RadStackedDataBar.BarBrushes>
        <databars:BrushCollection>
          <SolidColorBrush Color="SlateBlue" />
          <SolidColorBrush Color="AntiqueWhite" />
          <SolidColorBrush Color="Aqua" />
          <SolidColorBrush Color="Green" />
          <SolidColorBrush Color="Blue" />
 
        </databars:BrushCollection>
    </telerik:RadStackedDataBar.BarBrushes>
</telerik:RadStackedDataBar>

Martin Ivanov
Telerik team
 answered on 22 Jan 2014
1 answer
119 views
HI,

I have a visualization layer which is bind with collection of labels. Here when i zoom in or zoom out, the text got cluttered on map. I want to hide only those labels which are causing this. I have attached 3 snapshots.

In zoom-3 you can see, most of the labels are displaying, while in zoom-2, some labels which were causing the cluttering are removed/hidden, then in zoom-1 level, you can see that some of more labels are removed/hidden which were causing this cluttering.

I want this in Radmap, I have tried to implement this by getting bounding rectangle and then finding each element in this are, but didn't get any success.

Is there any way to do this in Radmap, i am looking to see any urgent help.

Thanks
Waqas Habib

Andrey
Telerik team
 answered on 22 Jan 2014
9 answers
131 views
Hi,
I have radbook which itemsource is ObservableCollection of objects of type BookPage (my object). I also have listbox with itemsource also connected with same ObservableCollection. What I try to accomplish is to use ListBox as Table of Content and to jump to particular page using it, and book pages should follow order of items in listBox. Everything works fine when I am adding or removing items in ListBox, but when I try to reorder items in listbox, sometimes one or two pages in book are lost, or to be absolutely precise, items in listbox are on correct places, pages are still in book, but I can not see them. (strange effect is showing: when I am flipping through book, that "lost" pages are "showing from nothing" and disapear to nothing  - pages are blank, I can not see any content on them. Can you suggest some solution to this problem, I suspect that something must be done with Collection, but can not figure  out what and how. Listbox always looks fine, 
Thanks in advance
Nebojsa Danilovic
Martin Ivanov
Telerik team
 answered on 22 Jan 2014
3 answers
847 views
Hello
I was looking through these forums, demos and google for any example of proper usage entity framework (for .NET 4 and .NET 4.5) with async data loading.

Lets look into requirements:
1. Database with 1 mln record (just to mention large amount of data)
2. EntityFramework (ObjectContext), with entity name "Product"
2. GridView on window.
3. DataPager assigned to GridView (100 per page)
4. BusyIndicator on window.

Requirement:
1. On window open - start asynchronous (to make UI responsible)  data loading with assigning IsBusy of BusyIndicator to true.
2. Once data loaded set IsBusy to false.
3. On page change, sort, filter - assign IsBusy to true when stared, and to false when ended.

So idea is quite simple for responsive UI. However I couldn't any example of such scenario.
The EnityFrameworkDataSource is totally synchronous and does not contain way to assign IsBusy and if there is delay UI stops responding.

Regards
Marcin
Yoan
Telerik team
 answered on 21 Jan 2014
2 answers
253 views
Hi everyone,

I am developing a WPF application in my company.
I use RadControls for WPF Q3 2013 trial version.

I use a RadDocking control in the main window.
PaneGroups's TabStripPlacement property is set to Dock.Top.
I have set up conditionnal docking to prevent a ToolWindow to contain more than one Pane.

2 close buttons are displayed for a floating Pane : 1 to close the ToolWindow and 1 to close the Pane which also closes the ToolWindow.
I want to hide the ToolWindow's close button circled in red on the attached picture 1.png.
I have read documentation about styling and theming the ToolWindow.
I think my goal can be achieved by creating a theme but I am not sure what I should do since I use the SummerTheme theme to set the StyleManager.ApplicationTheme property.

Can you please describe a way to achieve my goal ?
Thank you in advance for your help
Pascal GUERY
Top achievements
Rank 1
 answered on 21 Jan 2014
6 answers
211 views
Hello,

Is there a way to bind to IsReadOnly property of a PropertyGrid inside a CollectionEditor ?

The problem is, that I have a PropertyGrid that can edit collections. However, if I make it read-only (like this: IsReadOnly="{Binding Path=Simulation.HasResults}" ) then CollectionEditor is still editable.

Thanks!
Ivan
Top achievements
Rank 1
 answered on 21 Jan 2014
8 answers
298 views

I faced an unexpected RadPropertyGrid behavior, when I was trying to collapse an arbitrary group in PropertyGrid.

 

When my application starts RadPropertyGrid is loaded. I need some groups in RadPropertyGrid to be collapsed initially.

I'm trying to subscribe to Loaded event and make a call to propertyGrid.CollapseGroup(groupName); But it doesn't work.

Exploring forum I came across another solution

Dispatcher.BeginInvoke(DispatcherPriority.DataBind, new Action(() => CollapseGroup(GroupName)));

 

It works but with some quirks. Control loads groups (which I suppose to be collapsed) and they are initially expanded. And about a half of a second later they collapse. So the control blinks on the start and this looks very annoying.

How can I avoid this group "blinkings"?

 

A sample project can be found here: http://ge.tt/2gV7ilB1/v/0?c

Vera
Telerik team
 answered on 21 Jan 2014
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?