Telerik Forums
UI for WPF Forum
9 answers
730 views
Hi telerik,

I have a collection of objects bound to the a ListBox, and the SelectionMode set to "Multiple".
The objects have a property "IsSelected". 

How do I bind this property to the ListBox?

I want the property of the object to change when the user selects an item.

Thanks for help
Michael
Igor
Top achievements
Rank 1
 answered on 01 Mar 2013
1 answer
174 views
I have a situation where I would like to ensure that related appointments shown in Timeline View of the ScheduleView are displayed in sequence, on the same line in the view.

Scenario:
I'm using the ScheduleView to render "jobs" (each represented by an appointment instance). Some of these jobs are related to the same customer and occur in sequence - one starts when another one finishes.
Using the defaults, the Schedule sometimes renders such appointments next to each other, on the same line, but other times these appoinments are split across multiple lines.

Please see the attached screenshot for an example.
In the attached example I would like to ensure that the three appointments in red boxes are always rendered on the same line in Timeline view, because they are related to the same customer.

I have thought about using resources - one for each customer - but this will cause most jobs to be placed on its own line, which in turn will result in too much wasted screen space. The user will have to use vertical scrolling more to see all jobs. So I would like to achieve this without using resource grouping.

Is this possible to do?
Vladi
Telerik team
 answered on 01 Mar 2013
1 answer
141 views
Hi, I am using the following datatemplate to give different background color to the GroupHeaderRow
<telerik:RadGridView.GroupHeaderTemplate>
               <DataTemplate>
                   <StackPanel Orientation="Horizontal">
                       <CheckBox localBehavior:CheckBoxBehavior.IsEnabled="True" IsThreeState="True" Margin="0 0 3 0"/>
                       <TextBlock Text="{Binding Group.Key}" Background="{Binding Path=Group.Items, Converter={StaticResource GroupHeaderColorResourceValueConverter}}"/>
                   </StackPanel>
               </DataTemplate>
           </telerik:RadGridView.GroupHeaderTemplate>

The .GroupHeaderColorResourceValueConverter will take the Group.Items as the input parameter and use certain property of the items to return different background color.

However, when the property of the item changes, the GroupRowBackground color is not changed. Is there a way to make the GroupViewModel to fire an event so the GroupHeaderRow can get the noticiation from it's ViewModel to refelect the changes?

I tried the approach in the following link but it does not seem to work for the background color.
http://blogs.telerik.com/vladimirenchev/posts/10-10-04/fast-real-time-data-update-for-your-silverlight-and-wpf-applications.aspx

Thanks
Yoan
Telerik team
 answered on 01 Mar 2013
1 answer
124 views
I wanted to know if we can declare the PieSeries.SliceStyles in a separate Style tag in a resource dictionary and refer to it so that the PieDataPoints can pick the colors and strokes etc.. from there??
Evgenia
Telerik team
 answered on 01 Mar 2013
1 answer
494 views
Hello,

The setup:
 - RadTreeView bound to an hierarchy.
 - SelectMode is Multiselect
 - Each node has an IsSelected property, RadTreeViewItem is bound to it using a style.

And one of requirements is that when a child is selected then all his parents should be selected too. And we've run into a problem implementing it.

Reproducing the problem:
 - Expand parent node without selecting
 - Click on a child
 - The Child is selected and his parent too
 - Click again on child
 At this moment parent is unselected by the TreeView, while child is still selected.

Definition of IsSelected property:
public bool IsSelected
{
    get { return isSelected; }
    set
    {
        if (value == isSelected)
            return;
 
        isSelected = value;
        NotifyOfPropertyChange(() => IsSelected);
 
        if (Parent != null)
            Parent.IsSelected = isSelected;
    }
}

When clicking second time on a child, the IsSelected setter isn't called on a child, but sets to false for parent.

Basically I'd like to keep a visual "selection chain" from children to parent nodes. Anything special should be done in order to keep parent nodes selected? 

Thanks
Pavel R. Pavlov
Telerik team
 answered on 01 Mar 2013
8 answers
301 views

Hi,

Is there a possibility to set a different color to each one of the candlesticks?

Rotem
Top achievements
Rank 1
 answered on 28 Feb 2013
1 answer
66 views
Error throws when changing the zoom level to a random number of value say a huge digit(5334243223).  This leads to application crash. To avoid this, I want to know the exact event/method to capture it and show the messagebox insted.

Any help would be appreciated!


Thanks
Raj
Vasil
Telerik team
 answered on 28 Feb 2013
3 answers
127 views
Hi,

I am trying to use data virtualization with radtreelistview.

SummaryData 

[] lstData = GetSummaryData();
VirtualQueryableCollectionView vqResults = new VirtualQueryableCollectionView(lstData) { LoadSize = 100, VirtualItemCount = 100000 };
radTreelistView.ItemsSource = vqResults ;


But i am getting a blank screen.

If I directly assign the source to radtreelistview, it loads correctly.
I need to implement data virtualization with radtreelistview.  Are there any demerits of using data virtualization ?
Can you please provide an example project.

Thanks.

 

Vlad
Telerik team
 answered on 28 Feb 2013
4 answers
328 views
Hi,

I wonder if it is possible to extend the Section, Block and Paragraph objects, and wither they have any visual representation to them?

We are trying to create an editor using the RadRichTextbox, where the user should add one or more section (similar to the container concept in WPF) to the document, and then then add blocks within each section, and then they add text, images, inline controls...etc. to each block. After that, we want to enable the user to re-order those sections or the blocks within each section. So ideally, when a mouse over a section, the whole section border will be visible, to show the section boundaries. When the user right clicks, a context menu will show up to allow moving the section up/down. Same functionality should be there for blocks.

Can we use the section object “Telerik.Windows.Documents.Model.Section” to achieve this functionality? We are inspiring our specific purpose editor from this hierarchy

http://www.telerik.com/help/wpf/radrichtextbox-features-document-elements-hierarchy.html

and would like to reuse those object! Any advice?

Cheers
Petya
Telerik team
 answered on 28 Feb 2013
1 answer
210 views
Hi
I am using data annotations to validate items in a collection presented in a RadGridView.
It successfully validates a property of an item in the collection e.g. a name is required
// ...
{
    public class GroupOfItems
    {
        [Required(ErrorMessage="Name must be provided!")]
        public string GroupName { get; set; }
// ...

I now want to ensure the name is unique within the collection. I have tried adding the [Key] attribute but no error is indicated if I enter another item with the same name. It may be that [Key] is not appropriate in this context.

What can you suggest I do to implement this validation rule?
Thanks
Craig
PS. I'm using C#, WPF, MVVM, Rad Controls for WPF 2012.3.1129.40

Nedyalko Nikolov
Telerik team
 answered on 28 Feb 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
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?