Telerik Forums
UI for WPF Forum
2 answers
100 views
Hello,

I have a theme set that doesn't apply to some RadTimePickers. The specified theme is applied to DateTimePickers, even though there was no theme override (no styles set or anything like that, neither on the time and datetime pickers nor the grid). 
Attached you can find a .png with the controls on which the mentioned theme doesn't apply, as well as their xaml code.
Sorin
Top achievements
Rank 1
 answered on 11 Dec 2014
2 answers
173 views
I simply want to remove the "Select all" checkbox which is above the list of distinct values when I open the filter dropdown. This should be done for one single column, not all columns. How can I achieve that?

Regards
Neils
Heiko
Top achievements
Rank 1
Iron
Veteran
 answered on 11 Dec 2014
1 answer
87 views
I have an application which allows switching grid filtering from popup to filter row. This works fine and is great. However if a user selects a distinct filter option from the distinct list in the filter popup and then switches to filter row then the distinct option is still selected. At this point though it is not accessible as there is no way to get to that distinct list in the filter row.

A user would need to filter that distinct selection and then switch filter modes. A better solution would be for the grid to make this switch because at that point the distinct doesn't make sense anymore. The grid could also switch it to a "Equals X".
Dimitrina
Telerik team
 answered on 11 Dec 2014
2 answers
146 views
Hi
I'm trying to get RadDocking to work with persistence. I can get it to work by using "radDocking.SaveLayout()", but isn't it possible to use "persistence.Savelayout()"?

I've tried to set the persistenceid on my RadDock and there's no errors when saving/loading, but the layout is screwed up when loaded. There's duplicates of panes and not a lot of functionality. I'm using a modifed copy of the Telerik/Prism demo project.

Any ideas?

Regards Allan
Petar Mladenov
Telerik team
 answered on 11 Dec 2014
2 answers
97 views
Hi,

I'm trying to drop to header row of RadGridView, but DragDropManager.DropHandler is not executed. Also DragVisual shows picture, that is not possible to drop to header row of RadGridView. I guess RadGridView catches all drop events and handles them internally, because of Column Reorder feature.

I there a way to somehow override default behavior of RadGridView and catch drop events to header row?

I attached screenshot and sample c# project.

http://1drv.ms/1qknccu

Michal
Top achievements
Rank 1
 answered on 11 Dec 2014
6 answers
347 views
I have a ListBox and RadGridView and I'm trying to implement Drag And Drop between list items and grid rows and vice versa.
This is for testing purposes and I'm trying to test raising and capturing Drop and DragCompleted events on all RadGridView parts.
Everything works fine except drop to a Header Row of a RadGridView. Drop and DragCompleted is not raised and also DragVisual shows that you can't drop to  a Header Row of a RadGridView. I guess this is a default behavior of RadGridView and I would like to ask if there is any way or workaround how to drop to a Header Row of a RadGridView? I need this feature for a WPF application in my work.

here is my xaml

<Window x:Class="DragDropManager.MainWindow"
        Title="MainWindow" >
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>
            <Style TargetType="ListBoxItem">
                <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True"></Setter>
            </Style>
            <DataTemplate x:Key="ApplicationTemplate">
                <StackPanel Orientation="Horizontal">
                    <Image Source="{Binding IconPath}"/>
                    <TextBlock Margin="5" Text="{Binding Name}" VerticalAlignment="Center"></TextBlock>
                </StackPanel>
            </DataTemplate>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <ListBox x:Name="ApplicationList" ItemTemplate="{StaticResource ApplicationTemplate}" AllowDrop="True"/>
        <telerik:RadGridView Grid.Column="1" AllowDrop="True" x:Name="MyGrid">
            <telerik:RadGridView.RowStyle>
                <Style TargetType="telerik:GridViewRow">
                    <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
                </Style>
            </telerik:RadGridView.RowStyle>
        </telerik:RadGridView>
    </Grid>
</Window>

