Telerik Forums
UI for WPF Forum
1 answer
107 views

We are using the Telerik controls in developing our application. We were using Coded UI Test to test our application.

We have created a user control using the Telerik controls and we have hosted this user control in our application.If the user control is placed directly under RadPaneGroup, CUIT is not able to highlight them.

Following are our observations:

 

  1. After running the sample application from the VSTS solution and try to identify the controls using Coded UI Test Builder, I am seeing an exception in the application solution. I have attached the snapshot of the exception to the thread.
  2. From the exception message it is clear that there is some issue with the AutomationPeer of RadPane.

Any help here is greatly appreciated.

Thanks,
Vijay

 

Boyan
Telerik team
 answered on 20 Nov 2012
1 answer
107 views
Hi,

I found that there is a property for Bollinger Band thickness (StrokeThickness):

BollingerBandsIndicator indicator = new BollingerBandsIndicator();
indicator.Period = 20;
indicator.StandardDeviations = 2;
 
indicator.Stroke = Brushes.Red;
indicator.LowerBandStroke = Brushes.Red;
indicator.StrokeThickness = 1;

However, when the indicator displays, only the upper band thickness will be effective for changing the StrokeThickness. I cannot find how to change the thickness of the lower band.
Any help?

Many thanks!
Frankie

Petar Marchev
Telerik team
 answered on 20 Nov 2012
3 answers
244 views
Hi There,

I have a requirement to extend the check box clickable area,can you please tell me, that where i can set this in the styling.?
for more information I have attached a screenshot please check once and let me know if you need more information.

Thanks in advance,
Srinivas.

Ravi
Top achievements
Rank 1
 answered on 20 Nov 2012
5 answers
477 views
Hello, 

I have a RadGridView with select column and items that are binded to this grid have boolean field named IsChecked. I want to write binding that will check\uncheck checkbox in GridViewSelectColumn depending on item's IsChecked property value. I tried everything I found in google, but no luck. 
Any help will be appreciated.

Thanks
Dimitrina
Telerik team
 answered on 20 Nov 2012
4 answers
619 views
Hi,

