Telerik Forums
UI for WPF Forum
2 answers
203 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
177 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
1 answer
203 views
Hi,

I was able to set 2 series for YAxis based on samples found on this site.

Right now only one scale is calculated and displayed on the left for both YAxis series...

I am looking for a way to display second YAxis scale on the right side of chart area.

Thanks !

<!-- Start Graphic Control -->
 <telerik:RadChart ItemsSource="{Binding GraphicValueList}"  x:Name="chart" HorizontalAlignment="Stretch">
     <telerik:RadChart.SeriesMappings>
         <!--Pen 1 Y-Axis-->
         <telerik:SeriesMapping CollectionIndex="0">
             <telerik:SeriesMapping.SeriesDefinition>
                 <telerik:LineSeriesDefinition ShowItemLabels="False" />
             </telerik:SeriesMapping.SeriesDefinition>
  
            <telerik:SeriesMapping.GroupingSettings>
                 <telerik:GroupingSettings>
                     <telerik:GroupingSettings.GroupDescriptors>
                         <telerik:ChartGroupDescriptor Member="PenName" />
                     </telerik:GroupingSettings.GroupDescriptors>
                 </telerik:GroupingSettings>
             </telerik:SeriesMapping.GroupingSettings>
 
            <telerik:ItemMapping DataPointMember="XValue" FieldName="ProductionDate" />
             <telerik:ItemMapping DataPointMember="YValue" FieldName="GenericValue"  />
 
        </telerik:SeriesMapping>
 
        <!--Pen 2 Y-Axis-->
         <telerik:SeriesMapping CollectionIndex="1"  >
             <telerik:SeriesMapping.SeriesDefinition>
                 <telerik:LineSeriesDefinition ShowItemLabels="False" AxisName="Pen2" />
             </telerik:SeriesMapping.SeriesDefinition>
 
            <telerik:SeriesMapping.GroupingSettings>
                 <telerik:GroupingSettings>
                     <telerik:GroupingSettings.GroupDescriptors>
                         <telerik:ChartGroupDescriptor Member="PenName" />
                     </telerik:GroupingSettings.GroupDescriptors>
                 </telerik:GroupingSettings>
             </telerik:SeriesMapping.GroupingSettings>
 
            <telerik:ItemMapping DataPointMember="XValue" FieldName="ProductionDate" />
             <telerik:ItemMapping DataPointMember="YValue" FieldName="GenericValue" />
 
        </telerik:SeriesMapping>
 
    </telerik:RadChart.SeriesMappings>
  
    <telerik:RadChart.DefaultView >
         <telerik:ChartDefaultView >
 
            <telerik:ChartDefaultView.ChartLegend>
                 <telerik:ChartLegend x:Name="legend" VerticalAlignment="Top" HorizontalAlignment="Center" >
                 </telerik:ChartLegend>
             </telerik:ChartDefaultView.ChartLegend>
 
            <telerik:ChartDefaultView.ChartArea>
                 <telerik:ChartArea LegendName="legend" EnableAnimations="False">

 
                    <telerik:ChartArea.AxisX>
                         <telerik:AxisX Title="Date" MinorTicksVisibility="Collapsed" IsDateTime="True" />
                     </telerik:ChartArea.AxisX>
 
                    <!--Pen 1 Y-Axis-->
                     <telerik:ChartArea.AxisY>
                         <telerik:AxisY Title="Pen 1 Values" MinorTicksVisibility="Collapsed">
                         </telerik:AxisY>
                     </telerik:ChartArea.AxisY>
 
                    <!--Pen 2 Y-Axis-->
                     <telerik:ChartArea.AdditionalYAxes>
                         <telerik:AxisY AxisName="Pen2" Title="Pen 2 Values" MinorTicksVisibility="Collapsed">
                         </telerik:AxisY>
                     </telerik:ChartArea.AdditionalYAxes>
 
                </telerik:ChartArea>
             </telerik:ChartDefaultView.ChartArea>
         </telerik:ChartDefaultView>
     </telerik:RadChart.DefaultView>
 </telerik:RadChart>
 <!-- End Graphic Control -->


Rosko
Telerik team
 answered on 06 Jun 2012
1 answer
203 views
We are using RadDocking and there is an option for user to pickup any theme they want.  We like to keep the PaneHeader background color if the pane is not on focus, but for the ActivePane, we like to have more strong color to emphasize the current focused view.  Could you please show us how to do it.
Thanks.
Dani
Telerik team
 answered on 06 Jun 2012
