Telerik Forums
UI for WPF Forum
3 answers
277 views
Hi,

Our application recently moved to Win 7 64 Bit environment;  We are using telerik controls version 2011.2.712.35.
This error only occurs when there is an automation program recording the program. We are getting below exception causing application to crash. Any help with this error would be greatly appreciated.



00000021    12.90117836    [3220] Exception Source: PresentationCore     
00000022    12.90123844    [3220] Exception Message: Recursive call to Automation Peer API is not valid.     
00000023    12.90127945    [3220] Exception StackTrace:    
00000024    12.94501019    [3220]    at System.Windows.Automation.Peers.AutomationPeer.GetChildren()      
00000025    12.94511509    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000026    12.94518375    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000027    12.94525433    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000028    12.94532013    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000029    12.94538403    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000030    12.94546223    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000031    12.94552708    [3220]    at System.Windows.Automation.Peers.AutomationPeer.ValidateConnected(AutomationPeer connectedPeer)      
00000032    12.94559765    [3220]    at MS.Internal.Automation.ElementProxy.StaticWrap(AutomationPeer peer, AutomationPeer referencePeer)      
00000033    12.94566154    [3220]    at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)      
00000034    12.94572735    [3220]    at Telerik.Windows.Controls.RadTabControlAutomationPeer.GetChildrenCore()      
00000035    12.94579411    [3220]    at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()      
00000036    12.94585800    [3220]    at System.Windows.Automation.Peers.AutomationPeer.GetChildren()      
00000037    12.94592571    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000038    12.94598866    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000039    12.94605255    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000040    12.94611740    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000041    12.94618225    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000042    12.94624615    [3220]    at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(AutomationPeer parent)      
00000043    12.94631290    [3220]    at System.Windows.Automation.Peers.AutomationPeer.ValidateConnected(AutomationPeer connectedPeer)      
00000044    12.94637871    [3220]    at System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)


Thanks,
Piyush
Stefan
Telerik team
 answered on 17 Oct 2013
4 answers
459 views

Hello.
I need to load large data as RadListBoxItems with template like.
My code:
<telerik:RadListBox Name="testlv">
                <telerik:RadListBox.ItemTemplate>
                    <DataTemplate>
                        <Border BorderBrush="Turquoise" BorderThickness="0,1,0,1" Width="{Binding Path=ActualWidth, ElementName=grdzero}">
                            <WrapPanel Orientation="Vertical" >
                                <TextBlock Foreground="Black" Text="{Binding nazwa}" FontSize="16"></TextBlock>
                                <WrapPanel Orientation="Horizontal">
                                    <TextBlock Foreground="Black" Text="Cena: "  FontSize="16"></TextBlock>
                                    <TextBlock Foreground="Black" Text="{Binding cena}"  FontSize="16"></TextBlock>
                                </WrapPanel>
                                <WrapPanel Orientation="Horizontal">
                                    <TextBlock Foreground="Black" Text="Kod: "  FontSize="16"></TextBlock>
                                    <TextBlock Foreground="Black" Text="{Binding kod}"  FontSize="16"></TextBlock>
                                </WrapPanel>
                            </WrapPanel>
                        </Border>
                    </DataTemplate>
                </telerik:RadListBox.ItemTemplate>
            </telerik:RadListBox>


And code behind:
private void getProducts(string query)
      {
          prodDG.Items.Clear();
          List<SearchProd> pL = FastSellSearchClass.lista.Where(x => x.nazwa.ToLower().Contains(query.ToLower()) || x.kod.Contains(query) && x.wID == int.Parse(Application.Current.Properties["warehouseID"].ToString())).ToList();
          testlv.ItemsSource = pL;
}

List<searchProd> represent list of product. It work's like:
client press any key in keyboard, which open new window with radListBox, insert pressed key into textBox, and going into
getProducts(string query) to filter items (where query = pressed key).
So for example when somebody press 'S', it will search for items, where name or code contains 'S'.

Problem is that, with 3000 products page is loading for like 9-10 second.
When it's loaded, it tooks less than second to find any words with 'Sa' for example.
So is there any way to speed up opening window a little bit?
Vladi
Telerik team
 answered on 17 Oct 2013
1 answer
175 views
Why ShowGroupPanel does't work in TreeListView?
Dimitrina
Telerik team
 answered on 17 Oct 2013
1 answer
186 views

Hi,

I am looking at implementing a automatic mindmap diagram layout in order to enforce the position of the items dropped as well as update the layout whenever a branch is expanded or collapsed. The basic behavior I am looking for is similar to the one provided as a sample with the mindmap layout sample. One of the tricky part is to update the existing item's position when the user expands a node in order to avoid items overlap. Do you recommand a particular approach in this area. XMind does a pretty good job in this area and this is the kind of behavior I am trying to implement.



Rgds

Robert

