Telerik Forums
UI for WPF Forum
4 answers
255 views
Hi,

We have a chart bind to List of custom object with 3 properties with 1000+, One is DateTime, other two are double values, there is a single line for each value so we have two lines for the given data. It is working fine and we don't have any problem except that chart shows line as there values weekly instead of daily values.

Next we need to show chart for data weekly, monthly and or quarterly as per user requirements. Is there any built in functionality to show chart as weekly or monthly while we have daily data.

Thanks
Peshito
Telerik team
 answered on 27 Oct 2011
5 answers
423 views
How do I get the GridView to unselect a row when selection mode is Single?  If not, is there a way to only allow a single row to be selected when selection mode is extended or multiple?
Maya
Telerik team
 answered on 27 Oct 2011
1 answer
90 views
Hello, I am using Telerik version 2011.2 in Visual Studio 2010 with sp1. My team is writing an mvvm complaint WPF application using C#.
We are using Telerik's RadGridView to display a large amount of data, and the data is being grouped.
One thing that is nice about the grid view is that the scroll bar does not include the tab headers, so they stay visible at all times.

What I want to do is have the group headers exhibit the same behavior, so once one scrolls to the top it stays locked right under the tab headers, until the next group header comes into it's level and replaces it.

To be honest, I don't know how to implement this, I was wondering if someone had better insight or any ideas.

Thank you.
Eli
Tsvyatko
Telerik team
 answered on 27 Oct 2011
4 answers
134 views

Hi there,

We are facing a strange problem in RadGridView. Upon adding a new row in GridView and input some data, application crashes after changing the focus to another row using Mouse. Whereas, if we press tab button to move focus on next column there is no crashing.

Specified argument was out of the range of valid values.
Parameter name: index

This problem occurs only on one solution whereas same usercontrol is working perfectly fine when exported to other solution having same Telerik references.

Please help us to resolve this problem. Thanks
Stack Trace is attached

Regards,
Rehan

Sajid
Top achievements
Rank 1
 answered on 27 Oct 2011
0 answers
122 views
Hi,
I want to get the checkbox and combobox controls within a RadGridView and want to modify a column in the same row. How it can be achieved?

Problem 1:
Want to save user name in a grid column within same row when I checked the checkbox value to true.
Problem 2:
Want to filter or rebind the combobox when a value is selected in another adjacent combobox as we have in Country and city relation.

Let me know if further explanation is required.

Thanks

Sajid
Top achievements
Rank 1
 asked on 27 Oct 2011
7 answers
275 views
Hi!

I am inserting new rows with the INSERT key. Once a row was inserted, it can be edited by the user.
I want to delete the newly inserted row, if the user cancels the edit mode with the ESC key. 

What is the easiest way to achieve this?

Thanks and regards,

Franziska
Franziska
Top achievements
Rank 1
 answered on 27 Oct 2011
1 answer
110 views
Dear telerik,
I am using radrichtext box. I am trying to set fontsize, font-family through style but it is not working.
<my:RadRichTextBox x:Name="txtChat">
    <my:RadRichTextBox.Resources>
        <Style TargetType="my:RadRichTextBox">
            <Setter Property="FontSize" Value="32"></Setter>
            <Setter Property="Height" Value="100"></Setter>
        </Style>
    </my:RadRichTextBox.Resources>
</my:RadRichTextBox>

Would you please tell me how can I set fontsize and font-family using style.

Regards
Animesh



Animesh Dey
Top achievements
Rank 2
 answered on 27 Oct 2011
4 answers
143 views
Hi,

I expect the SelectionEnd and SelectionStart values to stay within the bounds of the Maximum and Minimum but they don't.  I created a small sample app that demonstrates this behavior.

