Telerik Forums
UI for WPF Forum
3 answers
124 views
I have a binding on "SelectedValue" and "CurrentDateTimeText".

Now when I Change the ViewModel (DataContext) "CurrentDateTimeText" is set to null despite "SelectedValue" having a value. Only when the user "physical" changes something in the Input text box of the control the "CurrentDateTimeText"-Property gets updated.

This causes a number of Problems in my Setup which I have to work around.

Why is this property not properly updated?
Kalin
Telerik team
 answered on 13 Aug 2013
1 answer
145 views
Hi,

I have a CodedUI Test written on an application that has RadRibbonWindow with RadRibbonView inside it. When I run the test it throws the following exception when the application is being closed by clicking on the Close button at top right corner.

Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
TechnologyName:  'UIA'
ControlType:  'TabList'
AutomationId:  'ribbonView'
 ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
Result StackTrace: 
at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.FindAllDescendants(String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth)
   at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindAllScreenElement(String queryId, Int32 depth, Boolean singleQueryId, Boolean throwException, Boolean resetSkipStep)
   at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindScreenElement(String queryId, Int32 depth, Boolean resetSkipStep)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
 --- End of inner exception stack trace ---
    at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapControlNotFoundException(COMException ex, IPlaybackContext context)
   at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
   at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
   at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String queryId)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
   at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetElement(Boolean useCache, ISearchArgument searchArg)
   at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.Search(ISearchArgument searchArg)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindInternal()
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.<Find>b__d()
   at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Find()
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.GetPropertyPrivate(String propertyName)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.<>c__DisplayClass11.<GetProperty>b__10()
   at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.GetProperty(String propertyName)
   at Microsoft.VisualStudio.TestTools.UITesting.ALUtility.GetTechElementFromUITestControl(UITestControl uiTestControl)
   at Microsoft.VisualStudio.TestTools.UITesting.ActionExecutorManager.GetActionExecutor(UITestControl uiControl)
   at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
   at Microsoft.VisualStudio.TestTools.UITesting.Mouse.<>c__DisplayClass6.<Click>b__5()
   at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
   at Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
   at Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control, Point relativeCoordinate)
   at Lexicon.CodedUITests.UIMap.ExitTheApp() in z:\Lexicon2013\Code\Development\Lexicon\Applications\Lexicon.CodedUITests\UIMap.Designer.cs:line 43
   at Lexicon.CodedUITests.LexiconCodedUITest.LoginToLexiconTest() in z:\Lexicon2013\Code\Development\Lexicon\Applications\Lexicon.CodedUITests\LexiconCodedUITest.cs:line 32

I am using VS 2012 with Telerik version Q2 SP 2013 (2013.2.805.45)

Hope someone help me solve this issue asap.

Thank you.

Gajan

Stefan
Telerik team
 answered on 13 Aug 2013
1 answer
119 views
Hi

I am using getting a ContextSwitchDeadlock on the following conditions.

1.  Printing a grid with many rows. It can't handle a  grid with 1000 rows from the Northwind database, Order Details table.  If I filter the grid down to about 100 rows I don't get a ContextSwitchDeadlock.

2.  When I have a grid with many thousand of rows (Adventureworks2012) It sometimes locks when switching between partial screen and fullscreen.  If I open and close task manager my app unlocks.

I am using
Latest version of telerik libraries
Dynamic ObservableCollection for ItemsSource

My solution contains two projects and both projects have problem #2

Could you please provide guidelines or recommendations (as detailed as possible) on how best to code for eliminating these locks.
My app is very close to completion but I can't deploy with this problem.  I know you may need my code at some point but could we try your guidelines first.

Thanks
Rich
Ivan Ivanov
Telerik team
 answered on 13 Aug 2013
0 answers
71 views
I came into the office this morning and tried to open ScheduleView. I get an error message that says Unrecognized database format. I looked at the ScheduleView files and the *.mdb file says that it is Microsoft Office Access Application.

Someone please, please help me. Thankfully I have websync so I at least can set appointments.

Cathy

