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

I want to import data from *.xls file ( MS Excel 2003 ) bind to my radgridview but I've no idea how to acheive that.

Can anyone give me some hint or example?

Thank you

SweNz
Russ
Top achievements
Rank 1
 answered on 12 Jun 2013
3 answers
126 views
Standard windows control can do this, and sometimes its very handy, especially when you need not to set some value but rather to change it live during some process. When control has focus and mouse whell is moved change it's value using SmallChange property.

It's very easy to implement and very comfortable to use. Thank you!
George
Telerik team
 answered on 12 Jun 2013
1 answer
65 views
Hi,

Look the attatched solution, run it and maximize the form.
Note that the last point have hours=00:00
Now start to move horizontal zoom bar from left to rigth.
When a new X Axys label is added the last point hours is aprrox 12:00
If yor reduce more the zoom bar the points is allways in incorrect position.

Thank's marc.

<telerik:RadCartesianChart>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeContinuousAxis MaximumTicks="5" PlotMode="OnTicksPadded"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:LineSeries Name="mS">
                 
            </telerik:LineSeries>
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior />
            </telerik:RadCartesianChart.Behaviors>
        </telerik:RadCartesianChart>


public MainWindow()
        {
            InitializeComponent();
 
            for (int i = 0; i < 100;i++ )
                mS.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint() { Category = System.DateTime.Today.AddDays(i), Value = 5 });
             
        }

Petar Kirov
Telerik team
 answered on 12 Jun 2013
1 answer
177 views
Hi,

Right Click on NumericUpDown copy numeric right click and paste not work and issue right click copy and cut not enabled in currency and percentage value format.

Thanks.
Konstantina
Telerik team
 answered on 12 Jun 2013
1 answer
183 views
I have used the information at http://www.telerik.com/help/wpf/radtimeline-features-grouping.html#ChangingExpandableGroupsCollapsedState to set up the default values for expand/collapse*

I would like to add "Expand All" and "Collapse All" buttons to my page for the user's convenience, however, I can't find a way to do this; is it possible?

*: I have the style set so that all groups start expanded, but oddly, the first time the timeline draws data, the first group is NOT expanded even though the rest are.  After this first time, everytime I change the collection bound to ItemsSource, all groups will be expanded

Tsvetie
Telerik team
 answered on 12 Jun 2013
3 answers
121 views
I want to make a row with column headers with characters 'A' to 'Z', and then be able to drop items beneath these headers on a single row.
For example, item 1 can be dragged to column B, and item 2 to column H.
Is this even possible?
Nick
Telerik team
 answered on 12 Jun 2013
1 answer
170 views
I have IsTabStop="False" set on my RadToolBar but when I start tabbing it still gets focus... why is this and how do I stop it from being a tab stop?
Vladislav
Telerik team
 answered on 12 Jun 2013
2 answers
233 views
Hello Telerik ,
I can copy appointments in RadScheduleView by holding the CTRL key and dragging the appointment to the desired slot.
But I want to have this functionality in my ContextMenu or by using shortcuts.
 Is there any way to make copy/paste work with standard keyboard shortcuts (CTRL-C/CTRL-V) or  ContextMenu
?
Thank you in advance,
hiwa
Hiwa
Top achievements
Rank 2
 answered on 12 Jun 2013
3 answers
134 views

Hello,

I’ve found a strange behavior of the validation while cancel editing a cell. When I edit a cell and enter an invalid value it shows me, that there is an input error. Very nice and cool! But when I cancel the editing with the escape key, the cell resets the content to the previous value. If the previous value was invalid too, there is no error message.

Is there something I can do to fix the problem?

Dimitrina
Telerik team
 answered on 12 Jun 2013
3 answers
929 views
Consider my DataTemplateSelector below. I want all my RadPropertyGrid to have this particular editor for all string properties. This implies a problem when binding to the property in XAML - since the property name is unknown! How can I get this working?

My initial thought was to map Path to the property so that I can later bind to the Path instead of a specified property name. Ideas?

 

public class MyPropertyGridDataTemplateSelector : DataTemplateSelector
{
    public override DataTemplate SelectTemplate(object item, DependencyObject container)
    {
        var pd = item as PropertyDefinition;
 
        if (pd != null && pd.SourceProperty.PropertyType == typeof(string))
        {
            /* Something like this?
            pd.Binding = new Binding
            {
                Path = new PropertyPath(pd.SourceProperty.Name),
                Mode = BindingMode.TwoWay,
                UpdateSourceTrigger = UpdateSourceTrigger.LostFocus
            };
            */
 
            return FilePathDataTemplate;
        }
 
        return null;
    }
 
    public DataTemplate FilePathDataTemplate { get; set; }
}

Binding becomes a problem since the property name is unknown:
<local:MyPropertyGridDataTemplateSelector x:Key="dataTemplateSelector">
        <local:MyPropertyGridDataTemplateSelector.FilePathDataTemplate>
            <DataTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <!-- This is where the problem begin... -->
                    <TextBox Text="{Binding Path}" Grid.Column="0" />
                    <Button Content="..." Width="25" Height="25" Grid.Column="1" Command="{Binding DataContext.OpenCommand, RelativeSource={RelativeSource AncestorType={x:Type Window}}}" CommandParameter="{Binding Path}" />
                </Grid>
            </DataTemplate>
        </local:MyPropertyGridDataTemplateSelector.FilePathDataTemplate>
    </local:MyPropertyGridDataTemplateSelector>
Ivan Ivanov
Telerik team
 answered on 12 Jun 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?