View:
<Grid>
    <StackPanel>        
        <StackPanel Orientation="Horizontal" Height="50">
            <Label Content="Upper Thumb" />
            <TextBox Width="300" Height="35" Text="{Binding Path=SelectionEnd}" />
        </StackPanel>
        <telerik:RadSlider Name="radSlider"
                           VerticalAlignment="top"
                           Width="25"
                           Height="200"
                           Margin="0 10 5 0"
                           IsSelectionRangeEnabled="True"
                           TickPlacement="None"
                           Minimum="0.0"
                           Maximum="1.0"
                           Orientation="Vertical"
                           SelectionStart="{Binding Path=SelectionStart, Mode=TwoWay, FallbackValue=0.25}"
                           SelectionEnd="{Binding Path=SelectionEnd, Mode=TwoWay, FallbackValue=0.5}"
                           LargeChange="0.05"
                           SmallChange="0.05" />
        <StackPanel Orientation="Horizontal" Height="50">
            <Label Content="Lower Thumb" />
            <TextBox Width="300"  Height="35" Text="{Binding Path=SelectionStart}" />
        </StackPanel>
    </StackPanel>
</Grid>

Code behind:
public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        var vm = new SliderViewModel();
        DataContext = vm;
    }
}

ViewModel:
public class SliderViewModel : INotifyPropertyChanged
{
    public SliderViewModel()
    {
        _selectionStart = 0.25;
        _selectionEnd = 0.5;
    }
    private double _selectionStart;
    public double SelectionStart
    {
        get
        {
            return _selectionStart;
        }
        set
        {
            if (_selectionStart != value)
            {
                _selectionStart = value;
                OnPropertyChanged("SelectionStart");
            }
        }
    }
    private double _selectionEnd;
    public double SelectionEnd
    {
        get
        {
            return _selectionEnd;
        }
        set
        {
            if (_selectionEnd != value)
            {
                _selectionEnd = value;
                OnPropertyChanged("SelectionEnd");
            }
        }
    }
    public event PropertyChangedEventHandler PropertyChanged;
    protected virtual void OnPropertyChanged(String propertyName)
    {
        var handler = PropertyChanged;
        if (handler != null)
        {
            handler(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}

Am I missing a property on the slider that will prevent this behavior or do I have to catch it manually?

Thanks,
Josh
Petar Mladenov
Telerik team
 answered on 27 Oct 2011
1 answer
139 views
Hello

I seem to have found an issue with the ScrollIntoView method of the RadGridView. If we take a well populated grid so that it is necessary to scroll to reach the bottom, with the entries grouped in various groups.
When modifying an item at the bottom of the grid, when the grid refreshes, it scrolls to a point above the selected item, the height above where it should be seems to coincide exactly with the combined height of each of the grouping rows.

Thanks
Nedyalko Nikolov
Telerik team
 answered on 27 Oct 2011
3 answers
723 views
Hi Telerik,

I am working with richtextbox. I am facing problem when I add text from code behind.
1. The richtextbox showing no text.
2. When I try to select text "Object reference not set" occur some time. Other time, after selecting the text become visible.
3. An additional enter is showing at the top of the richtextbox.

<Window x:Class="Imagine.TelerickTest.RichTextBox.WithoutMVVM"
        xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Documents"
        xmlns:radDoc ="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents"
        Title="WithoutMVVM" Height="500" Width="500">
    <DockPanel>
        <StackPanel DockPanel.Dock="Top">
            <TextBlock Text="Input"></TextBlock>
            <TextBox x:Name="txtInput" ></TextBox>
        </StackPanel>
        <Button x:Name="btnClick" Content="Click" Click="btnClick_Click" DockPanel.Dock="Top"></Button>
        <my:RadRichTextBox x:Name="txtMessage" LayoutMode="Flow"></my:RadRichTextBox>
    </DockPanel>
</Window>

public WithoutMVVM()
        {
            InitializeComponent();
        }
        private void btnClick_Click(object sender, RoutedEventArgs e)
        {
            var span = new Telerik.Windows.Documents.Model.Span(txtInput.Text);
            var p = new Telerik.Windows.Documents.Model.Paragraph();
            p.Inlines.Add(span);
 
            var section = new Telerik.Windows.Documents.Model.Section();
            section.Blocks.Add(p);
 
            txtMessage.Document.Sections.Add(section);
        }

Regards

Animesh 
Mihail
Telerik team
 answered on 27 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?