Cathy
Top achievements
Rank 1
 asked on 12 Aug 2013
1 answer
121 views
Hi,

I bind RadGridView with dynamic object with auto generated column,
I want to customize column Header with its Name as textblock and ComboxBox with Unit.

Thanks
Shrikant.
Yoan
Telerik team
 answered on 12 Aug 2013
1 answer
149 views
Hello,

Most of your examples are showing how to use RadRichTextbox (and other controls) using code behind of the xaml.  I am writing application using MVVM pattern. 

In your example, in the code behind you are showing:

radRichTextBox.Document.MailMergeDataSource.ItemsSource = GetMyList()


I need to databind ItemsSource to my list which is in the ViewModel.

Thank you in advance

Petya
Telerik team
 answered on 12 Aug 2013
1 answer
251 views

Hi

When i double click on dates in radcalendar,the selected date should get added.But the date should not get added while double click on the header,navigation arrows and week days? when i click on the arrows to change month, if i do this to fast, the control fires a  "double click" event.

Is there any way to decide if i clicked a date or some other place on the control? 

Thanks & Regards
Kotteeswari

Vladi
Telerik team
 answered on 12 Aug 2013
1 answer
149 views
Hi,
Is there any way of adding panels and controls to a RadRichTextBoxStatusBar  or does this control is only used for Text features ?
I would like to add panels to display some stats...
Txs 
-Vince
Boby
Telerik team
 answered on 12 Aug 2013
1 answer
174 views
Hi,

I have a WPF solution, where i use treeListView. I populate the treeListView from database and it works ok.

The problem is that when user has opened several items on treeListView and then tries to get the data again from database. The already opened rows are collapsed. I tried to first go through the treeListView items with this code:

//First try to get all expanded items to my own list variant (to store ID of all expanded items)

List<ClsDataOfTreeListItem> Items = new List<ClsDataOfTreeListItem>() ;

foreach (Telerik.Windows.Controls.TreeListView.TreeListViewRow row in myTreeListView.ChildrenOfType<Telerik.Windows.Controls.TreeListView.TreeListViewRow>())

{

     if(row.IsExpanded==true)

     Items.Add( (ClsDataOfTreeListItem)row.Item);

}

//then i refresh data from the database
GetData() //this populates data with refreshed contents from DB

 

//after refresh, expand the same items again by collected information
//the problem is, that this time the foreach loop doe not find any rows

foreach (Telerik.Windows.Controls.TreeListView.TreeListViewRow row in   
         myTreeListView.ChildrenOfType<Telerik.Windows.Controls.TreeListView.
TreeListViewRow>())

{

    foreach (ClsDataOfTreeListItem itm in Items)

    {

         ClsDataOfTreeListItem tmpItem = (ClsDataOfTreeListItem)row.DataContext;

         if (itm.ID == tmpItem.ID)

             row.IsExpanded = true;

    }

}

//after the operation, the UI is refreshed and the items not expanded, because the foreach loop did not find any rows after data refresh from db.

Why does the foreach loop detect any rows after data refresh? Is there any way to refresh the UI programmatically before trying to espand as it origanally was? Rebind after data refresh dide not help. Is there any "datarefreshed" event that I could use (the tmpItems could be stored and used in event handler if there is good one for this purpose)?

Is there any other ways to get and set the original expanded information (and the scrolled position if possible).?

 

 

Dimitrina
Telerik team
 answered on 12 Aug 2013
13 answers
1.3K+ views
Hi,

The Busy Indicator works great when you have background tasks going on. However, if you have a task that cannot be performed in the background such as updating a CollectionViewSource the animation stops.

The busy indicator should really be running in a seperate thread off the main GUI thread.

There is an example of this at http://abrahamheidebrecht.wordpress.com/2009/08/05/creating-a-busy-indicator-in-a-separate-thread-in-wpf/

Would Telerik consider updating the busy indicator to run on a seperate thread?

Thanks
Anthony
Luca
Top achievements
Rank 1
 answered on 12 Aug 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?