Telerik Forums
UI for WPF Forum
1 answer
208 views
I am trying to get my feet wet with Telerik's controls as we are poised to get the Premium Package.  I found a nice How To video here(Brian Lagunas) that is very applicable to my environment however I am struggling to use Telerik's controls as the video maker uses Infragistics.  The key sticking point is the below.

<telerik:RadRibbonWindow x:Class="IgOutlook.Shell"
                         xmlns:prism="http://www.codeplex.com/prism"
        Title="Shell" Height="300" Width="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
     
    <telerik:RadRibbonView Name="radRibbonView1" prism:RegionManager.RegionName="RibbonTabRegion">       
        <telerik:RadRibbonView.ApplicationMenu>
            <telerik:ApplicationMenu />
        </telerik:RadRibbonView.ApplicationMenu>
        <telerik:RadRibbonView.QuickAccessToolBar>
            <telerik:QuickAccessToolBar />
        </telerik:RadRibbonView.QuickAccessToolBar>
 
         
    </telerik:RadRibbonView>
 
    <DockPanel LastChildFill="True">
            <telerik:RadOutlookBar DockPanel.Dock="Left" Width="200" prism:RegionManager.RegionName="OutlookBarGroupRegion" />
            <ContentControl prism:RegionManager.RegionName="ContentRegion" Margin="1,3,3,3" />
        </DockPanel>
</telerik:RadRibbonWindow>

In his video there is a control for "Ribbon Window Content Host" that doesn't seem to have a counterpart in Telerik.  The code above gives me a design time exception of "The Property Content is set more then once".

Can anyone show me what I am doing wrong or missing?  This app is meant to be a proof of concept so I can justify to my boss purchasing this tool set.
Viktor Tsvetkov
Telerik team
 answered on 07 Jun 2012
6 answers
752 views

 

 

Hi,
I am using the PropertyRelation on the RadgridView like so:

<
Telerik:RadGridView.ChildTableDefinitions

 

    <Telerik:GridViewTableDefinition x:Name="gvtd"> 

 

        <Telerik:GridViewTableDefinition.Relation

 

            <telerikData:PropertyRelation ParentPropertyName="MyProperty"/> 

 

        </Telerik:GridViewTableDefinition.Relation
    </Telerik:GridViewTableDefinition>
</Telerik:RadGridView.ChildTableDefinitions>

Which works fine when it autogenerates the columns.. is there an example on how to user define the columns?


My futile tries involve:
AutoGenerateColoumns="False"
or   

AutoGenerateFieldDescriptors

 

="False"

I have tried setting the FieldDescriptors manually.

Tried to use HierarchyChildTemplate like so:

 

 

 

<Telerik:RadGridView.HierarchyChildTemplate

 

    <DataTemplate>

        <Telerik:RadGridView

 

            <Telerik:RadGridView.Columns
                <Telerik:GridViewDataColumn Header="ID" UniqueName="id"/>

                <Telerik:GridViewDataColumn Header="FirstName" DataMemberBinding="{Binding Name}"/>

            </Telerik:RadGridView.Columns>

        </Telerik:RadGridView>

    </DataTemplate>

</Telerik:RadGridView.HierarchyChildTemplate>


With the result of it loosing its binding and going back to the usercontrols dataContext.

- Martin

 

 

 

 

 

 

 

 

 

 

Vlad
Telerik team
 answered on 07 Jun 2012
9 answers
253 views
I am trying to use the RadTreeView in our application and I would like to change the background color of an item when either selected or the mouse is over it. I found some examples, but they are far more complex than I need and I'm unable to simplify them without breaking them. Is there a very simple example of just changing the background color, please?

Janene Pappas-McCrillis
Wireless Seismic
Lancelot
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
68 views
Hello,

I am making an application in which one of the requirements is being able to change the horizontal axis from a ContinuousDateTime to a CategoricalDateTime on the click of a button. I've had no problems doing this in itself, but when I change the horizontalAxis, my ZoomPanBar vanishes from the graph. Zooming and panning still works, just the bar is gone. Is there a way to get the bar back once it has vanished? Or even better, a way for it to not vanish at all?

