Telerik Forums
UI for WPF Forum
8 answers
226 views
Hi,

Simply running your Q1 2010 demo for the wpf docking does not work correctly with my multiple monitor configuration. I currently am running Windows 7 and have 3 monitors set-up to extend my desktop. One of my monitors is plugged into a usb video port replicator docking port which is where the problem occurs. My configuration is my center screen is my primary, then I have a screen to the left and another one to the right. If I drag a window to the right it works as expected. I am unable to drag to the left, simply does not recognize the boundries or something. If I run the whole application on the left monitor and try to undock a window, the undocked window just vanishes, not even letting me drag it around. The docking port I use is the HP HSTNN-S01x. Currently I use the Actipro docking control and do not encounter this issue.

Thanks

Rick


Rick Knicely
Top achievements
Rank 1
 answered on 27 Jun 2010
0 answers
102 views

Hi, all

 Nice to meet you!

Eva
Top achievements
Rank 1
 asked on 26 Jun 2010
1 answer
103 views
Hello,
I have a problem with using ShowDialog method of RadWindow in WebBrowser. A new window appears, but ShowDialog should susspend by main application. I use Close callback to resolve this problem, but it's not a good solution for complicated application.
I really need to freeze code execution when modal dialog appears.
George
Telerik team
 answered on 25 Jun 2010
3 answers
335 views
Hi,

searching the internet I found following statement:

Q: Can I use Bing Maps (Virtual Earth) within a Windows Forms or WPF Desktop Application?

A: As far as Licensing, you’ll need to contact Microsoft. The “Microsoft Virtual Earth Platform API Terms of Use” doesn’t really cover this specific usage scenario.

Microsoft doesn’t have a Window Forms or WPF control that you can just drag onto a Window, but you could access the Web Service from your application or display the JavaScript Map Control within an embedded WebBrowser control.


