Telerik Forums
UI for WPF Forum
3 answers
206 views
I'm guessing that this is an easy one, but I'm coming up blank.  How to you put the NumericUpDown in a hex mode?

Thanks,
Tony
Konstantina
Telerik team
 answered on 14 May 2013
6 answers
303 views
I have been trying to implement DnD between ListBox controls in WPF and also reordering items in the list box. 
The situation that I have is 3 listboxes, one is the "Toolbox" which contains all of the objects that will ever be dragged, one which they get dragged onto, called the "Workfow", and another one called the "Output" which objects from the "Workflow" get dragged from. When dragging, all objects should be copied rather than moved across.  The "Toolbox" and "Workflow" listboxes are bound to lists of "Element" objects, and the "Output" listbox is bound to a list of KeyValuePair<string, string> objects which gets populated when the element is dropped from the "Workflow" listbox.  A bit complicated I know.

Dragging from "Toolbox" to "Workflow" works fine, and reordering items in "Workflow" works too, but when I try and drag from "Workflow" to "Output" the DragDropState.DraggedItems property is always empty.  

Below is my override of the ListBoxDragDropBehavior

public class WfBehavior : ListBoxDragDropBehavior
    {
        public override void Drop(DragDropState state)
        {
            foreach (object o in state.DraggedItems)
            {
                if (Dropped != null)
                {
                    Dropped(o as Element, state.InsertIndex);
                }
            }
            base.Drop(state);
        }
 
        protected override bool IsMovingItems(DragDropState state)
        {
            return state.IsSameControl;
        }
 
        public static event DroppedEventHandler Dropped;
    }
 
    public delegate void DroppedEventHandler(Element element, int index);

Nick
Telerik team
 answered on 14 May 2013
1 answer
110 views
avatar

Hi,
Thanks for the wonderful chart control provided from telerik. Is there a feature like dragging the chart area and datapoints gets updated depending on the drag.



Scenario:
1. RadCartesianChart holding queue with 1000 data points.
2. But the current chart view shows only latest 10 points.
3. If drag the chart area to left/right, then data points must get updated. (this must depend on drag sensitivity).
4. This is some thing like playing the chart area w.r.t to datapoints in the queue.
5. Should have an event warning me that i am at point 0 and point 1000 on the graph. (start and end of the queue).

Please reply AS SOON AS POSSIBLE.

Thanks,
Supriya
Petar Kirov
Telerik team
 answered on 14 May 2013
26 answers
530 views
Is there a way to export a hierarchical radgridview to excel or word?
Dimitrina
Telerik team
 answered on 14 May 2013
1 answer
285 views
Hi,

I need to give an image watermark to my richtextbox. Is it possible from C#?

Thanks for replying,
Henry.
Shinu
Top achievements
Rank 2
 answered on 14 May 2013
2 answers
324 views
Hi, 

I want the error tool tip on masked text similar to normal WPF textbox. Please find attached images.
I also want the border of the masked input text to be red when an invalid number given as input. 
Could you help me to achieve this? 
I am not sure whether this request raised by anyone but i couldn't find the solution in any of the threads.
Let me know if you need more information on this.

Thanks,
Vivek
Vivek
Top achievements
Rank 2
 answered on 14 May 2013
1 answer
87 views
Hi, is there a way so that the event CellEditEnded fires at the pasting of a value into cell?
i'm not succeding...

Thanks in advanced.
Dimitrina
Telerik team
 answered on 14 May 2013
3 answers
627 views
Hi guys

Ok two basic classes:

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
 
namespace ProjectMaster.Core.Business
{
    public class Project
    {
        #region Fields
 
        private string _name;
        private double _budget;
        private DateTime _startDate;
        private DateTime _finishDate;
        private int _duration;
        private ObservableCollection<Phase> _phases;
 
        #endregion
 
        #region Properties
 
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
 
        public double Budget
        {
            get { return _budget; }
            set { _budget = value; }
        }
 
