Telerik Forums
UI for WPF Forum
3 answers
187 views
Hi there,

I'm working on auto-scroll for the radTreeView and have come up against a slight issue.  The auto scroll works really well (referencing the blog post here: http://blogs.telerik.com/xamlteam/posts/10-11-25/how-to-implement-autoscroll-while-dragging-in-radtreeview.aspx), but I've come up against a slight issue.

Within the RadTreeView ItemContainer, I've got a textbox.  As soon as I drag over that textbox, it loses focus so the auto-scroll can go no further.  If I disable the textboxes, then it works fine.

Do you know of any workaround I could use to ensure that if I drag over a textbox, it will continue to scroll?

Many thanks
Pavel R. Pavlov
Telerik team
 answered on 14 Jul 2014
2 answers
109 views
Has anyone used Prism5 with the Telerik WPF Radcontrols?

We currently use a mixture of Prism4.1 & MVVM Light but the controls are not registered in Prism (just use regions, navigation, modularity etc).

Telerik say they haven't tested the controls yet with Prism5.

Has anyone had and success using Radcontrols with Prism5 and have any issues arisen?

Thanks.
N Mackay
Top achievements
Rank 1
 answered on 11 Jul 2014
1 answer
1.0K+ views
Hey,

I am using a DayTemplateSelector to on my RadCalendar to show a different style for days that have appointments. With my test setup this works fine, but when I'm contacting a service to retrieve appointment, the collection is empty at the moment the month is switched and the appointments are added on arriving back from the service (one by one).

The problem now is that the selector is not triggered when the binded property is changing. Is there a way to force a update on the selector?

I found a post with the next solution:
calendar.DisplayDate = calendar.DisplayDate.AddMonths(1);
calendar.DisplayDate = calendar.DisplayDate.AddMonths(-1);

BUT this will not work for me, when you change the mont the current date will be changed and I will retrieve a new list and the binded list is empty again. Why is the selector not listing to the changes of the property in the datacontext?
Konstantina
Telerik team
 answered on 11 Jul 2014
1 answer
172 views
Hi support,
I am facing the problem with Auto Complete Box.I have just downloaded the latest trial version.I want to use two way binding feature.I have observed that It is working fine.But the problem is when I type in the box DisplayMemberPath binding has broken.I am attaching the Xaml and VM also.

<telerik:RadAutoCompleteBox SelectionMode="Multiple" x:Name="tokenControl"
                                            Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="7" MaxHeight="100" Margin="0 5"
                                            ItemsSource="{Binding Source={x:Static local:Globals.Instance},Path=Users}"
                                            AutoCompleteMode="Suggest"
                                            DropDownItemTemplate="{StaticResource userDataTemplate}"
                                            TextSearchPath="DisplayName"
                                            DisplayMemberPath="DisplayName" SelectedItems="{Binding SelectedContacts,Mode=TwoWay}">
                    
                </telerik:RadAutoCompleteBox>

Property:-
  private List<Presentity> _SelectedContacts;
        public List<Presentity> SelectedContacts
        {
            get
            {
                return _SelectedContacts;
            }
            set
            {
                _SelectedContacts = value;
                NotifyOnPropertyChanged("SelectedContacts");
            }
        } 
Code For Selection:-
foreach (Recipient recipient in SelectedExistingTask.Recipients)
                    {
                        Recipient localRecipient = recipient;
                        Presentity user = Globals.Instance.Users.FirstOrDefault((p) => p.UserId == localRecipient.Id);
                        if (user != null)
                        {
                            users.Add(user);
                        }
                    }





















Vladi
Telerik team
 answered on 11 Jul 2014
4 answers
154 views
Hello everyone, 
I try to develop an export of the GridView to a PivotGrid. 
For that I turn the ItemsSource (IEnumerable <object>) of the GridView in a datatable with only the fields corresponding to the columns of the GridView.
It works fine but there is a performance problem when I iterate the source to add one by one the data in the datatable ( iteration + using reflection to get the values of each field ​​ + LoadDataRow in the datatable) 
Do you see an alternative to the use of a datatable? 
For example, a sub-list of my data source? 
thank you in advance for your suggestions... 
Greetings. 
Olivier.
Software
Top achievements
Rank 1
 answered on 11 Jul 2014
1 answer
234 views
IsTabStop="False" is not working for the AutoCompleteBox.
I was not going to use this control because of this problem.

I found a solution by googling elsewhere and will post it here.
Instead of using IsTabStop="False" use: KeyboardNavigation.TabNavigation="None"

NOTE:
When RadComboBox has IsEditable="True" then, like AutoCompleteBox, IsTabStop="False" does not work.
This solution will also apply to the RadComboBox problem.

I have my working AutoCompleteBox set up as below.​ I have bolded the code that will make tabbing skip the control.

<telerik:RadAutoCompleteBox Grid.Column="1" Grid.Row="0" 
   SelectionMode="Single"         
   WatermarkContent="Type a bylaw"    
   TextSearchMode="StartsWith"          
   TextSearchPath="Code"
   AutoCompleteMode="SuggestAppend"
   ItemsSource="{Binding Bylaws}"
   DropDownItemTemplate="{StaticResource BylawSearchTemplate}"
   SelectedItem="{Binding SelectedBylaw, Mode=TwoWay}"
   DropDownWidth="Auto"
   Style="{StaticResource EditRadAutoCompleteBox}"
   KeyboardNavigation.TabNavigation="None" /> 



