Telerik Forums
UI for WPF Forum
4 answers
131 views
I found two problems with zooming a line chart:

1) Clipping of data points
Let's say I have 5 points at x = 1..5. If I zoom to x = [1.5, 3.5] the line is only drawn for the points with x = 2,3,4. What i would expect is, that the line is interpolated from x = 1 to x = 2 and drawn starting with x = 1.5...

This is not only true for zooming but for drawing in general (e.g. manual axis).
If no data point is with the specified range, the line is not drawn at all. Instead i would expect the visible sector of the line is drawn.

2) Visibility
I set the visibility of some series using 
_diagram.DefaultView.ChartArea.DataSeries[myIndex].Definition.Visibility = false 
However, after zooming or scrolling, all series are visible again.

3) If at least one series has no data in a zoom range, zooming is not possible at all. (see 1)

Please fix this in an upcoming release.
Kind regards
Hartmut
Vladimir Milev
Telerik team
 answered on 07 Dec 2010
1 answer
65 views
hey! guys:
 I created a datatable by code and set it to gridView's itemsource, everything looks good ,I could grouping cols my drag it to group panel.
then I created a button, in button's behind code, I created some group descriptors and added them into grid's group descriptors, Oops,
the problem is coming , the grid is not grouped as I expected, some rows were missing. 
  After I deleted the group cols by closing the grouping button and drag cols into group panel, the group is ok again.
GroupDescriptor descriptor1 = new GroupDescriptor();
descriptor1.Member = "Country";
descriptor1.SortDirection = ListSortDirection.Ascending;
this.gridView.GroupDescriptors.Add(descriptor1) ;
 
GroupDescriptor descriptor2 = new GroupDescriptor();
descriptor2.Member = "Name";
descriptor2.SortDirection = ListSortDirection.Ascending;
this.gridView.GroupDescriptors.Add(descriptor2) ;
The codes is same as demo. Did I miss something ?
stephen
Top achievements
Rank 1
 answered on 07 Dec 2010
5 answers
113 views

Dear Team ,
                  Is it possible in radtileviewitem to create custom template for minimize and maximize states.

Kind Regards 
Zarko
Telerik team
 answered on 06 Dec 2010
2 answers
56 views
Hi..

Do you have any Demo link for TreeListView Control in using WPF ?
Veselin Vasilev
Telerik team
 answered on 06 Dec 2010
5 answers
148 views
Not quite sure how to detail this problem as it does not happen right away but only after the application has done some work, I'm still trying to isolate the issue but thought I'd post what I know.

Eventually the grid starts displaying a lot of wrong data especially when another window overlays the application and then is removed, the application window does not refresh until the mouse is moved over the screen. The odd part is that if you move the mouse down the screen is correct but when you move the mouse up the screen will display incorrect information.

In the simplest form the highlight line breaks up, but only when the mouse is moved up the screen. Its always correct when you move the mouse down the screen.

The attached image shows this condition where the current link and the highlight line are broken across multiple screen rows; again only when the mouse is moved up the screen, if its brought down over the rows they are then correctly refreshed.

Any clues on where I start looking for the problem.


After returning to the application it now displays the firefox screen in the body of the window as shows in the second attached png file. If you minimize the screen and restore it the display is correct but as soon as you move the window about the display it returns to the incorrect view - with the firefox window showing. Moving the mouse over the window causes it to be updated with the correct information. But the minimize/restore/move sequence again returns to junk.
Stephen
Top achievements
Rank 2
 answered on 06 Dec 2010
1 answer
204 views
I'm a newbie with WPF and I copied some code into my Resource Dictionary so that all standard TextBoxes and Buttons would get the radcontrols styles. I found it in another thread.

<Style TargetType="Button" 
         BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=Button}}" />
  <Style TargetType="ListBox" 
         BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=ListBox}}" />
<Style TargetType="TextBox" 
         BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=TextBox}}" />
<Style TargetType="CheckBox" 
         BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=CheckBox}}" />


Now, I found that I can customize the error template using the following code.

