Telerik Forums
UI for WPF Forum
1 answer
223 views
Hey, I'm using Visual Studio 2012 and have a C# based WPF project.  I've imported the telerik controls into my toolbox and it looks like they're all there except for the RadComboBox.  I can access the RadComboBox library in the code, just can't see it in my toolbox to place in forms.  I've tried switching the version number of my project, but it still doesn't show up.  Is there something I need to do to import the RadComboBox to the toolbox?
Georgi
Telerik team
 answered on 29 Jan 2013
2 answers
136 views
Hello, I'm creating a bar chart. My AxisY is a integer count and my AxisX is a string for a build number.

My ItemSource is pointing to an

ObservableCollection<Tuple<string, int>>

If I have 30 build buckets, when viewing my chart the buckets for my AxisX are numbered 1-30, instead of the string buildnumber. How can I get my buildnumber to show up as the tick name instead of this 1-30?

Thanks, Josh

Image Example
<telerik:RadChart x:Name="radChart" ItemsSource="{Binding DataPoints}"
                          Visibility="{Binding ServiceState,
                          Converter={StaticResource EnumToVisibilityConverter},
                          ConverterParameter=ServiceOk}">
            <telerik:RadChart.DefaultView>
                <telerik:ChartDefaultView>
                    <telerik:ChartDefaultView.ChartArea>
                        <telerik:ChartArea>
                            <telerik:ChartArea.AxisX>
                                <telerik:AxisX  IsDateTime="False"
                                                LayoutMode="Auto"
                                                Title="Build"
                                                LabelRotationAngle="55"
                                                Visibility="Visible"/>
                            </telerik:ChartArea.AxisX>
                            <telerik:ChartArea.AxisY>
                                <telerik:AxisY Title="Unique Crashes"
                                               Visibility="Visible" />
                            </telerik:ChartArea.AxisY>
                        </telerik:ChartArea>
                    </telerik:ChartDefaultView.ChartArea>
                </telerik:ChartDefaultView>
            </telerik:RadChart.DefaultView>
Petar Kirov
Telerik team
 answered on 29 Jan 2013
1 answer
263 views
Hi, 


I'm struggling on a sorting problem. I have 2 gridviews that are bound to the same list. Only one of the gridviews is editable. The other one is for reporting purposes only and so readonly. 

Because they represent the same data, the filtering and sorting must be syncronized. For the sorting part, I've added a 'Sorting' event on grid n°1. In the event handler I copy the sorting descriptors into the second grid. This works fine.

private void GridViewSorted(object sender, GridViewSortedEventArgs e)
{
    var datagrid = sender as RadGridView;
    if (datagrid == null || !datagrid.Equals(EmployeeGrid)) return;
 
    FormationGrid.SortDescriptors.Replace(datagrid.SortDescriptors);
}


When I edit a cell of one of the sorted columns in grid n°1, the grid is automatically sorted according to the existing sorting of that column. This is desired off course. 
However, the event 'GridViewSorted' isn't called and thus my second grid doesn't sort, which makes that my grids aren't sorted equally anymore. 

Does anybody have some advice on how to make sure my both grids are synchronized after a cell edit?
I've tried following already, but sorting on the 2nd grid just kicks in, when you enter and leave the same cell again after you've edited it. 

private void EndCellEdit(object sender, GridViewCellEditEndedEventArgs gridViewCellEditEndedEventArgs)
{
    var datagrid = sender as RadGridView;
    if (datagrid == null || !datagrid.Equals(EmployeeGrid)) return;
 
    FormationGrid.SortDescriptors.Replace(datagrid.SortDescriptors);
}





Dimitrina
Telerik team
 answered on 29 Jan 2013
1 answer
213 views
map
Hi,
I'm new to WPF and telerik and tried to download the example demo Bing and openstreetmap providers
when i try to run it i get a lot of errors and this has been happening to me with all the demo examples.

can someone attach a working project for any map. so I can start from there

or what do i have to change to make the code run beside :

<UserControl x:Class="Telerik.Windows.Examples.Map.Shapefile.WorldContinents.Example"
to be :
<UserControl x:Class="my space name"

delete  xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=QuickStart.Common"

I keep getting error in this line only:

<UserControl.Resources>
        <example:ShapefileViewModel x:Key="DataContext" Region="world_continents" />
    </UserControl.Resources>


