Telerik Forums
UI for WPF Forum
1 answer
53 views
Hellow,
 I build a RadControls WPF Application  in vs2012,but the Mainwindow.xaml is not a Radwindow ,I add a Radwindow and  set up  StartupUri=Radwindow.xaml,it does't work when running,How can I achieve this?
thanks  in advance
Kalin
Telerik team
 answered on 17 Jul 2013
1 answer
85 views
hi,
i could not found something about in the Forum and not in the Help but i try to ask this before starting to build my own one.
Is there a build in Dialog that i can call for dynamic customization of the Ribbon Bar like in Office where the user could cutomize the View itself. Adding new Groups , moving  and  hide controls inside , storing it local .... ?

regards.


Tina Stancheva
Telerik team
 answered on 17 Jul 2013
2 answers
353 views
Hello all
I have difficulty with RadContextMenu and particulary DataContext property.
I have a RadWindow ("mainWindow") who contain a RadTreeView. RadTreeView expose Items by HierarchicalDataTemplate, that this items who contains RadContextMenu.
My problem : DataContext of RadContextMenu is always DataContext of Item and I want the DataContext of the RadWindow.
I show you my XAML :
<telerik:RadWindow x:Class="Vue.MainWindow" x:Name="mainWindow"              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"                        
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<Grid x:Name="mainGrid">
   <telerik:RadTreeView x:Name="radTreeView" Grid.Row="1" ItemsSource="{Binding TypeDatabases}"
      <telerik:RadTreeView.Resources>
                  <HierarchicalDataTemplate DataType="{x:Type Modele:EntiteDatabase}" ItemsSource="{Binding Tables}">
                            <StackPanel Orientation="Horizontal" Height="25">
                                <Image Source="{Binding SourceIcone}" Stretch="Fill" Height="16"/>
                                <TextBlock Text="{Binding Description}" TextAlignment="Left" VerticalAlignment="Center" />
                                <telerik:RadContextMenu.ContextMenu>
                                    <telerik:RadContextMenu InheritDataContext="False" DataContext="{Binding DataContext, ElementName=mainWindow}">
                                        <telerik:RadMenuItem Header="Connexion" Command="{Binding OpenDatabase}" />
                                        <telerik:RadMenuItem Header="Déconnexion" Command="{Binding CloseDatabase}" />
                                    </telerik:RadContextMenu>
                                </telerik:RadContextMenu.ContextMenu>
                            </StackPanel>
                        </HierarchicalDataTemplate>
      </telerik:RadTreeView.Resources>
   </telerik:RadTreeView>
</Grid>
</telerik:RadWindow>
In this solution, I have an error : "cannot find ElementName=mainWindow" and I don't understand
I tried others methods to retrieve the DataContext (Tag in my StackPanel, ....)
Thank to you for help

PS : I am sorry for my english
Olivier
Top achievements
Rank 1
 answered on 17 Jul 2013
1 answer
345 views
Hi,

I am using RadGridView to display some data and one of the columns is of type DateTime. Filtering mode is set to FilterRow. How can I filter the column by date range like I can in ASP.NET AJAX RadGrid? 

Changing filtering mode to popup is not an option for me, I need it to be filter row. 

I would also like to know how to hide the filter button and set one default filter function like contains? All of these things can be easily done on web RadGrid, but I am not able to do it with WPF RadGrid.

Thank you,

Patrik
Rossen Hristov
Telerik team
 answered on 17 Jul 2013
2 answers
164 views
Hi,

is there any Example how to use Drag & Drop from DataGrid to Datagrid + From one mvvm to an other mmvm?

Thanks
Regards
ww
Wenjie
Top achievements
Rank 1
 answered on 17 Jul 2013
5 answers
126 views
when my X Axis is of a time int it works perfectly. But when i put it as a string an error occurs("Input string was not in a correct format")

My XAML is like this
<telerik:RadChart Name="radChartCAMois">
                        <telerik:RadChart.SeriesMappings>
                            <telerik:SeriesMapping LegendLabel="Chiffre d'affaire en DT">
                                <telerik:SeriesMapping.SeriesDefinition>
                                    <telerik:Area3DSeriesDefinition/>
                                </telerik:SeriesMapping.SeriesDefinition>
                                <telerik:SeriesMapping.ItemMappings>
                                    <telerik:ItemMapping DataPointMember="XValue" FieldName="IntValue"></telerik:ItemMapping>
                                    <telerik:ItemMapping DataPointMember="YValue" FieldName="StringValue"></telerik:ItemMapping>
                                </telerik:SeriesMapping.ItemMappings>
                            </telerik:SeriesMapping>
                        </telerik:RadChart.SeriesMappings>
                    </telerik:RadChart>

and my code behing is like this
List<MyClass> a = new List<MyClass>{new MyClass{intValue = 1,stringValue = "s1"},new MyClass{intValue = 2,stringValue = "s2"}};
radChartCAMois.ItemsSource = a;

where MyClass is like this
class MyClass
    {
        public int intValue;
        public string stringValue;
    }

Filander
Top achievements
Rank 1
 answered on 16 Jul 2013
1 answer
139 views
If some model property is decorated with [DataType(DataType.Password)] the gridview with autogeneratecolumn = true should have passwordbox ?
Yoan
Telerik team
 answered on 16 Jul 2013
4 answers
152 views
Hi 

this is our customer requirement. I need to remove those options. Is there a way to do that?
Thanks in advance

Fernando
Fernando
Top achievements
Rank 1
 answered on 16 Jul 2013
1 answer
136 views
I have a RadDropDownButton and I want the end user to be able to resize the DropDownContent.

Is this possible?


ta

Ollie
Tina Stancheva
Telerik team
 answered on 16 Jul 2013
1 answer
421 views

The RedComboBox displaying list of items for selection and this list will be empty to start with. If this list is empty, user should see an empty drop down so that the User knows there is nothing to select. With my code below, I just see a small 2 pixel line below combo, this give an impression to user that something is wrong with application. If you use windows provided ComboBox then it will a empty dropdown and we want the same behavior from RedComboBox.

How can I enable dropdown even if there are no items in the list?


<RadComboBox
   HorizontalAlignment="Left"
   Margin="1,1,0,1"
   VerticalAlignment="Center"
   Name="comboname" 
   SelectedItem="{Binding Path=Item, Mode=TwoWay}"
   ItemsSource="{Binding Path= ItemList}"
   IsReadOnly="False"
   EmptyText=" - select an item - "/>
Georgi
Telerik team
 answered on 16 Jul 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?