Telerik Forums
UI for WPF Forum
1 answer
108 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
110 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
263 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
335 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.2K+ 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.9K+ 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
77 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.1K+ 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
10 answers
184 views

If we display a RadWindow ON TOP OF(very important!) a RadTileList upon a MouseDoubleClick event, an exception is thrown.

<Window x:Class="TileViewCrash.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"
                Title="MainWindow" Height="350" Width="525">
   <Grid>
      <telerik:RadTileList>
         <telerik:Tile MouseDoubleClick="OnMouseDoubleClick" />
         <telerik:Tile />
      </telerik:RadTileList>
   </Grid>
</Window>
 
using System.Windows;
using System.Windows.Input;
using Telerik.Windows.Controls;
 
namespace TileViewCrash
{
   public partial class MainWindow : Window
   {
      public MainWindow()
      {
         InitializeComponent();
      }
 
      private void OnMouseDoubleClick(object sender, MouseButtonEventArgs e)
      {
         RadWindow.Alert("Hello");
      }
   }
}

 If we close the RadWindow while it is not on top of the RadTileList, no exception is thrown.

 

Kalin
Telerik team
 answered on 19 Jan 2016
2 answers
243 views

I am trying to implement a solution where a RadPane can be maximized/restored. My solution is based on this topic http://www.telerik.com/forums/add-maximize-button-to-radpane-header, which unfortunately is very much incomplete. I have updated the solution (using Q1 2016) to be a more complete solution that handles different scenarios and have one last thing to figure out (at least at this point). When I maximize the only RadPane in the RadPaneGroup, the group is removed from RadSplitContainer (since I took the only pane out of the group). So when I try to restore layout, I need to add RadPane to the RadPaneGroup and then place RadPaneGroup back to the original location in the RadSplitContainer - this is unfortunately something I have not been able to figure out.

 

Here is how to see what I am trying to do. Take the solution from link (I used VS 2015 with dot.net 4.6.1). Run it, then drag Panel 1 from left side to the right of the window, so you end up with 2 RadPaneGroups each with 1 RadPane. Maximize the RadPane on right side and then restore it. What you will see is the restored pane is no longer on the right of the window, but is docked to the left right next to the other pane. In code in MainWindow.xaml.cs, this logic is on line 76. All I do is add it to the RadSplitContainer.Items collection and it places it on the left. I need help figuring out how to place it back where it was before maximize logic was executed.

https://drive.google.com/file/d/0B9CRDbP2kUo7dzZkcDY3Z2tXQUk/view?usp=sharing

Thank You

Vladi
Telerik team
 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
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?