4 answers
336 views
I can't seem to paste data from Excel 2010 (only version I have tried) directly into GridView. After pasting, I need to click to edit cell, then that cell only updates. I then have to click into each other cell for it to update. I have tried different options for ClipboardPasteMode - "Default", "AllSelectedCells","AllSelectedCells, Cells","Cells,AllSelectedCells".
I assumed that pasting data from Excel would automatically update the cell (or multiple) value. For now I have comment out the Context Menu because VS2010 debugging won't work.

Many thanks.

Alan
<Page x:Class="ENG_120319.Page1"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
       xmlns:Navigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
       xmlns:telerikg="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
            mc:Ignorable="d"
            d:DesignHeight="416" d:DesignWidth="1203"
            Title="Page1">
    <Grid>
        <TabControl Height="392" HorizontalAlignment="Left" Margin="12,12,0,0" Name="tabControl1" VerticalAlignment="Top" Width="1177">
            <TabItem Header="Support Docs" Name="tabSD">
                <Grid>
                    <telerik:RadGridView ClipboardCopyMode="All" ClipboardPasteMode="AllSelectedCells,Cells" AutoGenerateColumns="False" ItemsSource="{Binding Path=SupDocList}" Margin="6,10,6,6" Name="radGridView1" SelectedItem="{Binding Path=CurrentVCategory, Mode=TwoWay}" SelectionMode="Extended" SelectionUnit="Cell"  ShowGroupPanel="False" FontSize="10" RowHeight="20">
                                                                   
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding SupDocID}" HeaderTextAlignment="Center" Header="Sup Doc ID" Width="70" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding DocCode}" HeaderTextAlignment="Center" Header="Doc List Code" Width="70" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding DocName}" Header="Doc List Name" Width="200"  />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding StartDate}" DataFormatString=" {0:dd/MM/yyyy}" HeaderTextAlignment="Center"  Header="Start Date" Width="100" />
 
                        </telerik:RadGridView.Columns>
                      <!--  <Navigation:RadContextMenu.ContextMenu>
                            <Navigation:RadContextMenu Opened="OnContextMenuOpened">
                                <Navigation:RadMenuItem Command="{Binding AddCommand}" Header="Add a new line" />
                                <Navigation:RadMenuItem Command="{Binding EditCommand}" Header="Save" />
                                <Navigation:RadMenuItem Command="{Binding DeleteCommand}" Header="Delete" />
                            </Navigation:RadContextMenu>
                        </Navigation:RadContextMenu.ContextMenu>-->
                    </telerik:RadGridView>
                </Grid>
            </TabItem>
            <TabItem Header="Handover Docs" Name="tabHO">
            </TabItem>
        </TabControl>
    </Grid>
</Page>


Dimitrina
Telerik team
 answered on 06 Jun 2012
2 answers
129 views
Hello,

we add columns to a rad grid view in code including the DataFormatString. The first time we add the column everything works well, the value is displayed with the correct format.
We can remove a column and later on we add it again with the same DataFormatString, but this time the format string does not get applied, what could that be?
Thanks for help.

Michael
Michael
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
154 views
Is there a way to auto-close one RadExpander when another RadExpander is expanded?

James
Miro Miroslavov
Telerik team
 answered on 06 Jun 2012
3 answers
127 views
Hello!

Is there the possibility to set MinHeight & MinWidth to the document host so when the user is resizing the window the DocumentHost would not go shrunk under the specified values?

Thank you!
Roxana
George
Telerik team
 answered on 06 Jun 2012
3 answers
434 views
Hi,

I use programmatically columns generation:

var col = new GridViewDataColumn
{
     DataMemberBinding =
new Binding(column.Name),
        Header = column.Header,
        ToolTip = new Binding(column.Description)
};
........................

for GridView:

<telerik:RadGridView x:Name="dgvResults" AutoGenerateColumns="False" CanUserDeleteRows="False" SelectionMode="Extended" IsReadOnly="True"
                             ShowGroupPanel="False" CanUserFreezeColumns="False" IsFilteringAllowed="True" RowIndicatorVisibility="Collapsed" ScrollMode="Deferred" EnableRowVirtualization="True" EnableColumnVirtualization="True"
                             ColumnWidth="170">
..............
</telerik:RadGridView>

But I can't see ToolTips for columns.
What is problem?

Thanks!
Vlad
Telerik team
 answered on 06 Jun 2012
2 answers
238 views
I've got a custom style for my RadGridView in my WPF application.  Before I started editing the style, I remember that the RadGridView used to show the selected row by changing the background color (I think). After editing the style, my control isn't doing this any more.

Can you point me to the style, or provide it in a response to this thread?

Thanks

Tony
Tony
Top achievements
Rank 1
 answered on 05 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?