Telerik Forums
UI for WPF Forum
6 answers
212 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
322 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
114 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
178 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
86 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
670 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
194 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
200 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
119 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
3 answers
240 views
Hi I can't seem to disable the acrylic effect on the RadTabControl. I have it nested inside a dockpanel that's inside a RadWindow, but as long as the RadWindow has acrylic applied, the RadTabControl's HeaderBackground does too, I've tried changing the IsAcrylic property for the tabcontrol in both XAML and cs and neither seem to work. It's either both the RadWindow and the RadTabControl have the transparent acrylic effect, or neither of them do. Is there something I'm missing or is this a bug?

Sia
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
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
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?