Telerik Forums
UI for WPF Forum
2 answers
57 views
Hi,

I have a RadTreeView Control which i populate with RadTreeViewItems via the ItemSource Property.
Now i have to implement a Search functionality, that should work on all Items, starting from the current selected one and even on not expand items.

RadTreeViewItem offers NextItem, PreviousItem, Parent and so on, but those are only available when the tree is expanded (which means item is prepared as far as i understood)

It's possible to navigate down to the first occurence of a matching item, but how can i search further in the tree on the next sibling or so when they are not expanded?

I think it must be possible to search for an item and bring it into view from a not expanded tree...

Any help would be reeally appreciated...
Jonathan
Top achievements
Rank 1
 answered on 30 May 2013
4 answers
572 views
I am having a lot of trouble trying to bind a color of a timeline item to a specific color chosen by the user. I had thought I had the appropriate color to brush converter, and such, but whenever I run the application, the item color doesn't show up and appears transparent, but when I select a specific color in the XAML code, it works without a problem. However, the selection_changed event doesn't get fired at all.

Here is an example template I am using for the timeline item control

<DataTemplate x:Key="ItemStandardTemplate">
   <Border Height="10" BorderBrush="Gray">
       <Rectangle Height="7" VerticalAlignment="Center">
           <Rectangle.Fill>
               <SolidColorBrush Color="{Binding Color}"/>
           </Rectangle.Fill>
       </Rectangle>
    </Border>
</DataTemplate>

I then apply this template to the timeline control using the normal static reference, but nothing shows up. The DataContext is set correctly as other properties from the same class show up in other controls without a problem.

A couple of notes, we do have the ExpressionDark theme applied via the StyleManager reference.

If there is another way to maintain the selection_changed event and still be able to update the color when a user changes it, then I am all ears.

I am fresh out of idea's and the examples don't seem to help.

Paul
Pavel
Top achievements
Rank 1
 answered on 30 May 2013
5 answers
191 views
Hi!
I have several controls on my form, among which some RichTextBox instances. The for has RadRichTextBoxRibbonUI on top. When a RichTextBox  gets the focus (GotFocus event) I'm binding the DataContext of the ribbon with its Commands property. When focus is lost (LostFocus) I want to disable this binding and disable all the buttons of the ribbon that are bound to the richtextbox commands (all the buttons of the ribbon that have the RadRichTextBoxRibbonUI.RichTextCommand attribute).
How can I do that? Setting the DataContext of the ribbon to null does not disable it.
Boby
Telerik team
 answered on 30 May 2013
1 answer
261 views
Hi,

I want to remove the icon space in radmenu. How?

Thanks
Dona
 
Shinu
Top achievements
Rank 2
 answered on 30 May 2013
4 answers
195 views
How can I have right angles for RadRibbonWindow corners?
I attatched a sample image, I want to style it as can be seen in the Visual Studio 2012 image, where the window has four right angles and a shadow effect in the outer border.
I tried setting some borders' CornerRadius properties to 0, but nothing worked.
And how can I achieve the shadow effect in the outer border?
I'm using a custom style based on the sample project from the below thread (titled 'RadRibbonWindow theming').

http://www.telerik.com/community/forums/wpf/ribbonview/radribbonwindow-theming.aspx#2601479
Kiril Vandov
Telerik team
 answered on 30 May 2013
7 answers
364 views
When using the slider in vertical, the tick text displays vertical as well, how can I make the text horizontal so its actually readable?

 

<telerik:RadSlider x:Name="uxSlider"
                   IsDeferredDraggingEnabled="True"
                   TickPlacement="BottomRight"
                   Orientation="Vertical">
    <telerik:RadSlider.TickTemplate>
        <DataTemplate>
            <Label Content="{Binding}" />
        </DataTemplate>
    </telerik:RadSlider.TickTemplate>
</telerik:RadSlider>

 

 

 

Kiril Vandov
Telerik team
 answered on 30 May 2013
1 answer
355 views
I have a TreeView where the user can select any Item. The selected Item have a property which is of type ExpandoObject.
Then I have a PropertyGrid where I bind the PropertyGrid.Item to the ExpandoObject. This all works fine, when the user select an Item in the TreeView, the PropertyGrid will show all properties for the selected Item's dynamic properties. But all fields in the ExpandoObject is displayed with a TextBox (or CheckBox for booleans) in the PropertyGrid. The ExpandoObject can have properies of different types: strings, integers, decimals, booleans and sometimes I will need to have a dropdown list to select one value. How can get the PropertyGrid to display the proper editor based on the type of the property?

Maya
Telerik team
 answered on 30 May 2013
8 answers
127 views

I have an MVVM .Net 4.0 WPF application connecting to a database through entity framework.  I have a tab control where each tab is a distinct view.  Each of these tabs needs to maintain its own DBContext - so that when a tab is selected the previous tab’s context is disposed and the context for the new tab is created and will remain until the user leaves the tab.

This works fine while just navigating the items listed or paging through the items using the data pager control.  When a filter is applied, I can navigate away from the tab without issue, but when I navigate back to it, I get an ObjectDisposed exception on the ObjectContext when the onPropertyChanged is called for the bound QueryableEntityCollectionView.

Is there any means of avoiding this exception?  I’ve tried a number of different configurations and conditions to eliminate this, but can’t seem to find a solution. 

To demonstrate, I’ve attached a simple example that uses the AdventureWorks DB.  You’ll have to tweak the connection string in the app.config.

 You can browse and navigate between the Products and Employees tabs without issue until you apply a filter to one tab, leave it and then comeback to it.

 

Thanks for any help you can provide.

 Brian

Rossen Hristov
Telerik team
 answered on 30 May 2013
1 answer
113 views
Hi,

On Gridview when we scroll up and down using finger/mouse the row where the current mouse/finger is highlighted in a lighter gray color (we have windows 8 touch theme).  When row is selected it is highlighted by darker gray color. We would like to have -
a. Disable row highlight (of lighter gray color) when mouse/finger is on top of row.
b. When mouse/finger is on the top of row it should automatically take that row as selected (that is highlight by dark grey color).
I searched a lot in demos, couldn't find solution for these.
Any help would be appreciated. Thanks!
Yoan
Telerik team
 answered on 30 May 2013
3 answers
118 views
I think this is relatively new behaviour...

When I click in a table, the context sensitive ribbon appears (as expected).

The new behaviour is that this ribbon is automatically selected, which is not what I would expect.  This can be quite frustrating.

Is there any way I can control / stop this behaviour?

Thanks
Petya
Telerik team
 answered on 30 May 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
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?