Telerik Forums
UI for WPF Forum
3 answers
127 views
I have a flag enum that contains more than 32 flags so I set the underlying type to be long (Int64). When I set the RadPropertyGrid.Item to an object which has a long flags property, I get an OverflowException: "Value was either too large or too small for an Int32." (originating at Telerik.Windows.Controls.Data.PropertyGrid.FlagEnumEditor.OnEnumTypePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) ).

Is there a way for the property grid to deal with enums whose underlying type is Int64 (or some other type > 32bit)?
Maya
Telerik team
 answered on 10 Jul 2012
3 answers
197 views
Hello,

My ganttview has many rows, and I would like to programactilly show a particular row the first visible row, that is I would like to programactilly scroll to a particular row.  Is this possible in ganttview?

Thanks,
Eric
Miroslav Nedyalkov
Telerik team
 answered on 10 Jul 2012
1 answer
176 views
hello,

while running some CodedUI Tests on WPF Aplication who use Rad Gridview (2012 Q1)
Usual CodedUI Test (click on grid, click On Cells, Press Down...)
using VS2010
Windows XP.

suddenly i got this Exception from the Application itself (not the test!)

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generics.List'1.Enumerator.MoveNextRare()
at System.Collections.Generics.List'1.Enumerator.MoveNext() 
at
Telerik.Windows.Controls.GridView.Automation.GridViewDataControlAutomationPeer.GeneratePeersForDataItems(List'1 newPeerList, AutomationPeerStorage'2 oldCachedPeers)
at
Telerik.Windows.Controls.GridView.Automation.GridViewDataControlAutomationPeer.GetItemPeers()
at
Telerik.Windows.Controls.GridView.Automation.GridViewVirtualizingPanelAutomationPeer.GetChildrenCore()
at Telerik.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
at Telerik.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.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.AnimatedRenderMessageHandler(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)



can someone help..?
thanks in advance.





Yordanka
Telerik team
 answered on 10 Jul 2012
6 answers
160 views
Hey,
Just a quick question - in the WPF demo application, when You download it and it loads for the first time it displays a line loading and massive numbers going up. Is that done with one of Your tools provided ? and If yes which is it ?
Regards,
(Premium Collection user) Neil
Ivan Zhekov
Telerik team
 answered on 10 Jul 2012
1 answer
79 views
Hy,

I've got the following Problem.
If i Save the Diagram to String and Load the string back into the same Diagram, my binding doesn't work anymore.
Bug inside the Diagram Framework or OSI Layer 9 (20 cm in the front of the monitor) ?


XAML:
<telerik:RadDiagramShape x:Class="SPARE_BPMS_Framework.Shapes.General.ProcessShape"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" Content="{Binding}"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             d:DesignHeight="300" d:DesignWidth="300">
 
    <telerik:RadDiagramShape.Resources>
        <DataTemplate x:Key="editTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBox Height="24" Text="{Binding Name}" />
            </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="template">
            <WrapPanel Orientation="Vertical">
                <TextBlock Text="{Binding Name}" />
                <TextBlock Text="{Binding ChildProcessName}" />
            </WrapPanel>
 
        </DataTemplate>
    </telerik:RadDiagramShape.Resources>
</telerik:RadDiagramShape>

Code Behinde
public partial class ProcessShape : RadDiagramShape
    {
        public ProcessItem Model { get; set; }
 
        public string Name { get; set; }
 
        public ProcessShape()
        {
            InitializeComponent();
 
            Model = new ProcessItem();
           
            this.EditTemplate = (DataTemplate)this.FindResource("editTemplate");
            this.ContentTemplate = (DataTemplate)this.FindResource("template");
 
            this.DataContext = Model;
 
            this.MouseDoubleClick += new MouseButtonEventHandler(Model.shape_MouseDoubleClick);
        }
 
        public void Update()
        {
            this.EditTemplate = (DataTemplate)this.FindResource("editTemplate");
            this.ContentTemplate = (DataTemplate)this.FindResource("template");
 
        }
 
         
    }

Method who call the Reload and Load
string temp = diagram.Save();
                diagram.Clear();
            diagram.Load(temp);

Greetings

Alfred

Miro Miroslavov
Telerik team
 answered on 10 Jul 2012
1 answer
101 views
Hello,

I'm just curious,  I always post questions between 10-5 Pacific Time (UTC -7) and they seem to be answered when I come back in the morning.  What time zone are you guys posting from?

Eric
Vlad
Telerik team
 answered on 10 Jul 2012
2 answers
124 views
Hi, support team,

We've upgraded to 2012.2.0607.40 recently and I found one chagne in the RadGridView that impacts user experience.
Basically we have input boxes (hosted inside the grid) to allow user to enter something to filter the grid. The problem is every time user entered something in the text box, GridViewDataControl.OnItemsChanged will be executed, and the grid found that it has the focus (because we host the text box in the grid) so it call a PreserveFocus internally to set the focus to itself and actually steal the focus from the text box inside the grid.

Right now my work around is to override the OnItemsChanged to set the focus back but it's still having problem sometimes.
     protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
     {
      var inputElement = Keyboard.FocusedElement;
      base.OnItemsChanged(e);
      if (inputElement is TextBox)
      {
        Dispatcher.BeginInvoke(() => Keyboard.Focus(inputElement), DispatcherPriority.Input);
      }
    }

Can you look into fix the problem?

Thanks
Jason
Jason
Top achievements
Rank 1
 answered on 10 Jul 2012
2 answers
83 views
Hi,

I would like to ask the experts and the general community users telerik his advice on the correct selection of controls for a scenario like this:

An application (WPF Web Application) that at runtime, the creation of multiple items (a user control perhaps) but these items can be classified into 1 of 5 types ..... ie item 1 can be type A, type B item 2, etc ..... forming a list of selectable items grouping by type....

Furthermore, these elements must be contained in a manner that allows the user to drag and drop on another control or container.

The variety of Telerik controls is impressive and in some tests I made ​​several mistakes .... or several ways to do wrong .... in any case, what kind of controls may be used for a similar scenario .... I permitted through the functionality that is required?

In advance, thank you all.
Romell
Top achievements
Rank 1
 answered on 09 Jul 2012
0 answers
120 views
Hi All,

I can successfully compile the installed WPF demos included in the commerical version.  But I cannot preview the XAML views.  I get the error below.  I only have Q1 2012 installed for all the Telerik Products on this this machine, I uninstalled all others.


Error 82 Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'Telerik.Windows.Examples.RibbonView' that is not included in the assembly. C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\RibbonView\WPF\RibbonWindow\Example.xaml 4 15 RibbonView.WPF


Can someone point out what might be happening here?

Thanks,

Reid
Reid
Top achievements
Rank 2
 asked on 09 Jul 2012
3 answers
127 views
I exported the style in Blend but don't see a way to change the Column header background. Is this possible to do?
Rod
Vlad
Telerik team
 answered on 09 Jul 2012
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?