Telerik Forums
UI for WPF Forum
1 answer
96 views
When doing word-by-word spell checking, the spell checker dialog sometimes covers the misspelled word, so the user cannot see the context of the word without manually moving the dialog. It would be nice if there was a way to change the position of the dialog while spell checking so that it doesn't cover the context of the word.
Tanya
Telerik team
 answered on 31 Mar 2015
1 answer
92 views
Hi,

I have implemented a prism navigable application with a page which contains a RadChartView populated dynamically with a SeriesProvider. On the first navigable page I can manipulate the series collection and remove serie or add new serie. When I remove a serie, the RadChartBase class raise an exception in UpdateDynamicSeries method. I think it's link with the way that prism manage the page (assumption that RadChartView is not link to mainview).
You can found a short sample here.
Run the sample, go to the Content page and try to remove a serie, the exception occurs.
I'm using version 2015.1.225.45 of telerik dll with implicit theme.
Thanks for your help.
Luc
Petar Marchev
Telerik team
 answered on 31 Mar 2015
1 answer
191 views
Hi,

I'm intersted to make my RadDocking to order the inserted panes (in the corespond view-model) like the UniformGrid does...
For example let's assume I have 2 items in my collection of panes. I want them to be shown as two panes with the same width (the sum of their width is the total width of the RadDocking control), and when I programatically add an item to the binded collection, I want the first two items to be shown as their height is half of what they were, and in the second imaginary row I want the third pane to be shown with the same width as theirs.

If the user make some mess with panes, I want the dynamically added item to be docked to the right side. Is it a problem if I got pane that became a ToolWindow while there are another that are not ToolWindow at the moment?

Ho do I achieve that easily?

Thanks!
Nasko
Telerik team
 answered on 31 Mar 2015
3 answers
187 views
Hi there,

We are using RadContextMenu to pop up a small editor with several TextBoxes.  We would like our users to be able to navigate among the text boxes using the Tab key.  However, this doesn't work -- tab does nothing.

The following is a trivial example of a ContextMenu with three text boxes.  Click inside one TextBox and hit tab.  I would expect it to cycle among the three tabs.

How can we enable this behavior, please?

Thanks!

-David

<Window x:Class="telerik_context_menu_taborder.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Rectangle Fill="Black" Width="100" Height="50">
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu KeyboardNavigation.TabNavigation="Cycle" >
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <TextBox Grid.Row="0" Text="TextBox1" />
                        <TextBox Grid.Row="1" Text="TextBox2" />
                        <TextBox Grid.Row="2" Text="TextBox3" />
                    </Grid>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>
        </Rectangle>
    </Grid>
</Window>


Kalin
Telerik team
 answered on 31 Mar 2015
1 answer
125 views
Hi guys,

My application typically uses high amount of memory, up to 1GB in some intensive cases. My machine has 12GB memory so no problem. In intensive cases, RadMap fails to respond after panning/zooming a couple of times. When profiled, the bottleneck is in Telerik.Windows.Controls.Map.TileSource.CreateBitmap(). I tried to used caching but not much improvement. Any advice?

This is some code for mockup

<Window x:Class="RadMapPerf.MainWindow"
        Title="MainWindow" Height="600" Width="800">
    <Grid>
        <telerik:RadMap x:Name="RadMap" Center="38.8993487,-77.0145665" UseDefaultLayout="False" ZoomLevel="7">
            <telerik:RadMap.Provider>
                <telerik:OpenStreetMapProvider IsTileCachingEnabled="True"/>
            </telerik:RadMap.Provider>
        </telerik:RadMap>
    </Grid>
</Window>
public partial class MainWindow : Window
    {
        private readonly List<string> _memory = new List<string>();
 
        public MainWindow()
        {
            InitializeComponent();
 
            // fake memory usage
            for (var i = 0; i < 100000000; i++)
                _memory.Add("memory_usage");
                 
        }
    }
Petar Mladenov
Telerik team
 answered on 31 Mar 2015
2 answers
138 views
Hi,

It seems that since last release (2015.1.225.45) the behaviour of RibbonView has changed. Previously when the selected RibbonTab was removed the next was selected. Now no tab is selected even if I change the SelectedItemRemoveBehaviour property on the RibbonView.
Regards
Luc
Luc
Top achievements
Rank 1
 answered on 31 Mar 2015
1 answer
93 views
Hello,
I have a RadScheduleView displaying Appointments for Room-s and Speaker-s resources using a TimelineViewDefinition:

<UserControl x:Class="Scheduler.Views.SchedulerView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:views="clr-namespace:Scheduler.Views"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
     
    <UserControl.DataContext>
        <views:SchedulerViewModel/>
    </UserControl.DataContext>
     
    <Grid>
         
        <telerik:RadScheduleView AppointmentsSource="{Binding Appointments}"
                                 ResourceTypesSource="{Binding ResourcesTypes}" >
 
            <telerik:RadScheduleView.ViewDefinitions>
                <!--<telerik:DayViewDefinition />
                <telerik:WeekViewDefinition />
                <telerik:MonthViewDefinition/>-->
                <telerik:TimelineViewDefinition MinTimeRulerExtent="1000" VisibleDays="2"
                                                MinorTickLength="1h" MajorTickLength="6h" GroupTickLength="1d"
                                                />
            </telerik:RadScheduleView.ViewDefinitions>
 
            <telerik:RadScheduleView.GroupDescriptionsSource>
                <telerik:GroupDescriptionCollection>
                    <telerik:DateGroupDescription />
                    <telerik:ResourceGroupDescription ResourceType="Room"/>
                    <telerik:ResourceGroupDescription ResourceType="Speaker"/>
                </telerik:GroupDescriptionCollection>
            </telerik:RadScheduleView.GroupDescriptionsSource>
 
            <telerik:RadScheduleView.GroupHeaderContentTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding FormattedName}" Width="70" Margin="10" VerticalAlignment="Center" />
                </DataTemplate>
            </telerik:RadScheduleView.GroupHeaderContentTemplate>
        </telerik:RadScheduleView>
 
    </Grid>
     
</UserControl>


using System.Collections.ObjectModel;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.ScheduleView;
 
namespace Scheduler.Views
{
    public class SchedulerViewModel
    {
        public SchedulerViewModel()
        {
            ResourcesTypes = GenerateResourceTypes();
            Appointments   = new ObservableCollection<Appointment>();
        }
 
        public ObservableCollection<Appointment> Appointments { get; set; }
 
        public ObservableCollection<ResourceType> ResourcesTypes { get; set; }
 
        private ObservableCollection<ResourceType> GenerateResourceTypes()
        {
            var result = new ObservableCollection<ResourceType>();
 
            var roomType = new ResourceType("Room");
            var room1 = new Resource("Room Alfa");
            var room2 = new Resource("Room Beta");
            var room3 = new Resource("Room Gama");
            roomType.Resources.Add(room1);
            roomType.Resources.Add(room2);
            roomType.Resources.Add(room3);
 
            var speakerType = new ResourceType("Speaker");
            var speaker1 = new Resource("Tom");
            var speaker2 = new Resource("Bob");
            var speaker3 = new Resource("John");
            speakerType.Resources.Add(speaker1);
            speakerType.Resources.Add(speaker2);
            speakerType.Resources.Add(speaker3);
 
            result.Add(roomType);
            result.Add(speakerType);
 
            return result;
        }
    }
}


Is it possible to create a custom mapping between Room-s and Speaker-s so that for "Room Alfa" and "Room Beta" only two speakers would be displayed "Bob" and "John" (only "Bob" and "John" have access to "Room Alfa" and "Room Beta"); and for "Room Gama" to display all the speakers "Tom", "Bob", "John" (all speakers have access to "Room Gama").

Please see the attached file for more details.

Thank you,
Marius
Kalin
Telerik team
 answered on 31 Mar 2015
3 answers
305 views
I would like to ask can we apply the blur effect(fading effect) on the edges of telerik gridviewscrollviewer?
Thanks
Stefan
Telerik team
 answered on 31 Mar 2015
1 answer
97 views
Hi, 

   If I use one chartview to show 5+ line series, the series shares one common VerticalAxis, but each one of them has it's own HorizontalAxis(because each of them has different  length ).
   All of the 5+ HorizontalAxis are shown on the bottom, If I show them all at same time, the chart looks ugly, so I want show only one HorizontalAxis at one time, but use a button to allow user to swith to the next HorizontalAxis. How to do that in MVVM?
  Or is there any better way to show series with different HorizontalAxis?
   
Regards Yang
Petar Marchev
Telerik team
 answered on 31 Mar 2015
4 answers
516 views
I've been reading a bunch of forum posts from 2011 about Multi Select in the ComboBox being on the dev track.

Is it here yet? How can I do multiselect in a RadComboBox (WPF) and read back the selected items in codebehind?

Here is what I have so far (from those old posts)

       <DataTemplate x:Key="RadComboBoxItemTemplate">
            <CheckBox Content="{Binding}"
                              IsChecked="{Binding Path=IsSelected,Mode=TwoWay}"
                              Height="16" HorizontalAlignment="Left" Margin="2"
                              VerticalAlignment="Top" />
        </DataTemplate>
        <DataTemplate x:Key="SelectionBoxTemplate">
            <TextBlock Text="{Binding SelectedItemsText,Mode=TwoWay}" />
        </DataTemplate>
 
 
<telerik:RadComboBox Name="cb_Others"
        ItemTemplate="{StaticResource RadComboBoxItemTemplate}"
        SelectionBoxTemplate="{StaticResource SelectionBoxTemplate}"
        Grid.Column="1" Grid.Row="3" HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch" Margin="3,3,6,3"/>

I load the control in codebehind like this:
cb_Others.ItemsSource = AvailableOthers;  // where AvailablesOthers is a List<string>

This almost works, it displays my items and lets me check the boxes, but I can't figure out how to read the selected items from codebehind.

Help?


Nasko
Telerik team
 answered on 31 Mar 2015
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
VirtualKeyboard
HighlightTextBlock
Security
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?