Worst case scenario that the above cannot be done, could you provide some code that would allow a ZoomPanBar to control the zoom and pan of a chart in the same application?

Thanks in advance,
Dan
Giuseppe
Telerik team
 answered on 06 Jun 2012
4 answers
171 views
Hello,

I have a RadGridView for which I'd like to take advantage of the extended selection mode (shift-click, ctl-click, etc...), but also need the act of clicking on a row to add it to the list of selected rows without clearing out the other entries.  I would also like the act of clicking on a row that is already selected to remove it from the list of selected rows - much the same way Multiple selection mode behaves.

Is there a way to implement this behavior?

Thanks
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 06 Jun 2012
4 answers
209 views
Hi,
I have a problem with a GridViewDataColumn of a RadGridView binded to a DateTime? value.
I set DataFormatString to "{} {0:d}" and the column displays only date without time, and it is what I want.
The problem is that I am unable to set a null value in the cell pressing the DEL key or Backspace: when I leave the cell, its value is replaced by the previous value.

Have you any suggestion?

Thanks
Davide
Davide
Top achievements
Rank 1
 answered on 06 Jun 2012
3 answers
70 views
I'm loading data and setting properties on a viewmodel bound to a RadTimebar.  This is done while the RadTimebar is not visible.  When the Timebar becomes visible (transition of views) the binding on the Timebar overwrites the property (SelectionEnd) value initially set?
Tsvetie
Telerik team
 answered on 06 Jun 2012
5 answers
159 views

Hello,

I am using 4-8 sparklines in one window. 
Each getting new points (new ItemSource) twice/three times a second (using DataBinding). 
The problem is that when I am trying to do other things in my window (for example opening a menu), the app takes time to respond.
I believe that the reason for that is the amount of refreshes a second.
I have three questions regarding that problem:
1. Is sparkline the right control for my needs? Is there another one you would recommend?
2. Is there any way to wait until I have the new points for all of my sparklines and only than refresh them all at once instead of each at a different time?
3. What is the cause for this problem? is it the 
GPU/CPU/Memory? (I believe that it has nothing to do with the other parts of my app because only when I added the sparklines this problem appeared)

Thank you in advance

Petar Kirov
Telerik team
 answered on 06 Jun 2012
2 answers
174 views
Hello,

I have a TabControl whos ItemsSource is bound to an ObservableCollection of some view model. The view model contains an "IsReadOnly" property. I would like to show an icon (a lock of some kind) on the tab header items that are bound to view models with IsReadOnly flag set to true. How would I go about this?

While I am at it, how would I go about setting the same width for all tab items? They are bound to a string property from the same view model.

Many thanks,

Simon
Simon
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
150 views
Hi Telerik Team,

is it planned that an updated Version of RadDataForm will expose a "DataError" event just like the RadDataGrid?

I am binding the RadDataForm to a customized Telerik.Windows.Data.QueryableCollectionView (overriding AddNew(), CommitNew(), CommitEdit(), etc.), which internally binds to a custom database repository-class. Everything works fine so far, but the DataForm fails to handle exceptions occuring after calling CommitEdit() or CommitNew(). E.g. RadDataForm calls CommitNew(), the repository tries to insert the new item into the db, then a "unique constraint" or other DB-error occurs, the dataform crashes.  With DataGrid the approach works fine, as i subscribe the DataError event and handle the exception properly.
The only workaround now is, to catch the exception inside the CommitNew() / CommitEdit() method of the custom CollectionView() and call CancelNew() / CancelEdit() inside the catch-block. However this way the DataForm does not show an error to the user.
Using validation rules is no solution either, as some errors only occur when actually trying to insert / update an item in the database.

Best regards
Ivan Ivanov
Telerik team
 answered on 06 Jun 2012
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
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?