        public DateTime StartDate
        {
            get { return _startDate; }
            set { _startDate = value; }
        }
 
        public DateTime FinishDate
        {
            get { return _finishDate; }
            set { _finishDate = value; }
        }
 
        public int Duration
        {
            get
            {
                _duration = (_finishDate - _startDate).Days;
                return _duration;
            }
            set { _duration = value; }
        }
 
        public ObservableCollection<Phase> Phases
        {
            get { return _phases; }
            set { _phases = value; }
        }
 
        #endregion
 
        public Project(string name, int budget, DateTime startDate, DateTime finishDate)
        {
            this._name = name;
            this._budget = budget;
            this._startDate = startDate;
            this._finishDate = finishDate;
            _phases = new ObservableCollection<Phase>();
        }
    }
}

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
 
namespace ProjectMaster.Core.Business
{
    public class Phase
    {
        #region Fields
 
        private string _name { get; set; }
        private double _budget { get; set; }
        private DateTime _startDate { get; set; }
        private DateTime _finishDate { get; set; }
        private int _duration { get; set; }
        private ObservableCollection<Task> _tasks { get; set; }
 
        #endregion
 
        #region Properties
 
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
 
        public double Budget
        {
            get { return _budget; }
            set { _budget = value; }
        }
 
        public DateTime StartDate
        {
            get { return _startDate; }
            set { _startDate = value; }
        }
 
        public DateTime FinishDate
        {
            get { return _finishDate; }
            set { _finishDate = value; }
        }
 
        public int Duration
        {
            get
            {
                _duration = (_finishDate - _startDate).Days;
                return _duration;
            }
            set { _duration = value; }
        }
 
        public ObservableCollection<Task> Tasks
        {
            get { return _tasks; }
            set { _tasks = value; }
        }
 
        public Phase(string name, int budget, DateTime startDate, DateTime finishDate)
        {
            this._name = name;
            this._budget = budget;
            this._startDate = startDate;
            this._finishDate = finishDate;
 
            _tasks = new ObservableCollection<Task>();
        }
 
        #endregion
    }
}

And the xaml that binds these classes to a RadTreeListView to get the expected output:

<telerik:RadTreeListView Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="6,0,0,0" AutoGenerateColumns="True" ItemsSource="{Binding Project, Mode=TwoWay}" SelectedItem="{Binding Item}">
 
     <telerik:RadTreeListView.ChildTableDefinitions>
         <telerik:TreeListViewTableDefinition ItemsSource="{Binding Phases}"/>
         <telerik:TreeListViewTableDefinition ItemsSource="{Binding Tasks}"/>
     </telerik:RadTreeListView.ChildTableDefinitions>
 
     <telerik:RadTreeListView.Columns>
         <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" />
 
         <telerik:GridViewDataColumn Header="Start Date" DataType="{x:Type System:DateTime}">
             <telerik:GridViewDataColumn.CellTemplate>
                 <DataTemplate>
                     <telerik:RadDatePicker SelectedValue="{Binding StartDate, Mode=TwoWay}" />
                 </DataTemplate>
             </telerik:GridViewDataColumn.CellTemplate>
         </telerik:GridViewDataColumn>
 
         <telerik:GridViewDataColumn Header="Finish Date" DataType="{x:Type System:DateTime}">
             <telerik:GridViewDataColumn.CellTemplate>
                 <DataTemplate>
                     <telerik:RadDatePicker SelectedValue="{Binding FinishDate, Mode=TwoWay}" />
                 </DataTemplate>
             </telerik:GridViewDataColumn.CellTemplate>
         </telerik:GridViewDataColumn>
 
         <telerik:GridViewDataColumn Header="Duration" DataMemberBinding="{Binding Duration}" DataType="{x:Type System:Int32}" />
 
         <telerik:GridViewDataColumn Header="Budget (Hrs)" DataMemberBinding="{Binding Budget}" DataType="{x:Type System:Double}" />
 
     </telerik:RadTreeListView.Columns>
 
 </telerik:RadTreeListView>