<Style TargetType="Control" x:Key="ValidationErrorTemplate">
    <Style.Triggers>
      <Trigger Property="Validation.HasError" Value="True">
        <Setter Property="ToolTip"
                Value="{Binding RelativeSource={x:Static RelativeSource.Self},
                Path=(Validation.Errors)[0].ErrorContent}" />
      </Trigger>
    </Style.Triggers>
  </Style>
  
<Style TargetType="TextBox" BasedOn={StaticResource ValidationErrorTemplate}" />

How do I combine the two TextBox styles so that I can keep the Error Template at a common level (Control), and use it for all controls. Can I change the Error template style to be based on the Telerik ThemeResourceKey for Control? then base all other controls on it instead?
Vanya Pavlova
Telerik team
 answered on 06 Dec 2010
1 answer
141 views
Hello,
I want simple full-text search on grid and with your api it seem to be very easy.

var cd = new CompositeFilterDescriptor(){LogicalOperator = FilterCompositionLogicalOperator.Or};
foreach (var columnMeta in Grid.Columns)
{
    cd.FilterDescriptors.Add(new FilterDescriptor(columnMeta.UniqueName, FilterOperator.Contains, SearchText, false));
}
Grid.FilterDescriptors.Add(cd);

Problem arise when column type is not String. For Int or DateTime it raises exception.

  1. Are you aware of this exception behaviour?
  2. How to create FilterDescriptor not depend on column type, and how to search "formated value visible in grid" (not value in DTO)?

 

Stack:
  at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   at Telerik.Windows.Data.Expressions.FilterDescriptorExpressionBuilder.CreateValueExpression(Type targetType, Object value, CultureInfo culture) in c:\Dev3\branches\2010.Q3.Release\Core\Data\Expressions\Filtering\FilterDescriptorExpressionBuilder.cs:line 131
   at Telerik.Windows.Data.Expressions.FilterDescriptorExpressionBuilder.CreateBodyExpression() in c:\Dev3\branches\2010.Q3.Release\Core\Data\Expressions\Filtering\FilterDescriptorExpressionBuilder.cs:line 38
Yavor Georgiev
Telerik team
 answered on 06 Dec 2010
1 answer
104 views
Helllo Reader,
                    I am using the trail version of RadControls toolkit. When i work with Telerik:RadGridView Control with telerik:GridViewSelectColumn in WPF Application and m trying to access the Checked rows of this Telerik:RadGridView, there is no way to access the telerik:GridViewSelectColumn checked property....

Please help me.......
Vanya Pavlova
Telerik team
 answered on 06 Dec 2010
2 answers
114 views
Hi,
I'm new to Telerik and have just downloaded the latest WPF trial.
I'm having trouble with the Gridview (version 2010.3.1110.35).
I'll post the XAML below, but I'm populating from an observableCollection pulled from a WCF service.
The grid populates OK, but I cannot group the columns please can you advise.
The window is binding to an ViewModel.

I've tried another sample wher I create some objects on the fly, putting them into an observableCollection and binding to it ... and
the grouping has worked fine.

Many thanks,
Joseph.

<Window x:Class="VisionRT.CRM.WPF.TelerikMainWindow"
        mc:Ignorable="d"
        DataContext="{Binding Main, Source={StaticResource Locator}}"
        xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
        xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:System="clr-namespace:System;assembly=mscorlib"
        d:DesignHeight="390"
        d:DesignWidth="729"
        Width="650" Loaded="Window_Loaded">
 
    <Grid>
        <telerik:RadGridView HorizontalAlignment="Stretch" Margin="12,62,12,0" Name="radGridView1"                             
                             ItemsSource="{Binding Path=ContactList, Mode=TwoWay}"
                             AutoGenerateColumns="False"
                             IsSynchronizedWithCurrentItem="True"
                             VerticalAlignment="Top" Height="248">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Title" DataMemberBinding="{Binding Title}"  Width="*" IsGroupable="True" >
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerikData:CountFunction Caption="Count: " />
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="First Name" DataMemberBinding="{Binding FirstName}" Width="*"   IsGroupable="True" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>
 
Vanya Pavlova
Telerik team
 answered on 06 Dec 2010
4 answers
121 views
I need  a editable rad grid view so that i can update / insert data in to my database through rad grid view only.
I need it today only Urgent.
Please help me as soon as possible
Maya
Telerik team
 answered on 06 Dec 2010
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?