Telerik Forums
UI for WPF Forum
4 answers
157 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
199 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
68 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
146 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
156 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
133 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
94 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
175 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
260 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
104 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?