I need to draw a vertical line when in particular mode in my application on my ChartView.  The line would go from the X-Axis up to the the top of the chart grid area.  Also I need to add a label near the line which would report out in live time the value (Y-Axis) of the current channel (X-axis value), see Image1.png.  I would like the line to be visible if zoomed in on that area of the chart.  Please provide code snipet of how to add such overlays/labels to the chartview (don't know the exact terminology for this control).

Also is there a built-in way to zoom out of the chart?  It's very easy to zoom-in, but I would also think that there would be a way to zoom out, or does this have to be manually programmed?  If it has to be manually programmed, is there any way to catch the zoom event so I could try to over-ride  a uppper-left to lower-right zoombox to make this zoom out to the default zoom?

Also is there way built-in to pan over the chart with the mouse, or are using scrollbars the only way?

If there are samples that have been written please share, or point me towards them

Thanks!


P.S. - These are the final few items of evaluation before I give the recomendation for my company to buy the WPF suite of controls.
Victor
Telerik team
 answered on 20 Nov 2012
1 answer
237 views
hi ,

we are using 2010.3.1110.40 version of telerik dlls like Telerik.Windows.Controls.Docking etc ,
I want to know which is the latest version of these dlls from Telerik  since we are planning to upgrade our telerik dlls ,
and where i can get the information if telerik updates its dll to a newer version.
Dimitrina
Telerik team
 answered on 20 Nov 2012
3 answers
301 views
I have this project where the software communicates with a remote hardware.
Based on the visible rows, I need to read only the visible section inside a buffer in the hardware and update the grid accordingly (this is to prevent reading load of irrelevant data which is currently not visible to the user).
There is no easy way of telling what are the visible rows in the GridView (I have read that there was, but now we have to dig in).

I have tried using the method in the example that was given here:
http://www.telerik.com/community/forums/wpf/gridview/firstvisiblechildindex.aspx

However, for some reason in my project it will never find the last row, therefore causing an exception.

I have used a different method of getting all the rows from the virtualizing stack panel and then iterating them to see what is the lowest item index and using the rows count at the num of rows:

        private void recalculateFirstAndLastVisibleIndexes()
        {
            var gvvp = this.radGridView.ChildrenOfType<GridViewVirtualizingPanel>().FirstOrDefault();
 
            if (gvvp == null)
                return;
 
            var rowsList = gvvp.ChildrenOfType<GridViewRow>();
 
            if (rowsList.Any())
            {
                int firstIndex = this.radGridView.Items.IndexOf(rowsList.ElementAt(0).Item);
                foreach (var row in rowsList)
                {
                    firstIndex = Math.Min(firstIndex, this.radGridView.Items.IndexOf(row.Item));
                }
 
                FirstVisibleRowIndex = firstIndex;
                NumOfVisibleRows = rowsList.Count();
            }
            else
            {
                FirstVisibleRowIndex = 0;
                NumOfVisibleRows = 0;
            }
        }



This does work (although it seems to return a little more rows than expected when the scrollviewer is visible....


Still, when the UI starts I try getting the visible rows on several occasions:
radGridView_Loaded
radGridView_DataLoaded
and also: radGridView_ScrollChanged

The problem is that it is not enough...
When I get the DataLoaded event, the rowsList is still empty... I need to wait for the next LayoutUpdated event and only then call the recalculateFirstAndLastVisibleIndexes function.

If I try to rely only on the ScrollChanged event then if there are for example 10 rows and the window are can contain 20 row, then if I add or remove rows then this event is never being called.


I did not find any way to get notified when the visible rows change. Is there any solution?

Thanks.
Vlad
Telerik team
 answered on 20 Nov 2012
1 answer
92 views
I get the following error when trying to view the Grid demo:

The database 'C:\PROGRAM FILES (X86)\TELERIK\RADCONTROLS FOR ASP.NET AJAX Q3 2012\LIVE DEMOS\APP_DATA\NORTHWIND.MDF' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.
Could not open new database 'C:\PROGRAM FILES (X86)\TELERIK\RADCONTROLS FOR ASP.NET AJAX Q3 2012\LIVE DEMOS\APP_DATA\NORTHWIND.MDF'. CREATE DATABASE is aborted.
An attempt to attach an auto-named database for file C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q3 2012\Live Demos\App_Data\Northwind.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.



Please advise
Vlad
Telerik team
 answered on 20 Nov 2012
9 answers
594 views
Hi,

I want to use the Telerik grid to show a read only live feed of millions of records (while still supporting sorting, filtering, etc.).
Is it supported (I will also want to use the DataFilter to filter the live feed)? 

I have two questions:
1. I went over the documentation and couldn't find any performance guidance on how to populate the grid with millions of records of live data.
Should I feed the grid one row at a time by adding it to the Items collection? 
Should I use ObservableCollection and add rows to it when they are available?
Should I add single rows or should I add batches of rows?
If I'm using an ObservableCollection, I can't add records to it from a worker thread. I need to use the Dispatcher to actually feed the collection, which seems to slow down everything... What is the right way to do so?
I tried implementing the ObservableCollection approach, adding 3000 rows every second (while using the Dispacher and DeferRefresh), but it is a bit slow and not so responsive. 

2. When implementing the ObservableCollection and the Dispatcher, I noticed a strange scrolling issue. Every time there is an update (adding rows to the collection) the grid scrolls back to the first row.
I actually want a different behavior and I can't figure out how to do that.
I want the grid to automatically scroll to the last row, but if the user is manually scrolling, I want the automatic scrolling to stop and the grid to stay where the user scrolled to.
I can probably implement the auto scrolling myself, but I can't find how to tell the grid not to scroll to the first line. How can I do that?

Thank you,
Yoav.
Pavel Pavlov
Telerik team
 answered on 19 Nov 2012
1 answer
994 views
How can I implement blur in MainWindow when I opened ModalWindow?
See attached file. Tnank You.
Boyan
Telerik team
 answered on 19 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?