Telerik Forums
UI for WPF Forum
1 answer
182 views
<Rectangle Stroke="Black" StrokeThickness="1" Fill="#DADADA" Height="8" Width="8">
     <Rectangle.Triggers>
       <EventTrigger RoutedEvent="MouseLeftButtonDown">
         <BeginStoryboard>
           <Storyboard>
             <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.Target="{x:Reference ContextMenu}">
               <DiscreteObjectKeyFrame>
                 <DiscreteObjectKeyFrame.Value>
                   <sys:Boolean>True</sys:Boolean>
                 </DiscreteObjectKeyFrame.Value>
               </DiscreteObjectKeyFrame>
             </ObjectAnimationUsingKeyFrames>
           </Storyboard>
         </BeginStoryboard>
       </EventTrigger>
     </Rectangle.Triggers>
     <telerik:RadContextMenu.ContextMenu>
       <telerik:RadContextMenu x:Name="ContextMenu" ShowDelay="0">
         <telerik:RadMenuItem Header="Reset value" />
         <telerik:RadMenuItem Header="Set binding" />
       </telerik:RadContextMenu>
     </telerik:RadContextMenu.ContextMenu>
   </Rectangle>

Click on the rectangle, then click somewhere else and radcontextmenu stays opened.  This way you can open multiple contexmenus simultaneously

This does not happen with regular contextmenu.
Rosen Vladimirov
Telerik team
 answered on 26 Nov 2012
3 answers
202 views
Hello,

I bind 2 Controls

<telerik:RadToggleButton x:Name="ShowLogButton"  Grid.Column="1" Grid.Row="1" Content="..."></telerik:RadToggleButton>
<telerik:RadListBox ItemsSource="{Binding Path=Log}" DisplayMemberPath="Description" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Height="70" Visibility="{Binding ElementName=ShowLogButton, Path=IsChecked,  Converter={StaticResource ControlVisibilityConverter}}">
</telerik:RadListBox>

Follow Visible attribute, after saving and loading my window with Persistence Framework my toggle button is broken and dont works anymore

This code helps

<telerik:RadToggleButton x:Name="ShowLogButton"  Grid.Column="1" Grid.Row="1" Content="..."></telerik:RadToggleButton>
<telerik:RadListBox ItemsSource="{Binding Path=Log}" DisplayMemberPath="Description" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Height="70" Visibility="{Binding ElementName=ShowLogButton, Path=IsChecked,  Converter={StaticResource ControlVisibilityConverter}}">
<telerik:PersistenceManager.SerializationOptions>
    <telerik:SerializationMetadataCollection>
        <telerik:PropertyNameMetadata Condition="Except" Expression="Visibility" SearchType="PropertyName" />
    </telerik:SerializationMetadataCollection>
</telerik:PersistenceManager.SerializationOptions>
</
telerik:RadListBox>

Should i use this for every binded Porperty? Can i exclude any binded properties from serialisation ?
Tina Stancheva
Telerik team
 answered on 26 Nov 2012
1 answer
165 views
Hi,

I've noticed that the panes and floating windows aren't focused when I right mouse click on each control.

What's the best way to focus a Pane/Floating Window on right mouse click?

Thank you for your time,

Rob
Georgi
Telerik team
 answered on 26 Nov 2012
5 answers
298 views
Hi,

I have a simple grid defined like this:

<telerik:RadGridView Name="OrdersGridView" SelectionMode="Single" ItemsSource="{Binding PagedSource, ElementName=OrdersPager}" AutoGenerateColumns="False" ShowInsertRow="True" UseLayoutRounding="False" CanUserDeleteRows="False" RowEditEnded="OrdersGridViewRowEditEnded" AddingNewDataItem="OrdersGridViewAddingNewDataItem">
    <telerik:RadGridView.SortDescriptors>
        <telerik:SortDescriptor Member="Id" SortDirection="Descending" />
    </telerik:RadGridView.SortDescriptors>
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Id}" Header="{x:Static properties:Resources.Id}" UniqueName="Id" IsReadOnly="True" />
        <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding status}" Header="{x:Static properties:Resources.Status}" UniqueName="Status" ItemsSource="{Binding Statuses}" SelectedValueMemberPath="Key" DisplayMemberPath="Value" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding SocialSecurityNumber}" Header="{x:Static properties:Resources.SocialSecurityNumber}" UniqueName="SocialSecurityNumber" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding VisitDate}" Header="{x:Static properties:Resources.VisitDate}" UniqueName="VisitDate" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Department}" Header="{x:Static properties:Resources.Department}" UniqueName="Department" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Information}" Header="{x:Static properties:Resources.Information}" UniqueName="Information" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Recipient}" Header="{x:Static properties:Resources.Recipient}" UniqueName="Recipient" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding OrderDate}" Header="{x:Static properties:Resources.OrderDate}" UniqueName="OrderDate" DataFormatString="{} {0:yyyy-MM-dd}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding OrderedBy}" Header="{x:Static properties:Resources.OrderedBy}" UniqueName="OrderedBy" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactEmail}" Header="{x:Static properties:Resources.Email}" UniqueName="Email" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactPhone}" Header="{x:Static properties:Resources.Phone}" UniqueName="Phone" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding DocumentId}" Header="{x:Static properties:Resources.DocumentId}" UniqueName="DocumentId" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding LoanDate}" Header="{x:Static properties:Resources.LoanDate}" UniqueName="LoanDate" DataFormatString="{} {0:yyyy-MM-dd}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding LoanProcessedBy}" Header="{x:Static properties:Resources.LoanProcessedBy}" UniqueName="LoanProcessedBy" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding ReturnDate}" Header="{x:Static properties:Resources.ReturnDate}" UniqueName="ReturnDate" DataFormatString="{} {0:yyyy-MM-dd}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding ReturnProcessedBy}" Header="{x:Static properties:Resources.ReturnProcessedBy}" UniqueName="ReturnProcessedBy" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>
 
<telerik:RadDataPager Grid.Row="1" Name="OrdersPager" Source="{Binding Path=Orders}" DisplayMode="First, Previous, Next, Last, Text" IsTotalItemCountFixed="True" />

The data is initiated like this:

Orders = new QueryableDataServiceCollectionView<Order>(ordersContext, ordersQuery) { PageSize = 20, AutoLoad = true };

When I add sorting to the grid (as seen in the xaml above) the grid on first load displays both the 20 orders that should be in the grid and the 20 orders that should have been in the grid if there was no initial sorting defined. When I step to the next page and then back again to the first page, only the 20 orders that should be in the grid remains.

So for instance, the orders in the grid on the first page might initialy be:
1, 2, 3, ..., 20, 100, 99, 98, ..., 81

But it should be:
100, 99, 98, ..., 81

Am I doing something wrong, or is this a bug?

Best regards
Linus
melkorman
Top achievements
Rank 1
 answered on 26 Nov 2012
1 answer
90 views
Hi, 

I have noticed that (particularly under resource intense processes) that the tool tip can appear at the top left of my application rather than on the node hovered over.

Is there a fix for this

thanks

Arthur
Pavel R. Pavlov
Telerik team
 answered on 26 Nov 2012
1 answer
116 views
Hi,

I'm using VS2008 and Telerik V2012.2.912.35 and I have the following piece of code and my RadBusyIndicator are not visible:

<Window x:Class="RadControlsWpfAppRadBusyIndicator.Window1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
  Title="Window1" Height="300" Width="300">
    <telerik:RadBusyIndicator IsBusy="True">
  <Grid>
            <WebBrowser Height="0" />
        </Grid>
        </telerik:RadBusyIndicator>
</Window>

Thank's
Vladi
Telerik team
 answered on 26 Nov 2012
7 answers
226 views
Is it possible to have multiple y axes for my RadChartView as it was possible for RadChart? (http://www.telerik.com/help/wpf/radchart-features-axes-multiple-y-axes.html)

Thank you
Victor
Telerik team
 answered on 26 Nov 2012
1 answer
77 views
Hello,

FOr the char I use the ItemToolTipFormat
<telerik:SplineSeriesDefinition ShowItemLabels="False" ShowItemToolTips="True"
                                ItemToolTipFormat="Month: #DATAITEM.Month&#x0a;Intake: #DATAITEM.Intake{C2}&#x0a;Target: #DATAITEM.Target{C2}&#x0a;Turn Over: #DATAITEM.TurnOver{C2}&#x0a;Maintenance: #DATAITEM.Maintenance{C2}" />

For the  #DATAITEM.Target{C2} would it be possible to use a custom convertor on the value?
Petar Marchev
Telerik team
 answered on 26 Nov 2012
3 answers
404 views

Is there an easy way that I can show the row number in the row indicator instead of the small arrow ('>')?

BENN
Top achievements
Rank 1
 answered on 25 Nov 2012
1 answer
70 views
Trying to familiarize myself with the 4.5 WPF chart controls, but I found that adding a reference to Telerik.Windows.Controls.Charting breaks all intellisense in XAML. Same appears to go for Controls.Chart, and Controls.Data.

I'm using a build that seems to have the .DLLs dated Oct 17th.
Kevin Dahl
Top achievements
Rank 1
 answered on 24 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?