Telerik Forums
UI for WPF Forum
4 answers
403 views

Hi there, 

I have found that it is possible to export multiple GridViews into single Excel file via GridViewSpreadExport  in Winform forum. 

I wonder if this can be achieved in the UI for WPF libraries.

My objects is to export multiple grids into a single file, preferable both in PDF and XLSX. 

Many thanks, 

 

 

Petya
Telerik team
 answered on 20 Jan 2016
2 answers
66 views

If my itemsource already has a very large datatable source for example with 6000+ columns and one line then update it to a small table by changing the itemsource. 

private static void OnItemsSourcePropertyValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var dynamicGrid = d as DynamicGrid;
            if (dynamicGrid == null)
                return;
            try
            {
                dynamicGrid.ItemsSource.Dispose();
                dynamicGrid._grid.SelectedItems.Clear();
                dynamicGrid._grid.SelectedItem = null;
                dynamicGrid._grid.Rebind();
                dynamicGrid.ItemsSource = null; stop here and no exception,code stop running
                dynamicGrid.ItemsSource = e.NewValue as DataTable;   
            }

}

 

Petya
Telerik team
 answered on 20 Jan 2016
1 answer
82 views

Does the version of Telerik WPF supports v.2014.3.1202.45 telerikQuickStart?

 

 

Martin Ivanov
Telerik team
 answered on 20 Jan 2016
3 answers
95 views

The areas circled in red in the attached png.  I am having a tough time finding them in the templates and styles.  Any hints would be appreciated.

 

Paul

Paul
Top achievements
Rank 1
 answered on 20 Jan 2016
3 answers
229 views

Hi, while recently my company has officially bought software from you and, thus, I suppose has a support agreement, I want to post this to a general forum. Here are the issues I encountered with GridControl:

1) Select a cell in the grid, then select an entire row and then do any Ctrl+ / Shift+ command. This causes the selection to switch to one column selection only, which spans the old cell and the newly selected row in one way or another. Also the grid loses focus. I suppose that we could catch key presses and deal with them as we wish, but this default behaviour seems very strange. 

2) Cut functionality (Ctrl-X) seems to not copy anything onto the clipboard. Shouldn't Cut behave exactly the same way as Copy (except that Cut removes cells contents and Copy does not)?

3) Adding new row functionality. If you double-click on the corner cell (on the cell with the "+" sign, located to the left of the "Click here to add new item" label), the grid contents disappears completely. Then you click a number of times on that "+" cell. Then you click out of it (anywhere on any blank cell). Then you see that you get N empty rows, where N is the number of clicks you did altogether. This seems to have been intended, however, I personally think it is very confusing. Is there a way to disable this behaviour?

4) This, I believe, is a genuine bug in the control! When you Copy over the hidden cells and then Paste, you can control the Paste behaviour using SkipHiddenColumns attribute. However, if you copy cells spanning hidden cells using Ctrl key (i.e. you are copying individual cells rather than a subsequent region of cells), Paste does something very weird: it adds empty hidden cells to the selection.

Here is an example of what I mean:

- grid

columns           A    B   C   D

values-row1     1    2    3    4

values-row2     5    6    7    8

- column B is hidden

 

Scenario 1:

   - copy 1 and 3 as a subsequent region of cells (it would be subsequent, since column B is hidden)

   - paste into the beginning of row2

   - if SkipHiddenColumns=false,1 and 3 are pasted instead of 5 and 6

   - if SkipHiddenColumns=true,1 and 3 are pasted instead of 5 and 7

 

Scenario 2:

   - copy 1 and 3 as two separate cells using Ctrl keyboard key

   - paste into the beginning of row2

   - if SkipHiddenColumns=false,1 and 3 are pasted instead of 5 and 7 (WHY???)

   - if SkipHiddenColumns=true,1 and 3 are pasted instead of 5 and 8 (WHY???) -- this is the worst!

Maya
Telerik team
 answered on 20 Jan 2016
1 answer
306 views
Hi all member .I have a radgridView which not show in xaml.I use it(RadGridView) in Wpf User Control Library.I use telrik 2015 Q3 an vs 2013

xaml show below:

 <telerik:RadGridView x:Name="radGridView"
          ItemsSource="{Binding Collection , Mode=TwoWay}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"  Header="Name" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

.please help to me .thank you
Dilyan Traykov
Telerik team
 answered on 20 Jan 2016
5 answers
1.1K+ views
Hi,

I use RadGridView in a MVVM WPF 4.5 application (running on windows 8 if that matters).
I use the latest internal build 2013.2.708.45 (before I use 617 with the same problem).

Everything worked fine till I added a user request (MessageBox) in the method which fills the data.
To reproduce this behavior I made simple app and had to find out that I don't even need the MessageBox to reproduce the problem.

The problem - RadGridView doesn't display any data until I "force" a redraw, either by changing the window size or by doing a change to the data.
To proof that my solution works in general I also added a WPF DataGrid - and yes this thing works as expected.

