Telerik Forums
UI for WPF Forum
5 answers
291 views
Our team has been using Telerik WPF controls for the last 12 months and were very surprised to learn that the RadTreeView auto scroll feature was removed within the last year (that's our understanding). We did end up using the the AutoScrollBehavior class attached to various threads on the subject but found a very strange drag and drop bug that was introduced with this behavior.

Our suspicion is that this feature may have been removed because it was, for lack of a better description, buggy. Does anybody know why this was removed? Are there any plans to add it back? FYI, the bug that we found is that in certain situations, dragging items with this behavior causes the DraggedItems collection found in the RadTreeViewDragEventArgs object to contain the same object twice. And when this happens, the visual cue also contains two visual objects. If it were just a visual issue we might ignore it but it actually can lead to unhandled exceptions somewhere in the bowels of the RadTreeView.

Does anybody have any further info on this?
Tina Stancheva
Telerik team
 answered on 01 Mar 2013
1 answer
396 views
Is it possible to make the timeline control act like a video/audio editor, where you see multiple tracks horizontally and the timeline is the length of media.  You can put media back to back on one particular track.  Something like this?

http://library.creativecow.net/articles/griffin_nick/media100_producer/VIDEO_TRACKS.jpg
Tsvetie
Telerik team
 answered on 01 Mar 2013
4 answers
536 views
Hi,

I am working on a RadGridView with a GridViewCheckBoxColumn using the Expression_DarkTheme. I'm trying to modify the colors, which is working well for most of the colors. But i have some problems with the background of the checkbox. 
In edit mode i can modify the color by setting the BulletDecoratot.Bullet background color

<Setter Property="Template">
    <Setter.Value>
        <ControlTemplate TargetType="{x:Type CheckBox}">
            <BulletDecorator Background="Transparent" SnapsToDevicePixels="true">
                <BulletDecorator.Bullet>
                    <Border x:Name="Border" 
                        Width="13" 
                        Height="13" 
                        CornerRadius="0" 
                        Background="White"
                        BorderThickness="1"
                        BorderBrush="#404040">
                        <Path 
                            Width="7" Height="7" 
                            x:Name="CheckMark"
                            SnapsToDevicePixels="False" 
                            Stroke="#404040"
                            StrokeThickness="2"
                            Data="M 0 0 L 7 7 M 0 7 L 7 0" />
                    </Border>
                </BulletDecorator.Bullet  
            </BulletDecorator>
            <ControlTemplate.Triggers>
                <Trigger Property="HasContent" Value="true">
                    <Setter Property="FocusVisualStyle" Value="{StaticResource CheckRadioFocusVisual}"/>
                    <Setter Property="Padding" Value="4,0,0,0"/>
                </Trigger>
                <Trigger Property="IsEnabled" Value="false">
                    <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
    </Setter.Value>
</Setter>

But i'm not able to change the color to white outside of the edit mode.

Can you please give me a hint?

Thanks
Andreas
Maya
Telerik team
 answered on 01 Mar 2013
9 answers
702 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
162 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
128 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
112 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
473 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
283 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
50 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
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?