(http://pietschsoft.com/post/2009/06/02/Bing-Maps-for-Enterprise-Virtual-Earth-Licensing-FAQ-Questions.aspx)

Do I really have to contact Microsoft for using RadMap or do you already know which licensing-model is needed for commercial use of your control?

Best Regards
Steffen


Andrey
Telerik team
 answered on 25 Jun 2010
1 answer
124 views
Hi,
When data is loaded the first line of the GridView is selected by default,I want no selection and how to do that? 
thank you!
Milan
Telerik team
 answered on 25 Jun 2010
1 answer
506 views
Hi,

I saw a similar issue posted in the Silverlight forum. I am not able to use the solution presented there because I need to instantiate my view model with parameters from the view. I am trying to bind a Composite WPF DelegateCommand to a column cell template in my RadGridView.

When I run the application I get this error in the output window:
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=LayoutRoot'. BindingExpression:Path=DataContext.StopCommand; DataItem=null; target element is 'Button' (Name='StopButton'); target property is 'Command' (type 'ICommand')

If I bind the command to a button outside the RadGridView it works as expected.

I have the following XAML:
<Window x:Class="MVVMCommand.MainWindow" 
        x:Name="LayoutRoot" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Title="MainWindow" Height="300" Width="300" 
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> 
    <StackPanel> 
        <Button Content="This one works" 
                CommandParameter="42" 
                Command="{Binding ElementName=LayoutRoot, Path=DataContext.StopCommand}" /> 
            <telerik:RadGridView Name="radGridView1" ItemsSource="abcd"> 
            <telerik:RadGridView.Columns> 
                <telerik:GridViewColumn Header="Start"> 
                    <telerik:GridViewColumn.CellTemplate> 
                        <DataTemplate> 
                            <Button Content="This one does not"
                                    CommandParameter="42" 
                                    Command="{Binding ElementName=LayoutRoot, Path=DataContext.StopCommand}" /> 
                        </DataTemplate> 
                    </telerik:GridViewColumn.CellTemplate> 
                </telerik:GridViewColumn> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 
    </StackPanel> 
</Window> 

The view model looks like this:
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using Microsoft.Practices.Composite.Presentation.Commands; 
 
namespace MVVMCommand 
{ 
    public class MVVMCommandViewModel 
    { 
        public DelegateCommand<object> StopCommand { get; set; } 
 
        public MVVMCommandViewModel(string s) 
        { 
            StopCommand = new DelegateCommand<object>(StopCommand_Execute); 
        } 
 
        void StopCommand_Execute(object o) 
        { 
 
        } 
    } 
} 

My code-behind:
    public partial class MainWindow : Window 
    { 
        MVVMCommandViewModel _viewModel; 
 
        public MainWindow() 
        { 
            InitializeComponent(); 
            _viewModel = new MVVMCommandViewModel("42"); 
            this.DataContext = _viewModel; 
        } 
    } 

Maya
Telerik team
 answered on 25 Jun 2010
1 answer
220 views
Hi ,

I am using Telerik WPF version : 2009.1.xxx.xx
WPF window screen i place the following line:
 <telerik:RadDatePicker x:Name="dtpDate"  SelectedDate="{Binding ReferredToDate, Mode=TwoWay, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged }"  SelectionChanged="dtpDate_SelectionChanged"/>

When i input  digit Zero(0) in datetime picker and press tab i gett following error :

Year, Month, and Day parameters describe an un-representable DateTime.

BECAUSE OF THIS ERROR EVEN IT NOT FIRE THE PROPERTY CHANGED EVENT..

HOW TO HANDLE THIS ISSUE ?

Thanks in advance
Hiren
Kaloyan
Telerik team
 answered on 25 Jun 2010
2 answers
132 views
Hi,

I've been looking through the DataGrid documentation (the WPF Demos, looking at the code behind) and there is a CellTemplateSelector property used:

<telerik:GridViewDataColumn Header="UnitPrice" DataMemberBinding="{Binding UnitPrice}" 
                            CellTemplateSelector="{StaticResource selector}" DataFormatString="{}{0:c}" /> 
(Demo: Controls -> Data -> GridView -> DataTemplateSelectors -> Templating cells -> example.xaml)

Im using the RadControls for WPF Q1 2010 SP2, however this property does not appear, I can set the property CellTemplate property but not a CellTemplateSelector. Should this be possible?

<telerik:GridViewDataColumn UniqueName="direction"   
                            Header="Direction" DataMemberBinding="{Binding Path=eventDirection}"/> 

Thank you,
Toby
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
117 views

Hi,

i have tried following thing for Stick chart. Following thing is worling fine now issue:

public partial class MainPage : UserControl  
    {  
        public MainPage()  
        {  
            InitializeComponent();  
 
            InitializeChart();  
        }  
 
        private void InitializeChart()  
        {  
            Telerik.Windows.Controls.Charting.StickSeriesDefinition cssd = new StickSeriesDefinition();  
            cssd.ShowItemToolTips = true;             
 
 
            telerikChart.DefaultSeriesDefinition = cssd;  
            telerikChart.ItemsSource = GetStocks();  
            SeriesMapping sm=new SeriesMapping();  
            sm.ItemMappings.Add(new ItemMapping("Name", DataPointMember.XCategory));  
            sm.ItemMappings.Add(new ItemMapping("Open",DataPointMember.Open));  
            sm.ItemMappings.Add(new ItemMapping("Close", DataPointMember.Close));  
            sm.ItemMappings.Add(new ItemMapping("Low", DataPointMember.Low));  
            sm.ItemMappings.Add(new ItemMapping("High", DataPointMember.High));  
            sm.ItemMappings.Add(new ItemMapping("High", DataPointMember.Tooltip));  
              
 
            telerikChart.SeriesMappings.Add(sm);  
            telerikChart.DefaultSeriesDefinition.ShowItemLabels = true;  
        }  
 
        private List<Stock> GetStocks()  
        {  
            List<Stock> lstStock = new List<Stock>();  
 
            for (int i = 0; i < 1000; i=i+100)  
            {  
                Stock s = new Stock();  
                s.Name = "Stock" + i;  
                s.Open = i + 100;  
                s.Low = i;  
                Random r = new Random(i);  
                r.NextDouble();  
                s.Close = r.Next(100,150) + i;  
                s.High = s.Close + i;  
                lstStock.Add(s);  
            }  
 
            return lstStock;  
        }  
 
          
 
    }  
 
    public class Stock  
    {  
 
        public string Name { get; set; }  
        public double Open { get; set; }  
        public double Close { get; set; }  
        public double High { get; set; }  
        public double Low { get; set; }  
 
    } 

Stick chart is also shown (Plz See attachment).

Issue:

I have set telerikChart.DefaultSeriesDefinition.ShowItemLabels = true;  
so that to see the Item Label, but stick chart is showing 0 as highlighted in the screenshot. Is there way to see open,Close,Low.high value of the stick as a item label?


Can you please provide me good sample for the same. also provide pointer to doc that explains the Stick chart.

Ves
Telerik team
 answered on 25 Jun 2010
1 answer
727 views
Hello,

Is it possible to prevent drag operation when an user is using a GridSplitter to resize column/row ?

For example :



        <telerik:RadTreeView IsDragDropEnabled="True" ItemTemplate="{StaticResource TreeItemTemplate}">  
            <telerik:RadTreeView.ItemContainerStyle> 
                <Style TargetType="{x:Type telerik:RadTreeViewItem}">  
                    <Setter Property="HorizontalContentAlignment" Value="Stretch"/>  
                </Style> 
            </telerik:RadTreeView.ItemContainerStyle> 
            <telerik:RadTreeView.Items> 
                <Control Name="control1" Tag="Some text for control1" /> 
                <Control Name="control2" Tag="Some text for control2" /> 
            </telerik:RadTreeView.Items> 
        </telerik:RadTreeView> 
 
            <DataTemplate x:Key="TreeItemTemplate">  
                <Border BorderThickness="1" BorderBrush="LightGray" Margin="2" CornerRadius="5">  
                    <Grid> 
                        <Grid.ColumnDefinitions> 
                            <ColumnDefinition Width="Auto"/>  
                            <ColumnDefinition Width="*"/>  
                        </Grid.ColumnDefinitions> 
                        <TextBlock Grid.Column="0" Text="{Binding Name}" Margin="3,0,10,0"/>  
                        <GridSplitter Grid.Column="0" Width="1" Background="LightGray" ResizeDirection="Columns"/>  
                        <TextBlock Grid.Column="1" Text="{Binding Tag}" Margin="3,0,0,0"/>  
                    </Grid> 
                </Border> 
            </DataTemplate> 
 

Is there any solution ? I tried t define  dragDrop:RadDragAndDropManager.AllowDrag="False" on GridSplitter but this doesn't work.

I have the same problem using RadDragDropManager in a templated list (Some draggable items contain Slider).

Thanks,
Guillaume.
GuillaumeR
Top achievements
Rank 1
 answered on 25 Jun 2010
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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?