Telerik Forums
UI for WPF Forum
1 answer
155 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
141 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
512 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
330 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
80 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
141 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
349 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
227 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
1 answer
102 views
For some reason, vertical lines do not appear on our scheduleview until the vertical scroll bar is used. I've attached two images for reference.

Please Advise.
Yana
Telerik team
 answered on 28 Feb 2013
6 answers
461 views
I have a radribbonview defined as this:

<telerik:RadRibbonView IsMouseWheelTabScrollingEnabled="False" ApplicationButtonVisibility="Collapsed" TitleBarVisibility="Collapsed" Background="HotPink">
          <telerik:RadRibbonTab HeaderVisibility="Collapsed">
              <telerik:RadRibbonGroup />
              ...
              <telerik:RadRibbonGroup />
          </telerik:RadRibbonTab>
<telerik:RadRibbonView />

I set the background to hotpink to illustrate my problem. There is only one radribbontab inside the radribbonview - so I really do not need any header for it.

In my program it looks like this (see attached file). The top row of tabs ("Project", "Contacts"... are not part of this problem, my problem is on a radribbonview inside the "Suppliers" tab).

I changed it resently from RadRibbonBar to RadRibbonView because it kept bugging me that RadRibbonBar is obsolete.

How do I make the large "margin" in top go away (the margin is not really a margin - it is where my RadRibbon tab would have had it's header if it had one). Anything else I need to collapse?

Thanks
Inger Marie
Inger Marie
Top achievements
Rank 1
 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?