Telerik Forums
UI for WPF Forum
1 answer
88 views
We are using default Telerik Spell Check in our Rad RichTextBox.

We found that Spellcheck is not checking Hyperlinks Text.

Is there any way to make spellcheck work for the hyperlinks?
Svetoslav
Telerik team
 answered on 12 Dec 2014
3 answers
170 views
Hey all.

So I'm in the middle of evaluating the RadTreeView control, and so far, it leaps ahead of other controls I've evaluated. I'm exploring the Drag/Drop functionality at the moment, but am really struggling, as I've not been able to find a consistent approach to tackle the problem in the online documentation.

I've basically got a RadTreeView and a RadListBox, each of their viewmodels have an ObservableCollection of HierachicalData. I can drag within the control, and between like controls (RadListBox to RadListBox), but can't get it working between the two.

I've attached my solution - when dragging from the TreeView, you can see the drop indicator on the ListBox, but drop is disabled.

My tree view looks like this :
<telerik:RadTreeView x:Name="TreeView" Grid.Row="1"
    ItemsSource="{Binding Items}" ItemTemplate="{StaticResource ParentTemplate}"
    SelectionMode="Multiple" SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
    IsDragDropEnabled="True" AllowDrop="False" >
    <telerik:RadTreeView.ItemContainerStyle>
        <Style TargetType="telerik:RadTreeViewItem">
            <Setter Property="IsSelected" Value="{Binding Path=Select, Mode=TwoWay}" />
            <Setter Property="IsExpanded" Value="{Binding Path=Expand, Mode=TwoWay}"></Setter>
        </Style >
    </telerik:RadTreeView.ItemContainerStyle>
</telerik:RadTreeView>
.. with the following VM ...
public class TelerikTreeViewModel : ReactiveScreen
    {
        private ObservableCollection<HierachicalData> _items;
        private HierachicalData _selectedItem;
 
        public TelerikTreeViewModel()
        {
            DisplayName = "Telerik Tree";
            Items = new ObservableCollection<HierachicalData>
            {
                new HierachicalData
                {
                    Name = "Parent", Expand = true, Select = true,
                    Children = new ObservableCollection<HierachicalData>
                    {
                        new HierachicalData {Name = "Child 1"},
                        new HierachicalData {Name = "Child 2", Select = true}
                    }
                },
                new HierachicalData
                {
                    Name = "Parent 2",Expand = true,
                    Children = new ObservableCollection<HierachicalData>
                    {
                        new HierachicalData {Name = "Child 12", Select= true},
                        new HierachicalData {Name = "Child 22"}
                    }
                }
            };
        }
 
        public ObservableCollection<HierachicalData> Items
        {
            get { return _items; }
            set { this.RaiseAndSetIfChanged(ref _items, value); }
        }
 
        public HierachicalData SelectedItem
        {
            get { return _selectedItem; }
            set { this.RaiseAndSetIfChanged(ref _selectedItem, value); }
        }
    }
 
    public class HierachicalData : ReactiveObject
    {
        private string _name;
        private ObservableCollection<HierachicalData> _children;
        private bool _isSelected;
        private bool _expand;
 
        public HierachicalData()
        {
             
        }
 
        public string Name
        {
            get { return _name; }
            set { this.RaiseAndSetIfChanged(ref _name, value); }
        }
 
        public ObservableCollection<HierachicalData> Children
        {
            get { return _children; }
            set { this.RaiseAndSetIfChanged(ref _children, value); }
        }
 
        public bool Select
        {
            get { return _isSelected; }
            set
            {
                this.RaiseAndSetIfChanged(ref _isSelected, value);
            }
        }
 
        public bool Expand
        {
            get { return _expand; }
            set { this.RaiseAndSetIfChanged(ref _expand, value); }
        }
    }

And my RadListBox looks like this
<Style x:Key="DraggableListBoxItem" TargetType="telerik:RadListBoxItem">
            <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True"/>
            <Setter Property="telerik:DragDropManager.AllowDrag" Value="True" />
            <Setter Property="telerik:DragDropManager.TouchDragTrigger" Value="TapAndHold"/>
        </Style>
 
<telerik:RadListBox x:Name="ListBox" ItemsSource="{Binding Items}"
             ItemTemplate="{StaticResource ListBoxItemDataTemplate}"
             ItemContainerStyle="{StaticResource DraggableListBoxItem}"
             >
        <telerik:RadListBox.DragDropBehavior>
            <telerik:ListBoxDragDropBehavior/>
        </telerik:RadListBox.DragDropBehavior>
        <telerik:RadListBox.DragVisualProvider>
            <telerik:ScreenshotDragVisualProvider />
        </telerik:RadListBox.DragVisualProvider>
        <telerik:RadListBox.DropVisualProvider>
            <telerik:LinearDropVisualProvider />
        </telerik:RadListBox.DropVisualProvider>
    </telerik:RadListBox>

With the following VM :
public class DataItemDropViewModel : ReactiveScreen
    {
        public DataItemDropViewModel()
        {
            Items = new ObservableCollection<HierachicalData>
            {
                new HierachicalData{Name = "Hello"},
                new HierachicalData{Name = "Hello2"},
                new HierachicalData{Name = "Hello3"},
            };
        }
 
        private ObservableCollection<HierachicalData> _items;
        public ObservableCollection<HierachicalData> Items
        {
            get { return _items; }
            set { this.RaiseAndSetIfChanged(ref _items, value); }
        }
    }


