Telerik Forums
UI for WPF Forum
1 answer
81 views
Hi there,

I have a project with a RadScheduleView.

The viewDefinitions are added dynamically when I first open the App. There are 5 of them : day / week / workweek / month / timeLine by default.

In this configuration, when the activeViewDefinition is the MonthView and I click either on a "weekHeader" or a "dayHeader" to go to the corresponding week or day, it takes up to 25s.

Interestingly though, going from WeekView to DayView by clicking on a "dayHeader" in the WeekViewDefinition is almost instantaneous. So I deduced it has something to do with the way the view is displayed (weekView and DayView share the same layout, if I am not mistaken)

I have used DotTrace to try and find where the problem lies, and it appears almost all of the 25s are spent in MeasureOverride() (see attached screenshot) So my guess seems to be right, but I am puzzled as to what could produce such a loss of time on my part.

Do you know of something that could cause such a behavior ?

(nb: I use the metro Theme on the RadScheduleView)
Vladi
Telerik team
 answered on 29 Sep 2012
1 answer
138 views
I'm attempting to bind a RadListBox within a CellEditTemplate but for some reason it isn't working.  I've attempted to bind a RadListBox outwith the GridView and it works fine.
<telerik:GridViewDataColumn Header="Actionees" UniqueName="ACT856">
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <telerik:RadListBox ItemsSource="{Binding Path=Actionees}" DisplayMemberPath="FullName" SelectedValuePath="IdentityId" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>

Am I missing something?
Dimitrina
Telerik team
 answered on 29 Sep 2012
3 answers
164 views
I'm building a business application in WPF that needs to be usable from a kiosk's touch screen.  No real need for fancy multitouch or gestures, but I do need basic controls that handle touch events and the ability to style the controls to make them larger for better usability.

Can the Telerik WPF controls handle touch events and easily be styled appropriately?  Is there anything like the MetroTouch skin for WPF?  Anyone else using the Telerik WPF controls for a basic touch-able application?

Thanks!
Jeremy
Hristo
Telerik team
 answered on 29 Sep 2012
1 answer
166 views
Hi All,

I want to Reorder the RasExpander Control with the help of DragDropManager inside the Stackpanel. Can you please guide me how to do this? Please help me with the sample if possible.

Thanks,
 Sakthi
Pavel R. Pavlov
Telerik team
 answered on 29 Sep 2012
1 answer
211 views
Hello, I would like to know how I can get the value of a particular row / column in RadGrdiView of Wpf
like a telerik web gridview (findcontrol)
Actually I can get the value in a DataGrid wpf, that is my function

Private Function GetCellValue(ByRef dataGrid As DataGrid, ByVal row As Integer, ByVal column As Integer) As String
        Dim temprow As DataGridRow
        Dim rowview As DataRowView
        Dim cellValue As String
        GetCellValue = ""
        Try
            temprow = dataGrid.ItemContainerGenerator.ContainerFromIndex(row)
            rowview = temprow.Item
            cellValue = rowview.Item(column).ToString
        Catch ex As Exception
            cellValue = ""
        End Try
        Return cellValue
   End Function

But when I do the same with telerik, I cant, that give the next error
Unable to cast object of type 'Telerik.Windows.Controls.GridView.GridViewRow' to type 'System.Windows.Controls.DataGridRow'.
if you can give me a solution, will be grateful

Dimitrina
Telerik team
 answered on 29 Sep 2012
3 answers
606 views
Hi,

Is there a file upload/download control in wpf suite? (something like a textbox with spinner to represent upload/download. And a cancel button to cancel upload/download)

Thanks
Santosh
Tina Stancheva
Telerik team
 answered on 28 Sep 2012
1 answer
115 views
Do you have an example of using Virtualization with the WPF PropertyGrid?
Maya
Telerik team
 answered on 28 Sep 2012