and here is my code behind

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        ApplicationList.ItemsSource = ApplicationInfo.GenerateApplicationInfos();
        MyGrid.ItemsSource = new ObservableCollection<ApplicationInfo>();
 
        Telerik.Windows.DragDrop.DragDropManager.AddDragInitializeHandler(ApplicationList, OnDragInitialize);
        Telerik.Windows.DragDrop.DragDropManager.AddDragInitializeHandler(MyGrid, OnDragInitialize);
 
        Telerik.Windows.DragDrop.DragDropManager.AddGiveFeedbackHandler(ApplicationList, OnGiveFeedback);
        Telerik.Windows.DragDrop.DragDropManager.AddGiveFeedbackHandler(MyGrid, OnGiveFeedback);
 
        Telerik.Windows.DragDrop.DragDropManager.AddDragDropCompletedHandler(ApplicationList, OnDragCompleted);
        Telerik.Windows.DragDrop.DragDropManager.AddDragDropCompletedHandler(MyGrid, OnDragCompleted2);
 
        Telerik.Windows.DragDrop.DragDropManager.AddDropHandler(ApplicationList, OnDrop);
        Telerik.Windows.DragDrop.DragDropManager.AddDropHandler(MyGrid, OnDrop2);
    }
 
    private void OnDragInitialize(object sender, DragInitializeEventArgs args)
    {
        args.AllowedEffects = DragDropEffects.All;
        var payload = DragDropPayloadManager.GeneratePayload(null);
        var data = ((FrameworkElement)args.OriginalSource).DataContext;
        payload.SetData("DragData", data);
        args.Data = payload;
        args.DragVisual = new DragVisual() { Content = data, ContentTemplate = LayoutRoot.Resources["ApplicationTemplate"] as DataTemplate };
        args.DragVisualOffset = args.RelativeStartPoint;
        args.Handled = true;
    }
 
    private void OnGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs args)
    {
        args.SetCursor(Cursors.Arrow);
        args.Handled = true;
    }
 
    private void OnDrop(object sender, Telerik.Windows.DragDrop.DragEventArgs args)
    {
        var data = ((DataObject)args.Data).GetData("DragData");
        ((IList)(sender as ListBox).ItemsSource).Add(data);
    }
 
    public void OnDragCompleted(object sender, Telerik.Windows.DragDrop.DragDropCompletedEventArgs args)
    {
        var data = DragDropPayloadManager.GetDataFromObject(args.Data, "DragData");
        ((IList)(sender as ListBox).ItemsSource).Remove(data);
    }
 
    private void OnDrop2(object sender, Telerik.Windows.DragDrop.DragEventArgs args)
    {
        var data = ((DataObject)args.Data).GetData("DragData");
        ((IList)(sender as RadGridView).ItemsSource).Add(data);
    }
 
    public void OnDragCompleted2(object sender, Telerik.Windows.DragDrop.DragDropCompletedEventArgs args)
    {
        var data = DragDropPayloadManager.GetDataFromObject(args.Data, "DragData");
        ((IList)(sender as RadGridView).ItemsSource).Remove(data);
    }
}

thanks

Michal
Top achievements
Rank 1
 answered on 11 Dec 2014
1 answer
137 views
Hi,

I want to use your Pie3D chart control in a WPF project (like here : http://www.telerik.com/help/wpf/radchart-features-chart-types-3d-charts.html)
Do you have any sample ?

I looked into WPF Controls Example without success.

Thanks
Petar Marchev
Telerik team
 answered on 11 Dec 2014
2 answers
61 views
Hi,

We have a WPF application which we are testing using CUIT.  It contains Telerik controls.

The issue is that CUIT is not able to identify the controls after undocking and re-docking some of the controls, i.e., the hierarchy that is seen before undocking and re-docking is different from that seen after undocking and re-docking.

I wanted to attach the sample application but could not do so as it exceeded 2MB.

Let me know how I can give you the sample application and also in case of more information.

Regards,
Vijay
vijay
Top achievements
Rank 1
 answered on 11 Dec 2014
1 answer
319 views
Seemingly simple question... I have a RadComboBox that I want to display the selected item without the font being bold.

The template being used:

<UserControl.Resources>
  <DataTemplate x:Key="SelectionBoxTemplate">
    <TextBlock Text="{Binding Code}" FontWeight="Regular"/>
  </DataTemplate>
</UserControl.Resources>

The radcombobox:

<telerik:RadComboBox x:Name="RegionComboBox"
                     Grid.Column="2"
                     Margin="2"
                     ClearSelectionButtonContent="Clear"
                     ClearSelectionButtonVisibility="Visible"
                     DisplayMemberPath="Code"
                     ItemsSource="{Binding Regions}"
                     SelectedValue="{Binding Region,
                                             Mode=TwoWay}"
                     SelectedValuePath="Code"
                     SelectionBoxTemplate="{StaticResource SelectionBoxTemplate}"/>

I can change the color of the displayed item, but I cannot get the font weight to be regular. It is always bold.

Thanks.
Masha
Telerik team
 answered on 10 Dec 2014
1 answer
47 views
I have a real-time data stream being visualized with a ChartDataSource in a LineSeries. Right now the previously aggregated values are being rendered properly, but the value for the "current" aggregation (the one that's being built in real-time) moves around until that aggregation interval ends. Is there any way to get the ChartDataSource to only show values from complete aggregations?
Pavel R. Pavlov
Telerik team
 answered on 10 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Iron
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Iron
Krasimir
Top achievements
Rank 3
Iron
Iron
Iron
Shawn
Top achievements
Rank 1
Iron
Javier
Top achievements
Rank 1
Iron
Jean-François
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?