These exist in seperate user controls, with their own viewmodels. There is no code behind as I'm attempting to leverage as much of the existing framework as possiblle. I'm using the following version of the Telerik dlls 2014.2.729.45
Kalin
Telerik team
 answered on 12 Dec 2014
3 answers
164 views
Hi Telerik Team,

I'm using a RadGridView with a group descriptor to categorize items belonging to the same group:

<telerik:RadGridView.GroupDescriptors>
<telerik:GroupDescriptor Member="GroupData.Name" />
</telerik:RadGridView.GroupDescriptors>

The problem is that, in order to initialize the application, I needed to define a Dummy group that contains 0 items. The dummy group gets removed once the user makes a selection on the actual groups he wants to analyze.
I don't want the Dummy group to be shown in the grid when the application is loaded. Is there a way to hide it?

Thanks,
Valerio
Valerio
Top achievements
Rank 1
 answered on 12 Dec 2014
14 answers
699 views
Does gridview support a way to have a header over multiple columns?  For example, I have 3 columns, History Week 1, History Week 2, History Week 3.  Is it possible to have another header over these three columns (grouped together) that says History?
Dimitrina
Telerik team
 answered on 12 Dec 2014
1 answer
148 views
I've got a Nullable Datetime GridViewDataColumn, and if I follow the following steps I'm getting a validation/binding error:

1)  Start with a blank column
2)  Double-click the column to activate editing but don't type anything, or if you type anything, delete it.
3)  Click on any other part of the grid

Validation Error:  Object of type System.String cannot be converted to System.Nullable [System.DateTime]

If I start with a column that has data in it and delete it, things work fine.  But if I start to edit an empty field and try to leave it while it is still empty, I get this error.
Once the error is up, you can't seem to do anything on the grid until you hit the ESC key, which is confusing our users.

Is something I can do so that leaving the column while it is still empty will be validated properly?  This shouldn't be creating a validation problem with a Nullable DateTime.

Thanks.
​
Maya
Telerik team
 answered on 12 Dec 2014
3 answers
514 views
I am using a GridView with a CellEditTemplate to display a DatePicker with the date selection mode set to "Month".  However this then meant that the CellValidation's event argument e.NewValue didn't contain the value selected by the user; rather it contained a minimum date value (#12:00:00am#).

After sifting through numerous articles searching for a resolution to this problem - the majority in this forum which referred to creating custom validation procedures and deriving new column types and another explaining the Validation Lifecycle that gave absolutely no information on cell validating using editing templates (and none that gave any examples) - I finally came across this article http://www.telerik.com/forums/custom-template-in-grid that explained you simply had to use "e.EditingElement" to gain access to the editor used in the cell.

I am raising this thread in the hope that other users will be able to quickly locate the solution to this problem and not waste hours of their time.
Boris
Telerik team
 answered on 12 Dec 2014
1 answer
134 views
Is it possible to have the tabstrip in a separate container from the content? I'd like the tabs to be in a grid located in one area of my application. I would then like the content to show up in a separate grid in a different location.

Thanks for the help!

Pavel R. Pavlov
Telerik team
 answered on 12 Dec 2014
4 answers
314 views
Hi,

We need to display a dynamic tree with multiple levels as showed in attached image. Levels needs to be left aligned and will be separate from main. Both the trees will be generated dynamically, and should display with the tree layout.

I am able to generate both the graphs with no issues, but not able to place both in same graph as it supports only one. I tried to place both the graphs in two separate graphs in a grid with two columns and tried to synchronize the zoom, but that is getting distorted and overlapped.

Any way to place both the graphs in same diagram, but one with fixed value for x (as shown in the diagram) ?

Any advice/support is much appreciated.

Thanks,
Shalvin.
Petar Mladenov
Telerik team
 answered on 12 Dec 2014
3 answers
214 views
Hi all

I want to print a diagram with preview. I used the example at http://www.telerik.com/help/wpf/raddiagram-features-printing.html and my code looks like this:
var printPreviewWindow = new RadWindow();
var printPreview = new RadDiagramPrintPreview { Diagram = this.diagram };
printPreviewWindow.Content = printPreview;
printPreviewWindow.ResizeMode = ResizeMode.NoResize;
printPreviewWindow.Width = 800;
printPreviewWindow.Height = 600;
printPreviewWindow.ShowDialog();
With the RadDiagramPrintPreview the user can change printer and sheet size / orientation. But I need to scale the diagram down to "fit to page" How can I do this with the RadDiagramPrintPreview?
Regards

Dan Ove

Pavel R. Pavlov
Telerik team
 answered on 12 Dec 2014
7 answers
339 views
I have a RadGridView, with a CellValidating event handler.

It receives a GridVIewCellValidatingEventArgs argument, named e.

e has a field, newValue.

When I'm editing a cell, whether on an existing row or on a new one, the CellValidating event fires, and my event handler catches it.

When I'm editing a cell in an existing row, I can access the object being edited via e.newValue.

When I'm editing a cell in a new row, e.newValue is null.

Is this supposed to happen?  If so, what should I use instead of e.newValue?

Maya
Telerik team
 answered on 12 Dec 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
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?