Telerik Forums
UI for WPF Forum
1 answer
102 views
Hello!
  My RadOutlookBarItem has a RadTreeview,but the treeviewitem have much,so I need the RadOutlookBarItem can set the scroll,How to set it?
Bill
Top achievements
Rank 1
 answered on 17 Jan 2013
1 answer
230 views
I'm trying to use my own safe observable collection as the Item source for the grid.
What I've done for testing purposes is this:
1. Open a new thread 
2. Create a lot of data in that thread
3. Clear the item source that's already binded to the radGridView (the collection being cleared is done in the thread, the call to CollectionChanged is invoked to the dispatcher)
4. add all of the items in the disconnected list to the ItemSource, every addition makes a separate invocation to the dispatcher to call CollectionChanged.

At a random point during 4 I'll get the exception, could be on the first addition could be on 200th (let's say I have 1000 items in the collection), what I've found by logging everything that happens in my observable collection is that the random point is the one after the grid calls GetEnumerator, I've made sure that the enumeration has ended before I touch the collection by using a reader writer lock and the addition only happens after the enumerator is disposed.

    mscorlib.dll!System.ThrowHelper.ThrowArgumentOutOfRangeException(System.ExceptionArgument argument, System.ExceptionResource resource) + 0x41 bytes
    mscorlib.dll!System.Collections.Generic.List<object>.Insert(int index, object item) + 0x82 bytes   
    Telerik.Windows.Data.dll!Telerik.Windows.Data.KeyedCollection.Insert(int index, object value) Line 181  C#
    Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args) Line 1479   C#
    Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args) Line 1342  C#
    Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args) Line 1819  C#
    Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args) Line 1798  C#
    Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args) Line 33 + 0x42 bytes C#
>   TestInfragisticsGrid.exe!TelerikTest3.SafeObservable<TelerikTest3.Employee>.DoAdd(TelerikTest3.Employee item) Line 77 + 0x34 bytes  C#
    TestInfragisticsGrid.exe!TelerikTest3.SafeObservable<TelerikTest3.Employee>.Add.AnonymousMethod__2() Line 67 + 0x12 bytes   C#
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0xba bytes
    WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) + 0x42 bytes   
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() + 0x8d bytes 
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state) + 0x38 bytes
    mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x51 bytes
    [Native to Managed Transition] 
    [Managed to Native Transition] 
    mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6a bytes   
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0x7e bytes   
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2c bytes   
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0x68 bytes 
    WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() + 0x15e bytes   
    WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x63 bytes
    WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0xbe bytes   
    WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7d bytes   
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x53 bytes
    WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) + 0x42 bytes   
    WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0xb4 bytes   
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x104 bytes   
    [Native to Managed Transition] 
    [Managed to Native Transition] 
    System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, int reason, int pvLoopData) + 0x287 bytes   
    System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason, System.Windows.Forms.ApplicationContext context) + 0x16c bytes 
    System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) + 0x61 bytes   
    System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm) + 0x31 bytes 
    TestInfragisticsGrid.exe!TelerikTest3.Program.Main() Line 18 + 0x1d bytes   C#
    [Native to Managed Transition] 
    [Managed to Native Transition] 
    mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x6d bytes   
    Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x2a bytes 
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x63 bytes  
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0xb0 bytes   
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2c bytes   
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes  
    [Native to Managed Transition] 

Rossen Hristov
Telerik team
 answered on 17 Jan 2013
3 answers
127 views
Hello,

I am using the WPF RadRichTextBox as an email editor to reply to inbound emails.  Like in most email applications, the body of the inbound email is included as quoted text within the email editor.

I would somehow like to prevent the quoted text from being checked for spelling, both by the inline red squiggly lines and by the spell checking dialog.  I am already providing my own implementations of the ISpellChecker and ISpellCheckingDialog interfaces.

One possible solution I considered would be to load the quoted text, and then silently run the spell checker and "Ignore All" for each misspelling prior to allowing the user to edit the reply.  The down side to this approach is that if the original email contains any misspellings, those words would be added to the black list of Ignored words, and they would not be identified as misspelled if the user types them in the reply.

Is there a better solution for this issue?  For example, is there a way to mark a DocumentElement to suppress the spelling inspection of any text it contains?  Or is there a way to ignore a specific instance of a word instead of Ignore All?

Any help is greatly appreciated.

Thanks,
Evan
Boby
Telerik team
 answered on 17 Jan 2013
1 answer
154 views
Hi there