Petar Mladenov
Telerik team
 answered on 17 Oct 2013
1 answer
159 views
Hi,
We are creating columns dynamically. There are a few datetime columns where we set the datatype as DateTime and CellEditTemplate as below.

 dataColumn.DataType = (typeof(DateTime?));
            dataColumn.DataFormatString = "{0:dd-MMM-yyyy}";
            dataColumn.TextAlignment = TextAlignment.Right;
            dataColumn.CellEditTemplate = GetDatePickerTemplate(dataColumn);
        }

        private static DataTemplate GetDatePickerTemplate(GridViewDataColumn column)
        {
            var fef = new FrameworkElementFactory(typeof(FormatedRadDatePicker));
          ................

The issue is when you sort the grid with this datetime column and try to edit any value in this column the application crashes with below error:

 Dispatcher UnHandled Exception: System.ArgumentException: Object must be of type DateTime.
   at System.DateTime.CompareTo(Object value)
   at Telerik.Windows.Data.FunctionComparer.Compare(Object x, Object y)
   at Telerik.Windows.Data.ListExtensions.BinarySearch[T](IList`1 items, T value, Func`3 compareFunc)
   at Telerik.Windows.Data.KeyedCollection.IndexOf(Object value)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.RefreshAlternation(GridViewDataControl parentGrid, GridViewRow gridViewRow, Object dataItem)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.RealizeRows(Int32 startIndex, Int32 endIndex, Double& verticalOffset, HashSet`1& realizedRows)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.MeasureOverride(Size availableSize)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)...........


To me it looks like after the cell edit is over grid tries to put the newly edited data to its rightful place based on sortdescriptor. Probably it fetches the data from DateTimeTextProperty as string type and is not able to compare with DateTime values of other cells....
Rossen Hristov
Telerik team
 answered on 17 Oct 2013
2 answers
299 views
Hello,
        I can add secondary y-axis to my chart.Currently the chart has secondary Y-axis equals to the number of series aligned to that axis.
But our requirement is to have only one secondary Y axis should be configured to the all the series which have  aligned to that secondary Y axis.In short, I would like to have only one secondary Y-axis to right for multiple series and it should configure scale automatically on that axis according to series values. Just like we have primary vertical  Y  on Left axis  which scales automatically for any multiple number of series.
Is it possible to assign the same primary Vertical Y  on Right axis for any number of series?
I have gone through the documentation of shared vertical axis here http://www.telerik.com/help/wpf/radchartview-axes-multipleaxes.html
but we have dynamic multiple series and we are adding series to the chart dynamically.So how do i set the secondary vertical axis?.Currently I have set it to for every series and that's why multiple vertical axes are getting added.   
 
Could you please help me to resolve this issue if it is possible to implement.
Thank You in Advance  
Dts
Top achievements
Rank 1
 answered on 17 Oct 2013
2 answers
194 views

Hello.

I have a problem with columns in grid. I would like to have columns with the same width and this width should not depend on the content of the columns.

Here is my code:

    <Grid Margin="5" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="0" 
                                 ItemsSource="{Binding TreeView0}" />
            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="1" 
                                 ItemsSource="{Binding TreeView1}" />
            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="2" 
                                 ItemsSource="{Binding TreeView2}" />
            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="3" 
                                 ItemsSource="{Binding TreeView3}" />
    </Grid>

When I am expanding tree in RadTreeView the column changes it's width and other columns changes respectively. But I would like to have four columns with width = 1/4 of grid's width. RadTreeView has its own ScrollBar for horizontal scrolling.

Is there any property on RadTreeView that stops it from growing horizontally? I tried to enable horizontal scrollbar but it didn't helped.
Ilya
Top achievements
Rank 1
 answered on 17 Oct 2013
1 answer
413 views
Hello,

I want RadAutoCompleteBox to display the vertical scroll bar and I'm using ScrollViewer.VerticalScrollBarVisibility="Auto", but it's not displaying. What am I missing? Please advise.

Thanks,
Brew
Brew Hutch
Top achievements
Rank 1
 answered on 16 Oct 2013
2 answers
101 views
Hello! I'm wondering If I can change the size of the point in caret position .

This point appears only when I touch the screen but it's difficult to select that point to change the selection with the fingers.

Thanks for your help.

Here is the image of that point.

Ricardo
Top achievements
Rank 1
 answered on 16 Oct 2013
11 answers
178 views
Hello,,,
I'm new to the Telerik components and we are having some difficulties because do not know them well, but I know I will receive help.
The thing is, I've had reading the help, but I could not see a way to add a filter feature automatic, I know you have the fields above each column, but the filter is only done after hit enter or loses focu but we need a functionality that when typing the RadGridView already go with updating the information entered.

Please if possible add a sample Demo here to see and we can apply in our project.

graciously
André
Andre
Top achievements
Rank 1
 answered on 16 Oct 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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?