I simply created a WPF 4.5 application and changed MainWindow.xaml to
<Window
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="RGrid.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="2*" />
            <RowDefinition Height="2*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
 
        <telerik:RadGridView Grid.Row="0" ItemsSource="{Binding TransferModules}" SelectionMode="Extended" ShowInsertRow="false" CanUserDeleteRows="False" CanUserInsertRows="False" CanUserReorderColumns="False" ShowGroupPanel="False" AutoGenerateColumns="False" >
            <telerik:RadGridView.Columns>
                 
                <telerik:GridViewDataColumn Header="Modul" DataMemberBinding="{Binding ShortName}" Width="100" IsFilterable="False" IsReadOnly="True" />
                <telerik:GridViewDataColumn Header="Beschreibung" DataMemberBinding="{Binding Description}" Width="200" IsFilterable="False" IsReadOnly="True" />
                <telerik:GridViewDataColumn Header="Status" DataMemberBinding="{Binding TransferStatus}" Width="*" IsFilterable="False" IsReadOnly="True" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <DataGrid Grid.Row="1" ItemsSource="{Binding TransferModules}" SelectionMode="Extended" CanUserDeleteRows="False" CanUserReorderColumns="False" AutoGenerateColumns="False" >
            <DataGrid.Columns>
                <DataGridTextColumn Header="Modul"  Binding="{Binding ShortName}" Width="100" IsReadOnly="True" />
                <DataGridTextColumn Header="Beschreibung" Binding="{Binding Description}" Width="200" IsReadOnly="True" />
                <DataGridTextColumn Header="Status" Binding="{Binding TransferStatus}" Width="*" IsReadOnly="True" />
            </DataGrid.Columns>
        </DataGrid>
        <Button Grid.Row="2" Click="Button_Click" Content="Add item" HorizontalAlignment="Left" VerticalAlignment="Center" />
    </Grid>
</Window>


In code behind I have
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows;
 
namespace RGrid {
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window {
        public class TM {
            public String ShortName { get; set; }
            public string Description { get; set; }
            public string TransferStatus { get; set; }
        }
        public ObservableCollection<TM> TransferModules { get; set; }
        private List<TM> _TModules;
        public MainWindow() {
            _TModules = new List<TM>();
            for (int nX = 0; nX < 5; nX++) {
                _TModules.Add(new TM { Description = "Des " + nX.ToString(), ShortName = "SN" + nX.ToString(), TransferStatus = "OK" });
            }
            //comment the following line to see if it fail without messagebox too
            _TModules[1].TransferStatus = "ERROR";
 
            TransferModules = new ObservableCollection<TM>();
            InitializeComponent();
            Loaded += MainWindow_Loaded;
            DataContext = this;
        }
 
        void MainWindow_Loaded(object sender, RoutedEventArgs e) {
            foreach (TM tM in _TModules) {
                if (tM.TransferStatus != "OK") {
                    if (MessageBox.Show("Data not OK." + Environment.NewLine + "Add anyways?", "Please confirm", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No) != MessageBoxResult.Yes) {
                        continue;
                    }
                }
                TransferModules.Add(tM);
            }
        }
 
        private void Button_Click(object sender, RoutedEventArgs e) {
            TransferModules.Add(new TM { Description = "Des ", ShortName = "SN", TransferStatus = "OK" });
        }
    }
}


When I start the application the RadGridView shows no rows.
If I add a new row (with the button at the bottom) the data shows up as expected. The same happens if I change the window size.

Manfred
Petya
Telerik team
 answered on 20 Jan 2016
12 answers
1.8K+ views
Does the RadCartesianChart object emit any events, or have any properties that can be polled to determine if all data has been rendered?
Petar Marchev
Telerik team
 answered on 20 Jan 2016
1 answer
62 views

Hi,

I have a RadRibbonView and RadRibbonView.ApplicationMenu within it. But when I click the ApplicationMenu, some part of it is hidden below other UI. So my question  is how can I bring it on top of the window?

Please check the attached screenshot. 

Thanks

Wei

Ivan
Telerik team
 answered on 20 Jan 2016
11 answers
1.0K+ views

Hi,

I have DateTime columns in my gridview.
I will see the full date and time values with a custom format string yyyy-MM-dd HH:mm:ss.

But I only want to filter for the date only, so I set the FilterMemberPath to the date value.

 

<telerik:GridViewDataColumn Header="Start-Date"
                            IsCustomSortingEnabled="False"
                            DataMemberBinding="{Binding StartTime}"
                            FilterMemberPath="StartTime.Value.Date"
                            DataFormatString="{} {0:yyyy-MM-dd HH:mm:ss}" />

 

I'm now able to filter for a specific date with equal to,

but in the selection list of  containing entries the dates will be displayed with 12:00:00 AM time :-(

How could I change the format of the filter string to yyyy-MM-dd?

Many thanks for all help.

Cheers,

  Thomas

Thomas
Top achievements
Rank 1
 answered on 19 Jan 2016
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?