Telerik Forums
UI for WPF Forum
1 answer
271 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
151 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
154 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
253 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
285 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
4 answers
476 views
In reviewing the post How do i make a label inside a gauge? it appears that the code sample may be for a previous version of the Gauge?

The sample does appear to sort of work by importing the 
clr-namespace:Telerik.Windows.Controls.Gauges;assembly=Telerik.Windows.Controls.Gauge
namespace. However, the label location is always at the top left of the UserControl the RadRadialGauge is contained within.

Is there an updated sample that demonstrates how to use a custom label inside a gauge that will scale when the gauge is resized?

Thanks!
Milena
Telerik team
 answered on 25 Mar 2015
4 answers
275 views
Hello, 
How can all PropertyDefinition groups Collapse/Expand by XAML code or MVVM pattern ? I've tried IsExpanded property set to False but not work.


<telerik:RadPropertyGrid x:Name="propertyGrid1" AutoGenerateBindingPaths="False"
                         Grid.Column="2"
                         Item="{Binding}"
                         LabelColumnWidth="180"
                         AutoGeneratePropertyDefinitions="False" IsGrouped="True">
    <telerik:RadPropertyGrid.PropertyDefinitions>
        <telerik:PropertyDefinition Binding="{Binding bind}" OrderIndex="0" IsExpanded="False"
                                    GroupName="Group1"
                                    DisplayName="Enable"/>
        <telerik:PropertyDefinition GroupName="Group1" OrderIndex="1"
                                    DisplayName="DisplayName1"/>
        <telerik:PropertyDefinition GroupName="Group2" OrderIndex="2"
                                    DisplayName="DisplayName2"/>
        <telerik:PropertyDefinition GroupName="Group3" OrderIndex="3"
                                    DisplayName="DisplayName3" />                       
    </telerik:RadPropertyGrid.PropertyDefinitions>
</telerik:RadPropertyGrid>
Maya
Telerik team
 answered on 25 Mar 2015
5 answers
548 views
I have a RadButton located on a RadGridView in order to delete rows.

I would prefer not to have the button display on each row by default.

Instead, I would like the "Delete" button only be visible when the row has been selected or on row mouse over. 

Is this possible?

Any assistance on this is Much Appreciated!


Vanya Pavlova
Telerik team
 answered on 25 Mar 2015
1 answer
367 views
I am using a WPF radgridview control to display some data. I am looking for a way to change the background color of a cell during runtime. I see how I can do it when I load data but how can I do it after the data is loaded?  I have some code that gets executed after some input from the user and I need to change some cells background color based on the users input. Ex: Row 3 , cell 5.
Dimitrina
Telerik team
 answered on 25 Mar 2015
8 answers
371 views
i have wpf tileview.

i am binding list of usercontrols as a itemsource to tileview

like below
<radtileview itemsource="{binding viewelements,mode=twoway}"/>

here viewelement is just usercontrol.

and i am binding list of viewelements.

what features i have to enable for tileview to provide drag and drop feature.

please try to provide the solution asap.
sai
Top achievements
Rank 1
 answered on 25 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?