Telerik Forums
UI for WPF Forum
4 answers
123 views
I have a context menu as shared resource.
<Window>
 <Window.Resources>
        <!-- Context Menu -->
        <!-- Enabling/Disabling of menu items is controlled by ContextMenuExtensions.OnContextMenuOpened -->
        <Navigation:RadContextMenu x:Key="ViewMenu" x:Shared="true"
                                   Model:ContextMenuExtensions.NotifyOnMenuOpen="True"
                                   ItemClick="MenuViewItemClick">   
 <Navigation:RadMenuItem/>
</Navigation:RadContextMenu  >
<Window.Resources>
<Grid>
<Dock:RadPane>
<Grid Navigation:RadContextMenu.ContextMenu="{StaticResource ViewMenu}">
<Border>
<RadGridView/>
</Border>
</Grid>
</Dock:RadPane>
<Dock:RadPane>
<Grid Navigation:RadContextMenu.ContextMenu="{StaticResource ViewMenu}">
</Grid>
</Dock:RadPane> 

And a floating radpane
The RadGridView has RowDetailsTemplate defined.

Depending on where the mouse is click the contextmenu is shown, and I use the contextmenu.GetClickedElement method.

If I rightclick on the radgridview without opening the floating pane the GetClickedElement is correct. But if I open the floating pane and then rightclick on the radgridview the GetClickedItem is not returned corectly. The Floating Pane is returned even though I clicked on radgridview details.
 What could be a possible issue with this?



Konstantina
Telerik team
 answered on 20 Jun 2012
5 answers
214 views
Version: Q1 2012 .NET4

Having updated from the Q3 2010, we noticed a problem in the resize behavior of the RadTickBar, when the RadSlider is provided with a TickDataTemplate which renders textual information for each tick. While resizing the slider to a smaller size, there seems to be a point of the process after which the RadTickBar cannot keep up. From that point on, the outer ticks of the slider start to get clipped out, even though the distance between the ticks appears to be enough to fit them all. On top of that, the position of each tick at that point 
miss-matches the corresponding position of the thumb of the slider (thus proving that the slider it self has resized successfully, while the tick-bar has not).

We have tried to set a MinWidth for the RadTickBar through the TickBarStyle property, however that causes an InvalidOperationException. Perhaps that is something you could check as well.

The following is the sample code which reproduces this behavior. To do so, just execute it and try to gradually resize the window to a smaller size. Plus, as far as the second issue (regarding the RadTickBar MinWidth) is concerned, try uncommenting the corresponding XAML code, and executing the project.

Yours faithfully,
Nikos Nakas
Entersoft SA Development Department

Window XAML markup:

<Window x:Class="MainWindow"
        xmlns:local="clr-namespace:WpfRadSliderTest"
        Title="MainWindow" Height="350" Width="525">
  <Window.Resources>
    <local:IntegerToMonthConverter x:Key="intToMonthConv" />
  </Window.Resources>
  <Grid>
    <telerik:RadSlider Margin="25" VerticalAlignment="Center"
                       telerik:StyleManager.Theme="Windows7"
                       Minimum="0" Maximum="5" TickFrequency="1"
                       IsMouseWheelEnabled="True" IsSnapToTickEnabled="True" IsMoveToPointEnabled="True"
                       TickPlacement="BottomRight">
      <telerik:RadSlider.TickTemplate>
        <DataTemplate>
          <Grid Background="Purple"
                MinHeight="{Binding Path=ActualHeight, Mode=OneWay, RelativeSource={RelativeSource AncestorType=telerik:RadTickBar}}">
            <StackPanel>
              <Ellipse Width="5" Height="5" Fill="Black" />
              <Label Content="{Binding Mode=OneWay, Converter={StaticResource intToMonthConv}}" Foreground="Yellow" />
            </StackPanel>
          </Grid>
        </DataTemplate>
      </telerik:RadSlider.TickTemplate>
      <!--<telerik:RadSlider.TickBarStyle>
        <Style TargetType="telerik:RadTickBar">
          <Setter Property="MinWidth" Value="50" />
        </Style>
      </telerik:RadSlider.TickBarStyle>-->
    </telerik:RadSlider>
  </Grid>
</Window>

Value Converter:

Public Class IntegerToMonthConverter
  Implements IValueConverter
 
  Private Shared ReadOnly Months As String() = {"January", "February", "March", "April", "May", "June"}
 
  Public Function Convert(value As Object, targetType As System.Type, parameter As Object, culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.Convert
    Dim index = CInt(value)
    If index < 0 OrElse index >= Months.Length Then Return String.Empty
    Return Months(index)
  End Function
 
  Public Function ConvertBack(value As Object, targetType As System.Type, parameter As Object, culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.ConvertBack
    Throw New NotSupportedException
  End Function
 
End Class
Stefan
Telerik team
 answered on 20 Jun 2012
1 answer
141 views
Currently we are implementing keyboard navigation in the application. Can you please tell me how to set focus on following items in RadGridView using keyboard.
1. Filtering dropdown shown in coumn header of RadGridView.
2. GridViewToggleButton used to expand/collapse child grids in case Hierarchical Grids..
Nedyalko Nikolov
Telerik team
 answered on 20 Jun 2012
1 answer
55 views
Hi,

How can I create multiple floating radpanes which are running on multiple threads?
Yana
Telerik team
 answered on 20 Jun 2012
1 answer
109 views
Hi,

is there any easy way to compare to RadGridViews? Ihave two GridViews with the same ViewModel. GridViewA is the source
and GridViewB ist the target.
On Application Load i bind first the RadGrievB with Data from a Database. Afterwards i want to bind GridViewA from a second source.
But All the Items which are in GridViewA may not be in GridViewA. I hope this is clear!?

Is there a easy way to handle it? Or must i select each item from database to check if it is in the GridViewB?

GridViewA:
Source = txt-file
ViewModel=Pakete

GRidViewB:
Source=Database (original source txt-file)
Viewmodel=Pakete

Thanks a lot
Regards
Rene
Nick
Telerik team
 answered on 20 Jun 2012
2 answers
108 views
Hi,

I am evaluating the Rad controls for a new project.

specifically Radfilter and GridView.

I have added both to my project but they are not visible in designer or on the wpf form when i run the app.

Am I missing something

See xaml below

<Window x:Class="TelerikRadFilter.MainWindow"
        Title="MainWindow" Height="auto" Width="auto">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
         
        <StackPanel>
            <Button Content="YTest" HorizontalAlignment="Center" Width="100"/>
            <telerik:RadDataFilter Name="radDataFilter"  Background="Aqua"
                               Grid.Row="0"
                               MinHeight="193" MaxHeight="250" Width="700"
                               Source="{Binding Employees}"
                               Margin="1"/>
        </StackPanel>
 
       
        <telerik:RadGridView Name="radGridView"
                             Grid.Row="1"
                             MinHeight="193" MaxHeight="250" Width="700"
                             ItemsSource="{Binding Employees}" ColumnWidth="*"
                             IsFilteringAllowed="False"
                             CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed"
                             AutoGenerateColumns="False"
                             Margin="1">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="First Name"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}" Header="Last Name"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding DateOfBirth}" DataFormatString="{}{0:d}" Header="Date Of Birth"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Address}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding City}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding State}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Salary}" DataFormatString="{}{0:C2}" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>
Chinedu
Top achievements
Rank 1
 answered on 19 Jun 2012
0 answers
132 views
Hello,
I am trying to bind theme of my checkboxes and ComboBox with : 
<CheckBox Content="{Binding Name}" telerik:StyleManager.Theme="{Binding MyTheme}" />

I have try with a variable MyTheme of type string and Theme but this doesn't work.

How i can do that?


Gat
Gaetan
Top achievements
Rank 1
 asked on 19 Jun 2012
1 answer
129 views
Hello,

I am trying to add a new row to my RagGridView where I host a GridViewComboBoxColumn and a GridViewDataColumn like:
<Grid>
<telerik:RadGridView>
     <telerik:RadGridView.Columns>
        <telerik:GridViewComboBoxColumn>
        </telerik:GridViewComboBoxColumn>
        <telerik:GridViewDataColumn>
        </telerik:GridViewDataColumn>
     </telerik:RadGridView.Columns>
</telerik:RadGridView>
</Grid>

The field "Click here to add new row" on RadGridView is dead and is even not clickable.
What to do make it working? I may even try to take it away but do know how.

Thanks.
DBlagg
Top achievements
Rank 1
 answered on 19 Jun 2012
6 answers
217 views
Hi,

I have problems to use RadRichTextBox (with UI) in child window because every time when child window is opened, it's uses more and more memory.

I did a very simple project where I'm using the radRichtextbox with deafult UI settings (Word prosessor) and also here I notice the same. in first time when I open the dialog with Rad components, memory grows to 110Mb => ok, but when I close the dialog and opening it again, memory grows to 120-130 and growing more every time when I close and opening the dialog .

GC.Collect does not help.

I'm using following code to open child window

 

 

MyDialog md = new MyDialog();

 

md.ShowDialog();


and like I said, dialog does ot include any additonal code, just default RadRichTextbox control with UI

Any suggestion what I can do to handle this issue?

I'm using RadRichTextBox version 2012.1.326.40

Regards,
Auvo
Vasil
Telerik team
 answered on 19 Jun 2012
1 answer
142 views
Hello,

How can I display multiple series on on the time bar?  Do I need a radchart?  If so, how can I format the chart to look like the sparkline?  Currently it requires a lot of space because of the axis and ledgend and such.

Thanks,
Eric
Tsvetie
Telerik team
 answered on 19 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?