Telerik Forums
UI for WPF Forum
1 answer
215 views
Hi experts,

I might have a isolated issue here. Not sure if I'm missing anything :) I have a RadGRidView and im using NumericUpdown control for data entry. The NumericUpdown control NumberGroupSeparator is not working. It doesnt show the 'comma'. If the take the same control out of the the grid, it works fine. I have attached my code here. I know by default the group separator should work, but as it was not working I also tried adding that extra numberFormatInfo xml code, but with no luck. The data member that  I'm binding is a double(should be an int)
Please let me If I'm missing anything.

Thanks in advance.
Boris
Telerik team
 answered on 11 Dec 2014
6 answers
110 views
Hi,

I have a problem with filtering here: When I set a filter descriptor, newly added rows are always inserted at the end, as long as filtering is active.
I read somewhere that filtered data is unsorted as long as there is no explicit sorting set. Is this true?

When yes: What is the best way to sort by ItemsSource order? Our customers would expect to see the rows in the same order as when no filter is set.

I would like to avoid an index in my viewmodel, because most grid operations would trigger an O(n) index update loop to update the indices.
Is there a better way?
Dimitrina
Telerik team
 answered on 11 Dec 2014
2 answers
138 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
243 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
137 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
192 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
137 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
423 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
194 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
95 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
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?