Telerik Forums
UI for WPF Forum
1 answer
119 views

We use the RadChart in a DataTemplate.
We would like to show the hand-cursor when moving over the chart.

<Controls1:RadChart Cursor ="Hand" mapinfo:MapLayer.Location="{Binding Location}"  Visibility="{Binding Hide, Converter={StaticResource BoolToCollapsedConverter}}" Width="32" Height="32" Background="Transparent" BorderBrush="Transparent" Name="pin" Content="{Binding GebyrChart}" >

But… the hand shows only when the mouse points to the border/side area of the chart. When moving to the middle, over the (pie) chart  the cursor changes to the default arrow.

We have a PopUpMenu popping up on right-click. This does not work when the mouse is in the center of the chart.

Ves
Telerik team
 answered on 19 Aug 2011
2 answers
195 views
Hi If I have this scenario:

<telerik:RadToggleButton Content="Switch View" Width="90" Grid.Row="0" HorizontalAlignment="Left" IsChecked="{Binding Path=AlternitiveViewActive }" Checked="ToggleButton_Checked"  Unchecked="RadToggleButton_Unchecked" />
             
            <Grid Grid.Row="1" Name="gridUnTabbed">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <telerik:RadTabControl Grid.Column="0">
                    <telerik:RadTabItem Header="Exception" >
                        <ScrollViewer>
                            <TextBox Name="txtException2" TextWrapping="WrapWithOverflow" />
                        </ScrollViewer>
                    </telerik:RadTabItem>
                </telerik:RadTabControl>
 
                <GridSplitter Grid.Column="1" Name="tabSplitter" Width="4" ResizeBehavior="PreviousAndNext" Background="Gray" HorizontalAlignment="Stretch" />
 
                <telerik:RadTabControl Grid.Column="2">
                    <telerik:RadTabItem Header="StackTrace">
                        <ScrollViewer>
                            <TextBox Name="txtStackTrace2" TextWrapping="WrapWithOverflow" />
                        </ScrollViewer>
                    </telerik:RadTabItem>
                </telerik:RadTabControl>
            </Grid>

Can I let the PersistenceFramework remember how the splitter was located ?  And can I use it to remember window size, ToggleButton checked / unchecked status and so on ?

I did some experiments with the telerik:PersistenceManager.StorageIs then saved the status via IsolatedStorageProvider isoProvider but the splitter location remained the same... Any ideas ?

Best regards
kristján
Kristjan Einarsson
Top achievements
Rank 1
 answered on 18 Aug 2011
5 answers
434 views
Hi.
I'm trying to use BusyIndicator. I want to start it when the button login is pressed, so I've setted the property IsBusy to false when the windows startup and then to true when the button is pressed.
I'm working with the pattern MVVM so I've binded the property IsBusy with a property in the viewmodel initially setted to false and then to true when the button is pressed.

The problem is that the BusyIndicator is on the top of the window also if its property IsBusy is setted top false.

What I've to do?

Thanks and regards
Andrea Ferrari
Ivo
Telerik team
 answered on 18 Aug 2011
5 answers
154 views
We decided to use the Vista style since it is the closest to what we wanted.
The only thing we need to change is the selection/hover color in all controls...
Where do I start ? I did not find clear info on how to do this...
Thanks !

Vanya Pavlova
Telerik team
 answered on 18 Aug 2011
1 answer
106 views
How can I dynamically make sure the datetime format represents something close to what the users local machine format is for the date and the time ruler. This has to be able to support international date formats.

Also, I am not sure how this plays into the fact that I have a GroupHeaderTemplateSelector specifiied which also appears to have some kind of formatting involved.
<common:MetrixScheduleViewGroupHeaderSelector.HorizontalDayViewDateTemplate>
            <DataTemplate>
                <TextBlock Margin="4" Text="{Binding Name, StringFormat=dd dddd}"/>
            </DataTemplate>
        </common:MetrixScheduleViewGroupHeaderSelector.HorizontalDayViewDateTemplate>

Ivo
Telerik team
 answered on 18 Aug 2011
1 answer
108 views
Hi!

I am using a current build of the grid view (2011.2.0808.40) and I am trying to enable drag & drop reordering of rows.

I found some examples in this board, however the examples don't compile against the current Version. For example

RadItemsControl itemsControl = this.gridView.ItemsControl;
this.currentDropIndex = itemsControl.Records.IndexOf(row.Record);

fails to compile because RadItemsControl and the ItemsControl Properties don't exist.

I tried to replace the code with
this.currentDropIndex = gridView.Items.IndexOf(row.Item);

however the event handler row.MouseUp += this.RowMouseUp; is not invoked when releasing the mouse button.

Only the drag&drop indicator shows up.

I think the code is the one from this thread:
http://www.telerik.com/community/forums/wpf/gridview/row-drag-drop-re-ordering.aspx

An other problem is when dragging a row with extended selection mode enabled all rows I cross with my mouse while dragging are selected.
Vera
Telerik team
 answered on 18 Aug 2011
1 answer
124 views
Hi,

I just create a really simple WPF Browser Application with one RadRibbonView control in it. Here's the actual code :

<Page xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonView"  x:Class="WpfBrowserApplication1.Page1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      mc:Ignorable="d"
      d:DesignHeight="300" d:DesignWidth="300"
      Title="Page1">
    <Grid>
        <my:RadRibbonView />
    </Grid>
</Page>

When i launch the application, well, i don't see anything. The ribbon is not display at all. But, when i actually resize the window, it suddenly appear.

I don't have this behavior in a WPF application. It's seem to be an issue only with WPF Browser Application.

Are you able to reproduce this error? If so, is there a way to force the UI to display the ribbon without resizing the web page?

Best Regards,
Petar Mladenov
Telerik team
 answered on 18 Aug 2011
1 answer
135 views
I was trying to work on GridView and GridPager to provide user a fast UI but  I hardly find any document about binding a datacontext to a gridview that will retain all the functionality like pager, server side sorting.

Basically most of the document shows to query from a table using linq and then Take(10) -> toList(). Which will not have the functionality like serverside sorting or pager.

Are there any example of showing this?
Maya
Telerik team
 answered on 18 Aug 2011
1 answer
158 views
I'm building an application that has to work on a Laptop with a touch sensitive screen.  As such, I have to increase the size of buttons & scrollbars & such so a police officer can use the controls with their fingers while driving a car at the same time.  That means everything needs to be larger to be easily & quickly read.  So I did a search today to find an article on how to set the width of the vertical scrollbar in the RadGridView control.  I found one & I downloaded the code.  The problem is that the compiler is generating messages that read:

1. The tag 'ScrollContentPresenter' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'.
2. The type 'telerik:ScrollContentPresenter' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

I have added the following xmlns tag:

xmlns:tl="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"

This has no effect,except to change the exact wording of the errors.

What do I need to do to get this to build?

Tony
Vanya Pavlova
Telerik team
 answered on 18 Aug 2011
1 answer
79 views
It seems that when you copy paste data into a gridview cell, if it makes the row expand due to other settings (which is good), it then ignores the maxwidth for the table (but maintains the maxwidth properties for the column). Is there a way to keep the grid from expanding past its maxwidth property in this situation?

Thanks!
Ivan Ivanov
Telerik team
 answered on 18 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?