ShapefileViewModel ??!!!


thank you
Andrey
Telerik team
 answered on 29 Jan 2013
3 answers
109 views
Hello,
WPF controls version: 2012.2.0912.40

I'm attempting to create one (1) scheduleview for multiple employees.  (We're using the Day and Week View Definitions only). The goal is to be able to view different "Work Schedules" of several employees. So if I check the employee's name, the scheduleview should only display that employee's work schedule (i.e,. 8am to 5pm, or 9am to 6pm, etc). I can do this fine in code behind using the ScrollTimeRuler(just as a sample), but we are using MVVM and I do not see a way to call ScrollTimeRuler from my ViewModel.

Is this possible? and/or do you have any suggestions or samples?

Thanks,
Brian Foster
Yana
Telerik team
 answered on 29 Jan 2013
9 answers
713 views
Hello,

I am trying to change the styling of RadPanes. I ultimately want to also change the shape of the tabs, but for now I am just trying to customize the colors of the tabs, text, and border of the pane.

I tried putting a RadDocking with a RadPaneGroup and two RadPanes in Blend. I can see the tabs, but when I click on the RadDocking item in the Objects and Timeline, I only see an option to edit a copy of the Template, not the Style. Using the Object > Edit Style menu only show the Create Empty option enabled.

I would appreciate any help as I won't have any hair left to pull out soon. Thanks.
Masha
Telerik team
 answered on 29 Jan 2013
0 answers
77 views
There is an window with three combo boxes:
<Window ... >
    <StackPanel>
        <telerik:RadAutoCompleteBox/>
          
        <telerik:RadAutoCompleteBox
            x:Name="_combo"
        />
      
        <telerik:RadAutoCompleteBox/>
    </StackPanel>
</Window>

and back code:
public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        Loaded += MainWindow_Loaded;   
    }
 
    void MainWindow_Loaded(object sender, RoutedEventArgs e)
    {
        _combo.Focus();
        //_combo.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next)); //(!)         
    }
}



Steps:
1. show window
2. type some text (without tabs)

expected: some text appears in second combo box with name "_combo".
actual: second combo box has focused appearance, but does not accept any input
actual with line (!) uncommented: as expected.

This is strange behavior because, for example, dateTimePicker would work as expected without uncommenting line (!)
Alexus
Top achievements
Rank 1
 asked on 29 Jan 2013
2 answers
165 views
Hello.
Question is "How to tell RadTimePicker to parse input text from CurrentDateTimeText property and refresh SelectedTime property by parsed value".

Background:
My control consists from RadTimePicker and two buttons - accept and cancel.
It works but there is an issue.
If user input "1234" to the picker an then press accept button without pressing enter - there is old value in  SelectedTime property (but  CurrentDateTimeText contains user`s input). 

Thanks.
Alexus
Top achievements
Rank 1
 answered on 29 Jan 2013
2 answers
113 views
I have a RadTreeListView in an MVVM project which I am trying to persist with the IsolatedStorageProvider.  The RadRibbon control save and load routines use a mediator pattern with ICommand and command classes.It only partially works.  I can save and restore column width settings, but IsExpanded and IsSelected cannot be saved and restored.  Also, it will not save and restore columns that are moved.  I save the settings, move a column and then load the settings, expecting the column to return to its original position, but some or all of the data in the columns disappear.  There may be other properties that can be saved or can't be saved, but I don't know what to test for. 
Gk
Top achievements
Rank 1
 answered on 29 Jan 2013
1 answer
251 views
Hello,

I have a problem with WPF Command and I need some Help.
I defined some static RoutedCommand in my App class. My main window is composed of a RadRibbonView and a RadTabControl.
I Populate the TabControl with some classes that inherit from RadTabItem.
 Buttons in the ribbon are bound to my RoutedCommand and I add commandbindings bound to the commands In my RadTabItem children classes.
My TabItem has the Content property set to a UserControl.The buttons works fine while the TabItem header has the focus but if I click on the content of the TabItem (my UC), the button stop calling the CanExecute and Executed callbacks of my TabItem.
I Want the selected TabItem always manage the CanExecute and Execute call for all commands.

How can i handle this ?

Thank you,
Benjamin
Top achievements
Rank 1
 answered on 28 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?