1 answer
211 views
hello all, I use the follwing code to create a radsplitcontainer dynamically and it works perfectly fine.

However when I try to add a pane group (commeneted code) I couldn't even see the split container showing to the right side of the window

Any suggestions, please?

Telerik.Windows.Controls.RadSplitContainer RightSplit =

 

new Telerik.Windows.Controls.RadSplitContainer();

RightSplit.InitialPosition = Telerik.Windows.Controls.Docking.DockState.DockedRight;

RightSplit.BorderBrush = Brushes.DarkSlateGray;

RightSplit.BorderThickness =

 

new System.Windows.Thickness(3);

RightSplit.Width =

 

100;

RightSplit.IsEnabled =

 

true;

RightSplit.Visibility = Visibility.Visible;

MainContainer.Items.Add(RightSplit);

 

//Telerik.Windows.Controls.RadPaneGroup thispaneGroup = new Telerik.Windows.Controls.RadPaneGroup();

 

//thispaneGroup.Width = 100;

 

//RightSplit.Items.Add(thispaneGroup);


Regards
RK
Georgi
Telerik team
 answered on 28 Sep 2012
1 answer
154 views
I have been looking around for how to do a pie chart with a hollow middle (see the attachment), but have come up empty so far after searching for information on RadPieChart and PieSeries in particular, and for creating my own Path or Style in general. What would be the strategy to do this kind of pie chart?

I am building the PieSeries in C# code and not in XAML, so C# would be greatly appreciated. Thanks.
Vladimir Milev
Telerik team
 answered on 28 Sep 2012
0 answers
289 views
Hi there,

I am currently having troubles with RoutedEvent in WPF. I made a simple example only using native WPF components. The example is made of a button executing a long term synchronous task the first time it's hit and showing a message "Already executed" all other times.

What you have to do to reproduce my issue is to click the button once, and when the task is executing click a second time => After finishing the first task the second click event is going to trigger a second execution => "Already executed". I want to consume any user input during the execution before it triggers an event.

How could I do that ?

<Window x:Class="TestDBConnection.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
         
        <Button Name="butt" Height="30" Width="150" />
        <Label Visibility="Collapsed" Name="label">Executing ... </Label>
    </Grid>
</Window>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Data.Objects;
 
namespace TestDBConnection
{
    /// <summary>
    /// Logique d'interaction pour MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
 
            var cmd = new MyCommand();
            //butt.Command = cmd;
 
            //butt.PreviewMouseDown += new MouseButtonEventHandler(butt_PreviewMouseDown);
            butt.Click += butt_Click;
 
            cmd.label = label;
            cmd.bouton = butt;
 
        }
 
        void butt_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            //label.Visibility = Visibility.Visible;
        }
 
        void butt_Click(object sender, RoutedEventArgs e)
        {
            if (executedAlready)
            {
                MessageBox.Show("Already Executed");
                return;
            }
 
            for (long i = 0; i < 40000; i++)
            {
                for (long j = 0; j < 40000; j++)
                {
                    var a = i + j;
                }
            }
 
            //label.Visibility = Visibility.Collapsed;
            executedAlready = true;
        }
 
        private bool executedAlready;
    }
 
    public class MyCommand : ICommand
    {
 
        public bool CanExecute(object parameter)
        {
            return true;
        }
 
        public event EventHandler CanExecuteChanged;
 
        public void Execute(object parameter)
        {
            if (executedAlready)
            {
                MessageBox.Show("Already Executed");
                return;
            }
 
            for (long i = 0; i < 40000; i++)
            {
                for (long j = 0; j < 40000; j++)
                {
                    var a = i + j;
                }
            }
 
            executedAlready = true;
 
            label.Visibility = Visibility.Collapsed;
        }
 
        public Label label;
        public Button bouton;
        public Window window;
 
        private bool executedAlready;
    }
}
Joël
Top achievements
Rank 2
 asked on 28 Sep 2012
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?