Rosen Vladimirov
Telerik team
 answered on 11 Jul 2014
1 answer
255 views
When I set the select all text event on the combobox, when I click into the combobox it selects all the text then goes away. If I tab into the combobox everything stays selected. Am I missing something? Below is my xaml

​<telerik:RadComboBox ItemsSource="{Binding OptionCategories}" DisplayMemberPath="CategoryName" Grid.Row="1" IsEnabled="{Binding CanChangeOption}"
Margin="10 0" IsEditable="True" SelectedIndex="0" VerticalAlignment="Center" SelectedItem="{Binding SelectedOptionCategory}" SelectAllTextEvent="GotFocus" />
Rosen Vladimirov
Telerik team
 answered on 11 Jul 2014
1 answer
131 views
Hello, I am using RadTimePicker  for selecting time and on click of a button adding the selected time to a ListView. When I select a time say 13:00:00 and click on add button, it gets added.
 But when I select a time say 13:00:00 and edit it as say 13:10:00 and then click on add button it does not get added This issue I get only while using version Q2 2014. While the same control from Q3 2013 version works fine. I see that when I select a time and I edit it and then Click on the add Button, the Time value is not getting bound to the property AtTime in ViewModel. XAML :
 < telerik:RadTimePicker x:Uid="uxAtTimePicker" x:Name="uxAtTimePicker" Width="203" VerticalAlignment="Center" SelectedTime="{Binding AtTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> ViewModel: public TimeSpan? AtTime
 {
 get
 {
 return theAtTime;
 }
 set
 {
 theAtTime = value;
 base.OnPropertyChanged("AtTime");
 }
 } Please help me out with a solution. Thanks,
 Best Regards,
 Santhosh B
Kalin
Telerik team
 answered on 11 Jul 2014
1 answer
74 views
Hello,

I am using RadTimePicker  for selecting time and on click of a button adding the selected time to a ListView.

When I select a time say 13:00:00 and click on add button, it gets added.
But when I select a time say 13:00:00 and edit it as say 13:10:00 and then click on add button it does not get added

This issue I get only while using version Q2 2014.

While the same control from Q3 2013 version works fine.

I see that when I select a time and I edit it and then Click on the add Button, the Time value is not getting bound to the property AtTime in ViewModel.

XAML :
< telerik:RadTimePicker x:Uid="uxAtTimePicker" x:Name="uxAtTimePicker" Width="203" VerticalAlignment="Center" SelectedTime="{Binding AtTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">

ViewModel:

public TimeSpan? AtTime
{
get
{
return theAtTime;
}
set
{
theAtTime = value;
base.OnPropertyChanged("AtTime");
}
}

Please help me out with a solution.

Thanks,
Best Regards,
Santhosh B
Kalin
Telerik team
 answered on 11 Jul 2014
1 answer
225 views
Hello

I need to add appointments in a few locationRessources with code behind. I can build and run my project but the appointments don't appear in the RadScheduleView.

Here is my xaml code:
<Window x:Class="TelerikWpfApp1.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525">
        <Grid>
            <telerik:RadScheduleView HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Name="xRadScheduleView">
                <telerik:RadScheduleView.ViewDefinitions>
                    <telerik:DayViewDefinition Orientation="Horizontal" DayStartTime="7:00" DayEndTime="21:00"/>
                    <telerik:WeekViewDefinition/>
                    <telerik:MonthViewDefinition/>
                    <telerik:TimelineViewDefinition/>
                </telerik:RadScheduleView.ViewDefinitions>
            
        </telerik:RadScheduleView>
 
    </Grid>
</Window>

Here is my code behind:
void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            ResourceType locationResource = new ResourceType("BlocsOperatoires");
            locationResource.Resources.Add(new Resource("Bloc 1"));
            locationResource.Resources.Add(new Resource("Bloc 2"));
            locationResource.Resources.Add(new Resource("Bloc 3"));
            locationResource.Resources.Add(new Resource("Bloc 4"));
            locationResource.Resources.Add(new Resource("Bloc 5"));
            this.xRadScheduleView.ResourceTypesSource = new ResourceTypeCollection
            {
                locationResource
            };
 
            GroupDescriptionCollection groupDescription = new GroupDescriptionCollection
            {
                new DateGroupDescription(),
                new ResourceGroupDescription{ ResourceType = "BlocsOperatoires" }               
            };
            this.xRadScheduleView.GroupDescriptionsSource = groupDescription;
 
            var appointments = new ObservableCollection<Appointment>();
            appointments.Add(new Appointment()
                        {
                            Subject = "I'm a new Appointment",
                            Start = new DateTime(2014, 7, 8, 8, 30, 00),
                            End = new DateTime(2014, 7, 8, 10, 30, 00),
                            Location = locationResource.Resources.ElementAt(1).ResourceName
                        });
            appointments.Add(new Appointment()
            {
                Subject = "I'm a new Appointment 2",
                Start = new DateTime(2014, 7, 8, 8, 30, 00),
                End = new DateTime(2014, 7, 8, 10, 30, 00),
                Location = locationResource.Resources.ElementAt(3).ResourceName
            });
            xRadScheduleView.AppointmentsSource = appointments; 
        }


Can you explain to me what am i missing ?

thanx !
Kalin
Telerik team
 answered on 11 Jul 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
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
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
SplashScreen
Rating
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
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?