Telerik Forums
UI for WPF Forum
4 answers
154 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
134 views
Hello, Can you please provide a sample?
Stefan
Telerik team
 answered on 25 Mar 2015
1 answer
223 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
122 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
124 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
206 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
251 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
441 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
245 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
499 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
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
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
Licensing
WebCam
CardView
DataBar
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?