Telerik Forums
UI for WPF Forum
4 answers
342 views
I would also like to see the option of having round corners on the tiles.

Ed
Christophe
Top achievements
Rank 1
 answered on 26 Mar 2015
6 answers
590 views
I'm trying to support a postal code textbox using the MaskedTextInput and was wondering if it was possible to databind to the mask property?

The logic is so:
  1. Initially the textblock is blank so the mask would allow one number or letter.
  2. If the first digit entered is a letter we dynamically change the mask to Canadian postal code (A#A #A#)
  3. Otherwise it's a USA zip and the mask is #5

Perhaps I'm making this too complicated and there's a way to supply a mask in the form of a regex that can accomplish this for me?

Einar
Top achievements
Rank 1
 answered on 25 Mar 2015
3 answers
290 views
I have a windows forms control I want to use as part of a custom editor. I created a WPF usercontrol as a wrapper and set my winforms usercontrol as the child of a WindowsFormsHost element. I have a TextBlock in the WPF usercontrol as well, so I can see where the WPF content is and where the winforms content is. I applied an EditorAttribute to a property with the style set to DropDown. The WPF TextBlock is visible, a border around the winforms content is visible, but the winforms usercontrol is not shown.  If I change the editor style to Modal, all of the content is shown correctly in the modal dialog.  Are there restrictions or known problems with using WindowsFormsHost in an editor with the DropDown style?  Thanks - Mitch
Mitchell
Top achievements
Rank 1
 answered on 25 Mar 2015
4 answers
140 views
Hi,

I am using RadGridView with filter set to 'filterrow' (Version 2014.2.729.40). I have a couple of columns and not all columns are visible at the same time. It requires scrolling from left to right to access the rightmost column.

If I insert a filter value into the filter editor of any column (in fact it doesn't matter which one it is), this value is cleared out of the filter editor if this filter editor is scrolled out of the visible part of the window. This does not happen, if I apply that filter via the filter-funnel.
But if I only type a few characters into the filter editor, that value has disappeard after the filter editor reappears in the visible part of the window.

Can You tell me why those inputs are deleted?

I recognized, that the FieldFilterEditorCreated-Event is also called every time a filter editor leaves the visible part of the window. Why?

Regards Heiko
ITC
Top achievements
Rank 1
 answered on 25 Mar 2015
1 answer
127 views
Hello, Can you please provide a sample?
Stefan
Telerik team
 answered on 25 Mar 2015
1 answer
206 views
Hello,  First I apologize if this is the wrong place for this question.  I'm new to using Telerik stuff and this is my first post.

I am retrieving a RTF string from a legacy database and using RTFFormatProvider.Import loading it to a RadDocument.
Occassionally I get an RTF string that causes the Import to Stack Overflow and I have no way to recover.  Ultimately the data needs to be converted to HTML for later viewing.

I'm using Visual Studio 2013, The .net40 Telerik version I have is 2012.2.0725.40 (which I understand is not the most current).
I can provide an rtf file that contains the data that causes the crash.  Hopefully someone can help me out.
Just wondering if this is a known potential issue or it's a version issue for me?

The conversion works the majority of the time.

My code looks something like this:

using Telerik.Windows.Documents.FormatProviders.Html;
using Telerik.Windows.Documents.FormatProviders.Rtf;
using Telerik.Windows.Documents.Model;

namespace Conversion
{
    public class RTFConversion
    {
        public string ConvertRTF(string rtfText)
        {
            RtfFormatProvider rftFormatProvider = new RtfFormatProvider();
            HtmlFormatProvider htmlFormatProvider = new HtmlFormatProvider();

            RadDocument radDocument = rftFormatProvider.Import(rtfText);
            return htmlFormatProvider.Export(radDocument);
        }
    }
}

Thanks in advance for any help.

John
Petya
Telerik team
 answered on 25 Mar 2015
1 answer
117 views
I have a application that I am using the telerik controls pretty extensively. The is an invoicing application where the user can have many invoices open at any given time. Everything seems to be working fine other than when the user closes an invoice and I remove the item from the observable collection that the RadTabControl has as a data source. The memory will continually go up and never back down. I have tried to profile this in just trace, however it doesn't see any major issues. I have double checked all of my lists and event handlers to make sure everything is being cleared when the viewModel is disposed.
I have read about the "IsContentPreserved" property of the tab control and that maybe that could be an issue. I change that to false and it didn't make any difference for me.
I have also tried just creating a new list and never adding it to the view to see what would happen and usage is tiny in comparison.
Any help on this would be cool

Thank you,
Kiril Vandov
Telerik team
 answered on 25 Mar 2015
5 answers
117 views
Hi there,

I've subclassed the FilteringControl in order to hook in to the OnApplyFilter() call.  When I apply this filtering control to my column nothing happens when I click on the filter button in the column header.  When I test it out using the parent FilteringControl class it works fine.

This is the Xaml...

<Window x:Class="TestTelerikGrid.MainWindow"
        xmlns:testTelerikGrid="clr-namespace:TestTelerikGrid"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <telerik:RadGridView x:Name="radGridView" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}">
                    <telerik:GridViewDataColumn.FilteringControl>
                        <testTelerikGrid:BasicFilteringControl />
                    </telerik:GridViewDataColumn.FilteringControl>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>


This is the code behind...

using System.Windows;
using Telerik.Windows.Controls.GridView;
 
namespace TestTelerikGrid
{
  /// <summary>
  /// Interaction logic for MainWindow.xaml
  /// </summary>
  public partial class MainWindow : Window
  {
    public MainWindow()
    {
      InitializeComponent();
      radGridView.ItemsSource = EmployeeService.GetEmployees();
    }
  }
 
  public class BasicFilteringControl : FilteringControl
  {
  }
}


Then this is the data generation code...

using System.Collections.ObjectModel;
 
namespace TestTelerikGrid
{
  public class Employee
  {
    public string FirstName
    {
      get;
      set;
    }
    public string LastName
    {
      get;
      set;
    }
    public int Age
    {
      get;
      set;
    }
    public bool IsMarried
    {
      get;
      set;
    }
  }
 
  public class EmployeeService
  {
    public static ObservableCollection<Employee> GetEmployees()
    {
      ObservableCollection<Employee> employees = new ObservableCollection<Employee>();
      Employee employee = new Employee();
      employee.FirstName = "Maria";
      employee.LastName = "Anders";
      employee.IsMarried = true;
      employee.Age = 24;
      employees.Add(employee);
      employee = new Employee();
      employee.FirstName = "Ana";
      employee.LastName = "Trujillo";
      employee.IsMarried = true;
      employee.Age = 44;
      employees.Add(employee);
      employee = new Employee();
      employee.FirstName = "Antonio";
      employee.LastName = "Moreno";
      employee.IsMarried = true;
      employee.Age = 33;
      employees.Add(employee);
      employee = new Employee();
      employee.FirstName = "Thomas";
      employee.LastName = "Hardy";
      employee.IsMarried = false;
      employee.Age = 13;
      employees.Add(employee);
      employee = new Employee();
      employee.FirstName = "Hanna";
      employee.LastName = "Moos";
      employee.IsMarried = false;
      employee.Age = 28;
      employees.Add(employee);
      employee = new Employee();
      employee.FirstName = "Frederique";
      employee.LastName = "Citeaux";
      employee.IsMarried = true;
      employee.Age = 67;
      employees.Add(employee);
      employee = new Employee();
      employee.FirstName = "Martin";
      employee.LastName = "Sommer";
      employee.IsMarried = false;
      employee.Age = 22;
      employees.Add(employee);
      employee = new Employee();
      employee.FirstName = "Laurence";
      employee.LastName = "Lebihan";
      employee.IsMarried = false;
      employee.Age = 32;
      employees.Add(employee);
      employee = new Employee();
      employee.FirstName = "Elizabeth";
      employee.LastName = "Lincoln";
      employee.IsMarried = false;
      employee.Age = 9;
      employees.Add(employee);
      employee = new Employee();
      employee.FirstName = "Victoria";
      employee.LastName = "Ashworth";
      employee.IsMarried = true;
      employee.Age = 29;
      employees.Add(employee);
      return employees;
    }
  }
}

I'm running .Net 4.5 and Telerik 2015.1 noxaml binaries (although I've had the same issue with 2014.3 Telerik noxaml binaries too).  I suspect I'm doing something wrong here as this basic action doesn't appear to be working for me.

Thanks in advance for your help.
Russell
Russell
Top achievements
Rank 1
 answered on 25 Mar 2015
3 answers
200 views
Hi Telerik team,

Does WPF Telerik Chart control support range selection? If yes then could you please attach the example?
I need to add chart control to view where user can select some range. 

I've attached the sample image of chat.

Thank you,
Iurii.
Milena
Telerik team
 answered on 25 Mar 2015
1 answer
230 views
Hi,

I am interested in capturing when somebody clicks on the RadRibbonBackstageItem item to perform some action before It get opened or after it get closed. I tried wiring up the Click event but I didn't see it get fired at all. 

I had no luck with Command as well. So, I am wondering what is the best way to achieve that? 

<telerik:RadRibbonBackstageItem Header="Recent"  Icon="/Images/Recent.png" Click="OnRecentTabClicked" />


The code behind for the method is: 

 public void OnRecentTabClicked(object sender, RoutedEventArgs e)
{
  RadRibbonBackstageItem item = sender
as RadRibbonBackstageItem;
  // do the rest....
}



Thanks,  
Martin Ivanov
Telerik team
 answered on 25 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?