I have a requirement where I need to show the selected date in "Saturday, 12 Jan 2013" format to the user.
How can I achieve the same using XAML.

Sicne I am using the MVVM, I do not want to use code behind approach as suggested in other other thread of this forum.

you help is appreciated. Thanks
Alek
Telerik team
 answered on 17 Jan 2013
2 answers
263 views
Hi Telerik Team,

I would like to know if there is a way to dynamically change the width of the columns in the scheduleview, in order to zoom in and out horizontally.
In the end I would like the users to use a slider that would increase or decrease the width of the columns, until they all fit in the window without horizontal scroll, even if the appointments are too small to read their content.
Do you understand my need ?
Can you help me doing it ? I've searched a way, but found nothing for the moment.

Thank you !

Pauline
Vladi
Telerik team
 answered on 17 Jan 2013
2 answers
135 views
Hello!

I would like to publish my WPF application and I would also to pack all Telerik's libraries (for components which I used) into one library (so I have less number of dll's files).

Can I do this?
If yes - how?

Thanks!
Grzesiek
Top achievements
Rank 2
Iron
 answered on 16 Jan 2013
4 answers
171 views
Hello,

Prior to updating with Q2 and Q3 2012 (at once), we had a RadCartesianChart BarSeries that functioned exactly as desired.  The graph displayed grouped bars from two series by month, regardless of year.  Now, the cluster functionality is no longer working.  It seems that the year is not disregarded as it was before, so each month is listed twice.

Can you please help with how to restore the clustered display by month?

For reference, here's the relevant XAML:
<telerik:RadCartesianChart.HorizontalAxis>
    <telerik:DateTimeCategoricalAxis DateTimeComponent="Month" LabelFormat="MMM" />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:BarSeries x:Name="ProductionLastYearBarSeries" CombineMode="Cluster"
        CategoryBinding="MonthCategory" ValueBinding="Total" HorizontalContentAlignment="Left">
    <telerik:BarSeries.PointTemplate>
        <DataTemplate>
            <Border BorderBrush="#80B1EE" BorderThickness="1" MaxWidth="20" CornerRadius="1" >
                <Rectangle Fill="#80B1EE" MaxWidth="20"/>
            </Border>
        </DataTemplate>
    </telerik:BarSeries.PointTemplate>
</telerik:BarSeries>
 
<telerik:BarSeries x:Name="ProductionThisYearBarSeries" CombineMode="Cluster"
    CategoryBinding="MonthCategory" ValueBinding="Total" HorizontalContentAlignment="Left">
    <telerik:BarSeries.PointTemplate>
        <DataTemplate>
            <Border BorderBrush="#1A62B9" BorderThickness="1" MaxWidth="20" CornerRadius="1" >
                <Rectangle Fill="#1A62B9" MaxWidth="20"/>
            </Border>
        </DataTemplate>
    </telerik:BarSeries.PointTemplate>
</telerik:BarSeries>
E Pons
Top achievements
Rank 1
 answered on 16 Jan 2013
1 answer
97 views
Hi,

We are currently implementing a piece of software where we use the MVVM pattern. Most of your demos are mostly implemented in code-behind. Hence, it becomes hard to know if they are suitable for MVVM.

Can you please provide a list of which of your RAD controls are suitable for MVVM? E.g. RadDiagram?
Petar Mladenov
Telerik team
 answered on 16 Jan 2013
3 answers
248 views
I've enabled the text search capability with setting IsTextSearchEnabled to true. This works fine, when searching children nodes of the currently selected node. However, the text search does not jump to the next sibling node if the text is not being found in the current node. Is there any way to force searching in the sibling nodes?

Example:
If the current node is "A" a text search for "A1" will be successfull, but searching for "B1" fails.
     - A
            A1
            A2
    - B
            B1
            B2
  
Thanks,
Michael
Tina Stancheva
Telerik team
 answered on 16 Jan 2013
1 answer
90 views
Hi All,

I'm new to WPF but trying to work through this Book Control.  Could somebody please give me a quick code example on how to get access to the objects I play on the page, for example if I put a button on a page.  In vb.net code how do I get access to that object if I wanted to change its label.  I take it I need to first get the RadBookItem which should be the page I am on and then somehow use an object collection to get access to the child objects on that page but I cannot see anything like that in the intellisense for RadBookItem ?

Kind Regards

Ken
Tina Stancheva
Telerik team
 answered on 16 Jan 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?