I've attached an image to show what the output is like.

Not what I want to be able to do is if the user clicks on a button, a new column is added to the TreeListVIew for eg a Resource column. Im really not sure how to go about this so any help/tips to get me in the right direction will be greatly appreciated!!

Thanking you in Advance! 
Dimitrina
Telerik team
 answered on 14 May 2013
1 answer
188 views
I have a simple implementation of a RadTileView.

The tile view is contained within a radpane which is docked.

If a drag the pane out of the docking area so the pane is floating I see both vertical and horizontal scrollbars.

But, if I maximize one of the TileViewItems and then drag the pane out of the docking area so it is floating I see the vertical scrollbar but not the horizontal scrollbar.

Please advise.

<Grid>
    <telerik:RadTileView 
        IsItemsAnimationEnabled="False"
        ColumnsCount="3"
        ColumnWidth="Auto"
        DragMode="Slide" 
        IsItemsSizeInPercentages="True"        
        IsAutoScrollingEnabled="True"
        PreservePositionWhenMaximized="True"
        RowHeight="Auto"
        MinimizedRowHeight="300"
        MinimizedColumnWidth="300"
        telerik:TileViewPanel.IsColumnsShrinkEnabled="True"
        telerik:TileViewPanel.IsRowsShrinkEnabled="True"
        telerik:TileViewPanel.IsSizeBoundToPosition="True">         
        <telerik:RadTileViewItem Header="{Binding Path=PatchMi.Title}">
            <telerik:RadChart x:Name="RadChart" ItemsSource="{Binding Path=PatchMi.Metrics}" BorderThickness="0">
                <telerik:RadChart.DefaultView>
                    <telerik:ChartDefaultView ChartLegendPosition="Bottom">
                        <telerik:ChartDefaultView.ChartLegend>
                            <telerik:ChartLegend x:Name="ChartLegend"
                                         UseAutoGeneratedItems="True">
                            </telerik:ChartLegend>
                        </telerik:ChartDefaultView.ChartLegend>
                    </telerik:ChartDefaultView>
                </telerik:RadChart.DefaultView>
                <telerik:RadChart.SeriesMappings>
                    <telerik:SeriesMapping>
                        <telerik:SeriesMapping.SeriesDefinition>
                            <telerik:DoughnutSeriesDefinition LegendDisplayMode="DataPointLabel"></telerik:DoughnutSeriesDefinition>
                        </telerik:SeriesMapping.SeriesDefinition>
                        <telerik:SeriesMapping.ItemMappings>
                            <telerik:ItemMapping DataPointMember="YValue" FieldName="Value"></telerik:ItemMapping>
                            <telerik:ItemMapping DataPointMember="LegendLabel" FieldName="Key"></telerik:ItemMapping>
                        </telerik:SeriesMapping.ItemMappings>
                    </telerik:SeriesMapping>
                </telerik:RadChart.SeriesMappings>
            </telerik:RadChart>
        </telerik:RadTileViewItem>
        <telerik:RadTileViewItem Header="Calendar">
            <telerik:RadCalendar DisplayMode="MonthView" Height="Auto" Width="Auto" />
        </telerik:RadTileViewItem>
        <telerik:RadTileViewItem Header="Item3" >
            <TextBlock Text="Item3 Content"/>
        </telerik:RadTileViewItem>
    </telerik:RadTileView>
</Grid>         
Pavel R. Pavlov
Telerik team
 answered on 14 May 2013
8 answers
1.2K+ views
Hi,

Do you know where I can download the source code for the Sales Dashboard sample application for WPF/Silverlight?

Thanks in advance,

Wagner
Dimitrina
Telerik team
 answered on 14 May 2013
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
VirtualKeyboard
HighlightTextBlock
Security
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?