Telerik Forums
UI for WPF Forum
1 answer
146 views
Hi,

I upgraded from version 2012.3.1129.40 to 2013.3.1204.40.
With this new version I didn't find how to prevent from removing a node after drag & drop.
In the older version I was able to do it with:
public MyView()
{
  InitializeComponent();
  this.m_cellTreeView.PreviewDragEnded += this.OnPreviewDragEnded;
}
  
private void OnPreviewDragEnded(object sender, RadTreeViewDragEndedEventArgs e)
{
  e.Handled = true;
}

With the new version, I'm using your recommendations: I use the DragDropManager class only, I set the DragDropExecutionMode to New but the PreviewDragEnded handler is not called anymore and the event PreviewDragEnded is marked as deprecated.
What is the best way to do this ?

Thanks,
Boris
Telerik team
 answered on 20 Jan 2014
1 answer
508 views
Hi,

In the purchase section it says: 
  • 1 License for a single-named user.
In the license agreement it says:  
1.2 Scope of Use.
 The Software is licensed, not sold, on a per-seat basis. You may only allow the number of individuals in Your organization to use the Software that corresponds to the maximum number of License seats You have purchased from Telerik hereunder. This means that at any given time, the number of individuals authorized to use the Software under the License (each a “Licensed Developer”) cannot exceed the number of License seats that You have purchased from Telerik and for which You have paid Telerik all applicable License Fees pursuant to this Agreement. The Software is in “use” on a computer when it is loaded into temporary memory (i.e. RAM) or installed into permanent memory (e.g. hard disk or other storage device) of that computer for development purposes. Your Licensed Developers may install the Software on multiple machines, so long as the Software is not being used simultaneously for development purposes at any given time by more Licensed Developers than You have License seats...

The first seems to mean that if someone takes over GUI development in a project, we need a new license, the second seems to imply it's like a floating license and only the number of users, no matter who they are, must not exceed the number of licenses.

Which is it?
Deni
Telerik team
 answered on 20 Jan 2014
1 answer
178 views
Hi,
I would like to create a new RadGridViewColumn similar to GridViewComboBoxColumn.
The new column should contains a TreeView inside the dropdown to show the ItemsSource in hierarchical mode.
Is it possible to obtain this? Can you post me an example?

Thanks.
Hristo
Telerik team
 answered on 20 Jan 2014
1 answer
132 views
Hello;

Is it possible to open a child window from a tile view item. I have defined a button in the normal view, then tried to bind the click to a command that will open a child window. I tried in different ways : using event, using showDialog but seems not working from the tileview item. It worked fine from a normal WPF application.

Please let me know if it is possible. I spend the whole trying but not results.
FYI, I use MVVM & WPF

Thanks for your support
Samira
Boris
Telerik team
 answered on 20 Jan 2014
2 answers
253 views
This error is happening consistently on plotting series in "one of the user machine." Its working fine on other machines..

We are using Telerik.Windows.Controls.Charting, File version is 2013.1.220.40.
This also seems to be happening when HP Unified Function Testing tool is on.

Is this a known issue? Any help is appreciated.

Method: App.HandleException
Exception Method: Enumerable.SingleOrDefault
Message: Sequence contains more than one element


Stack Trace:    at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
   at Telerik.Windows.Automation.Peers.ScatterLineSeriesAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.ContextLayoutManager.fireAutomationEvents()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)"



Peshito
Telerik team
 answered on 20 Jan 2014
1 answer
93 views
Hi Team!

I have set this property on my masked input controls

this.SelectionOnFocus = Telerik.Windows.Controls.SelectionOnFocus.SelectAll;

And it works BUT only when I click inside the mask area....
If I click outside the mask area of say my textbox, it does nothing, makes user think he can't even type in that control

How can I make it do a selectAll even if user clicks outside the mask area of the control? Otherwise like I said they will think they can't type in the control. 
Pavel R. Pavlov
Telerik team
 answered on 20 Jan 2014
1 answer
75 views
I just want to let you know about a bug that I found and I do not really see how to report a bug (and not a feature suggestion) in the issue tracker.

I have a RadTreeListView.
I want to click on an item on the list to expand it.
So that I implemented the following:

<t:RadTreeListView x:Name="radTreeListView" AutoGenerateColumns="False" SelectionChanging="radTreeListView_SelectionChanging">
 
    <t:RadTreeListView.ChildTableDefinitions>
        <t:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
    </t:RadTreeListView.ChildTableDefinitions>
 
    <t:RadTreeListView.Columns>
        <t:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" IsReadOnly="True" >
            <t:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <Label Content="{Binding Name}"></Label>
                </DataTemplate>
            </t:GridViewDataColumn.CellTemplate>
        </t:GridViewDataColumn>
    </t:RadTreeListView.Columns>
 
</t:RadTreeListView>

and a handler:

private void radTreeListView_SelectionChanging(object sender, SelectionChangingEventArgs e)
{
    var selectedItem = e.AddedItems.FirstOrDefault();
 
    e.Cancel = true;
 
    this.radTreeListView.ExpandHierarchyItem(selectedItem);
}

This causes an exception when I start the application (basically, when the selection is changing).

Removing e.Cancel = true line solves the issue, but well... if I want to cancel this event, then the app crashes.
Vera
Telerik team
 answered on 20 Jan 2014
2 answers
954 views
Hi everyone,

I am developing a WPF application in my company.
I use RadControls for WPF Q3 2013 trial version.

I have written a sample project made up of a MainWindow and a UserControl.
The MainWindow contains a Button and I have written an handler to the Button's Click event.

Here is the MainWindow's code-behind :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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 Telerik.Windows.Controls;
 
namespace MessageBoxAutoClosed
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            UserControl1 l_userControl = new UserControl1();
 
            RadWindow l_hostWindow = new RadWindow()
            {
                Owner = System.Windows.Application.Current.MainWindow,
                WindowStartupLocation = WindowStartupLocation.CenterOwner
            };
 
            ScrollViewer l_scrollViewer = new ScrollViewer();
            l_scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
            l_scrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
            l_scrollViewer.Content = l_userControl;
            l_hostWindow.Content = l_scrollViewer;
 
            l_hostWindow.Show();
            //l_hostWindow.Close();
 
            MessageBox.Show("MessageBox", "MessageBox", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK);
        }
    }
}

I do not have to click the OK button in the MessageBox to close it because the MessageBox is automatically closed.
Why ?

The MessageBox is not automatically closed when the following line is missing : l_hostWindow.Close();

Thank you in advance for your help
Kalin
Telerik team
 answered on 20 Jan 2014
1 answer
123 views
Hi,

Currently I have a candlestick chart as a usercontrol imbedded in a dock control. everytime I resize my min window, the chart resizes as well, causing it to become more and more compressed.

Instead, I would much prefer if my chart does not automatically resize with the main window, but instead, is clipped. In this case, the user would have to use the scroll bar to view the clipped part of the chart.

Can anyone suggest a way that this may be done, or point me in the direction of a WPF example? 

Thanks in advance.
Peshito
Telerik team
 answered on 20 Jan 2014
2 answers
270 views
Hi buddy, 
I  have a question about Spreadsheet with mvvm ,because i use mvvm pattern so i need to know how to apply spreadsheet  with dynamic data on mvvm pattern 
Seycan
Top achievements
Rank 1
 answered on 20 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?