Telerik Forums
UI for WPF Forum
3 answers
274 views

I'm using a RadCalendar in a user control with SelectionMode set to Single, DisplayMode set to MonthView, a DayTemplateSelector set like your example of this in your demo. I also have it handling the SelectionChanged event to change the date values in the DayTemplateSelector. Basically I am using a DayTemplateSelector to change the template for the Day based on a collection of appointment dates to look either selected (the scheduled appointment date) or crossed off with an X (an appointment date to be excluded). This is supposed to be modified when the user left clicks on a Day to X it off or exclude it (through the SelectionChanged event handler). Initially I wanted to use a double-click for selection but there is no double-click event to handle and the double-click example I found in another thread here required adding a huge block of xml for the Calendar Button Style and it wouldn't work in our project due to unresolved reference errors (the sample worked but it wouldn't work in our larger real-world project).

The calendar control should only allow a single day to be selected since the SelectionMode is single but each click on a Day seems to select another Day. Why? I tried setting the SelectedDate value to null from the SelectionChanged event to hopefully clear the selections but this seems to have no effect. This seems to result in peculiar looking calendar as eventually multiple days appear to be selected as the user clicks to "exclude" scheduled appointment dates. Either I need a way to ensure only one of the days is selected or I need a way to clear the selections somehow from the SelectionChanged event handler.

Can you please offer some guidance?

 

Thanks!

 

Is there a way to clear the selected day buttons?

Martin Ivanov
Telerik team
 answered on 13 Apr 2018
6 answers
188 views

Hi, I have a strange issue with the TimeBar control:

if I put a RadLinearSparkline inside of it everything works as exected, but if I try replacing the RadLinearSparkline with a RadColumnSparkline, the content doesn't match the timeline anymore. Looks like there's some kind of margin that keeps accomulating until the columns are represented between two days.

The image I've attached best represents the situation, I've also attached the code so that you can see that I'm not doing anything different when using the two controls.

I really need to use the RadColumnSparkline, what can I do to make sure everything is aligned properly?

Thanks in advance,

Matteo

Martin Ivanov
Telerik team
 answered on 13 Apr 2018
1 answer
310 views

Hi, I have a very large collection that would not fit into local memory very well, and I was trying to make use of the VirtualQueryableCollectionView telerik class.  It takes an IEnumerable, but if I pass in an IEnumerable it loops through all items in order to get the initial Count().  I looked at https://www.telerik.com/blogs/data-virtualization-for-your-silverlight-and-wpf-applications and downloaded the example application, but under the hood it's using something called an .edmx which I'm not familiar with.

What I want to do is to fetch the data on-the-fly.  I tried implementing an IList and passing it to VirtualQueryableCollectionView but that didn't seem to work either.  I'm familiar with how WPF Datagrids handle virtualization and paging, (https://www.codeproject.com/Articles/34405/WPF-Data-Virtualization) and have used that before, but I'm not sure how to do it with a Telerik RadGridView.  Can you point me in the right direction?  I'd use the paging control except I want the user to be able to just scroll down.

Yoan
Telerik team
 answered on 12 Apr 2018
1 answer
105 views

Hi, i would like to use your Telerik Editor, which u describing in WPF Controls Examples. I took code from your xaml and xaml.cs. And my app want Telerik.Windows.Controls.QuickStart and ApplicationThemeManager too.

In this case how it is possible to use it?

 

Thanks for replays.

Tanya
Telerik team
 answered on 12 Apr 2018
1 answer
172 views

I would like to catch TextChanged from RadRichTextBox, i checked and that event did not exist. So i tried to use DocumentChanged, but it did not fire too, when im typing text in rtb.

 

01.<telerik:RadRichTextBox HorizontalScrollBarVisibility="Auto" MinHeight="80" VerticalScrollBarVisibility="Auto"
02.                         x:Name="Rtb"
03.                         Background="White" AcceptsTab="True" Loaded="Rtb_Loaded" FontSize="12"
04.                         IsEnabled="{Binding CanEdit, UpdateSourceTrigger=PropertyChanged}">
05.                <i:Interaction.Triggers>
06.                    <i:EventTrigger EventName="DocumentChanged">
07.                        <i:InvokeCommandAction Command="{Binding DocumentChangedCommand}"
08.                                               CommandParameter="{Binding ElementName=Rtb, Path=Document}" />
09.                    </i:EventTrigger>
10.                </i:Interaction.Triggers>
11.            </telerik:RadRichTextBox>
Tanya
Telerik team
 answered on 12 Apr 2018
1 answer
81 views

I am having trouble with the order of events being called when using the custom keyboard command example code.  

I want to change the behavior of the enter key to exactly what the example is doing. This works great until I add a cell datatemplate and an edit cell data template. 

Before changing the example everything is working fine.  The behavior is as follows: 

1. Start editing a value

2. Using the mouse set focus on some other field( thus comiting the edit) OR pressing enter on the keyboard 

3. The property setter for statdiumcapacity is called

4. The ClubsGrid_OnCellEditEnded callback is called.

After adding in a cell template and an edit cell template as follows: 

<Window x:Class="WpfApplication1.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"
        xmlns:my="clr-namespace:CustomKeyboardCommandProvider"
        Title="MainWindow" Height="300" Width="700">
    <Window.Resources>
        <my:MyViewModel x:Key="MyViewModel"/>

      <DataTemplate x:Key="DataTemplate">
        <TextBlock Text="{Binding StadiumCapacity}" TextAlignment="Center"/>
      </DataTemplate>
        
      <DataTemplate x:Key="EditDataTemplate">
      <TextBox Text="{Binding StadiumCapacity}"  />
      </DataTemplate>

  </Window.Resources>
    <Grid DataContext="{StaticResource MyViewModel}">       
        <telerik:RadGridView Name="clubsGrid"  BeginningEdit="ClubsGrid_OnBeginningEdit" CellEditEnded="ClubsGrid_OnCellEditEnded" AutoGenerateColumns="False"
                             ItemsSource="{Binding Clubs}">
          <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="Stadium Cap" Width="200" CellTemplate="{StaticResource DataTemplate}" CellEditTemplate="{StaticResource EditDataTemplate}" />
            </telerik:RadGridView.Columns>
    </telerik:RadGridView>
    </Grid>
</Window>

 

Now the sequence changes.  The mouse setting focus away from the edit works as before.  However, the enter key does not

1. Start editing a value
2. Press enter on the keyboard while still editing.
3. The ClubsGrid_OnCellEditEnded callback is called.

4. The property setter for statdiumcapacity is called

 

The order is reversed?  What am I missing to make the behaviour the same using datatemplates as not using datatemplates

 

Phil
Top achievements
Rank 1
 answered on 12 Apr 2018
11 answers
651 views
I am using RadTreeView, there is a request to rename the name of the tree node with the following ways:
1. When the user presses "F2" key
2. When the user double clicks the tree node
3. When the user right click the mouse, select "Rename" from the context menu.

The tree node enters "editing mode" for editing.

The challenging work is to how to implement the above features with MVVM.

Can anyone provide some sample code to demo how to implement that?

Thanks in advance!


Swapnil
Top achievements
Rank 1
 answered on 12 Apr 2018
3 answers
187 views

Hi, 

I tried using the export functionality of the RadGridView and I found that the ExportAsync generates an empty file. When I use the plain Export method instead, it works correctly. Can someone take a look at this and confirm whether it works or not.

 

Thanks.

Martin Ivanov
Telerik team
 answered on 12 Apr 2018
5 answers
191 views

Greetings,

 when using WPF UI with a tablet we occur following problem. When touching a AutoCompleteBox nothing happens.

Hope someone can enlighten me, since every other control seems to work.

 

Regards

André

Joshua
Top achievements
Rank 2
 answered on 11 Apr 2018
6 answers
117 views

Hi there,

the CloseButton in SearchPanel currently has no effect. The SearchPanel stays open.

2018.1.220.45

Best regards

Dilyan Traykov
Telerik team
 answered on 11 Apr 2018
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?