Telerik Forums
UI for WPF Forum
3 answers
268 views
Hello!

How can i scroll through the GridView, after adding a new row, and make this row focus?
I'm adding new row into ObservableCollection which is binded to grid!

maybe i can achieve something like in this docs, but with my default values
http://www.telerik.com/help/wpf/gridview-managing-data-add-new-entries.html

Please suggest me!!!
Thanks and Regards!!!
Dimitrina
Telerik team
 answered on 26 Jun 2013
8 answers
305 views
Hello!

How can i add column of row headers, to have not only column headers but row headers too??

please suggest me asap!

Thanks and regards!
Dimitrina
Telerik team
 answered on 26 Jun 2013
1 answer
43 views
I have a WPF view that have 5 calendar controls on it.  When the view is first loaded all of the dates are grey in color, but when the mouse hovers over each date they switch to black.  When navigating months all of the dates turn black and everything is fine at that point, it is just that inital load that is an issue?  is there a default setting or a way to set that style so they start out black to begin with, not just on mouse over?
Kalin
Telerik team
 answered on 26 Jun 2013
1 answer
125 views
Hi - I'm not sure where to post this, if this isn't the right place please let me know.

We have an application using WPF/RIA services and an MVVM framework.  We called stored procedures in SQL to get data through our model.

I've found an issue that I can't explain and so don't know how to fix.  What we are seeing is that the results being returned by our stored procedures when I run them directly in SQL Server Management Studio don't match what I see in the application.  In this case, we are displaying the data in aRadGridView, but I can look at the data when it is returned in the context and it's wrong there too. 

The problem is that not all the records I expect to see are there.  For example, in one case my stored procedure run directly from SMS returns 251 rows, the grid in our app is displaying 20 of them, and I see those 20 rows in the results when I look running in Debug.

Are there settings that limit the amount of rows that are returned?  In some cases, there are a lot of rows, but what we've found in the past is that the app times out.  I'm not sure where else to look.

Any help would be appreciated!

Lisa
Yana
Telerik team
 answered on 26 Jun 2013
2 answers
245 views
Since I don't see any complaints about this feature, I assume that there is something fundamental not mentioned in any documentation or video that somehow activates this functionality, because following the video and online documentation (i.e. the vary basic examples) I NEVER see the parent child setup (expanders and indentation). Any push in the right direction or information about the latest on where the development of the WPF version of this control is would be greatly appreciated. So far, it seems unusable, but I cannot believe that since this control is in released status for WPF; listed as new. First tried it in our application, but then thought the complexities were causing issues. But now I see that the basic application in its own WPF window/project/solution fails as well.

This was built with the just downloaded Q2 2013 6/11 version. No change from Q3 2012 1017 internal build that we were running.

Very frustrating.

<Window x:Class="GanttChart.MainWindow"
        Title="MainWindow" Height="350" Width="525" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid>
        <telerik:RadGanttView Margin="0" Name="radGanttView1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <telerik:RadGanttView.Columns>
                <telerik:ColumnDefinition ColumnWidth="175" Header="Title" MemberBinding="{Binding Title}" />
                <telerik:ColumnDefinition ColumnWidth="175" Header="End"  MemberBinding="{Binding Start}"/>
                <telerik:ColumnDefinition ColumnWidth="175" Header="Start"  MemberBinding="{Binding End}"/>
            </telerik:RadGanttView.Columns>
        </telerik:RadGanttView>
    </Grid>
</Window>
 
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
using Telerik.Windows.Controls.GanttView;
using Telerik.Windows.Controls.Scheduling;
 
namespace GanttChart
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            var d = new DateTime(2012, 3, 1);
            radGanttView1.VisibleRange = new VisibleRange(d, d.AddMonths(2));
            var tasks = new ObservableCollection<GanttTask>();
            for (int i = 0; i < 4; i++)
            {
                var gt = new GanttTask(
                              d.AddDays(14 * i),
                              d.AddDays(14 * i + 14),
                             "Title " + i.ToString());
                for (int j = 0; j < gt.Duration.Days; j++)
                {
                    var childGT = new GanttTask();
                    childGT.Start = gt.Start.AddDays(j);
                    childGT.End = childGT.Start.AddHours(23);
                    childGT.Title = "Child " + i.ToString() + "/" + j.ToString();
                    gt.Children.Add(childGT);
 
                }
                tasks.Add(gt);
            }
            radGanttView1.TasksSource = tasks;
            radGanttView1.PixelLength = new TimeSpan(0, 1, 0, 0);
        }
    }
}
Matt
Top achievements
Rank 2
 answered on 26 Jun 2013
3 answers
240 views
first 
Hello...
Im using two radtabcontrols..
itemssource ,DisplayMemberPath, ContentTemplate is working but selectedIndex is not working
I tried manything but that was not working...
please help me...

here is my source..
selectedIndex In stroyActtemplate is not working...

<
Grid>
        <Grid.Resources>
            <DataTemplate x:Key="StoryChapterTemplate">
                <TextBlock Text="{Binding Name}" />
            </DataTemplate>
            <DataTemplate x:Key="StoryActTemplate">
                <telerik:RadTabControl ItemsSource="{Binding TempSubList}" DisplayMemberPath="Name" ContentTemplate="{StaticResource StoryChapterTemplate}" SelectedIndex="{Binding Selected,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" />
            </DataTemplate>
        </Grid.Resources>
        <telerik:RadTabControl x:Name="tabControl" ItemsSource="{Binding TempSubList}" DisplayMemberPath="Name" ContentTemplate="{StaticResource StoryActTemplate}" SelectedIndex="{Binding Selected,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" />
        <Button Width="30" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Left" Click="Button_Click">A</Button>
        <Button Width="30" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="40,0" Click="Button_Click_1">B</Button>
        <Button Width="30" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Right" Click="Button_Click_2">C</Button>
        <Button Width="30" Height="30" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="40,0" Click="Button_Click_3">D</Button>
</Grid>
Petar Mladenov
Telerik team
 answered on 26 Jun 2013
1 answer
114 views
Hi,
I have been trying to achieve this without any luck. I would like to style the whole header with the arrow/expander icon.
How can I achieve this ?

Best regards
kristján
Kristjan Einarsson
Top achievements
Rank 1
 answered on 26 Jun 2013
5 answers
198 views
Hi Telerik support team,

I am trying to set margin between headers in RadDocking control, I tried to create a style that target PaneHeader but nothing happened.
I also, tried to override the HeaderTemplate of RadPane but also not worked.

Please show me the easiest way to do that.

Thanks,
Akram

Masha
Telerik team
 answered on 26 Jun 2013
2 answers
201 views
I have read that after inserting a new row in edit mode, it takes two Escape presses to allow the row to be deleted.  Why does it take two presses, what is the underlying functionality that requires this, and is there a way to configure it so the user only has to press once?

Thanks in advance,
Steve
Steve
Top achievements
Rank 1
 answered on 25 Jun 2013
1 answer
90 views
Hello,

PLEASE SOMEONE ANSWER THIS ASAP.

I bind a GridViewComboBoxColumn to a list of objects, now problem at all with anything there including setting to currently selected value.
I need to give the user the option of selecting blank item as that field can be empty. Need to put a blank item into the GridViewComboBoxColumn at the top of the list.

HOW CAN I DO THAT? Standard combobox is easy and I don't want to use those in a CellEditTemplate either as using that will change the ViewModel(s) and bindings quite a bit.

Thanks
Ivan Ivanov
Telerik team
 answered on 25 Jun 2013
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?