Telerik Forums
UI for WPF Forum
1 answer
128 views
Hi I'm using 2013-Q1.
I've the following xaml:

<telerik:RadRibbonView TitleBarVisibility="Collapsed" telerik:StyleManager.Theme="Windows8" telerik:KeyTipService.IsKeyTipsEnabled="True"

MinimizeButtonVisibility="Visible">

<telerik:RadRibbonView.Backstage>

<telerik:RadRibbonBackstage>

</telerik:RadRibbonBackstage>

</telerik:RadRibbonView.Backstage>

</telerik:RadRibbonView>



when I click application button I got the "Cannot perform this operation when hosted in browser." exception.

Am I doing something wrong ?

Thank you.
Kiril Vandov
Telerik team
 answered on 03 Jun 2013
20 answers
383 views
Hi,

According to this webpage http://www.telerik.com/help/wpf/radmap-overview.html, your map control has multi-touch support for panning and zooming. However, it seems that by default this is not enabled when using the control on Windows 7. In other locations it is said that Silverlight has multi-touch support, but the WPF version does not. Can you please clarify? We are on a deadline so I hope we don't have to spend time to create a workaround for this.

Thank you for your answer,
Lex

PS: a license was purchased on monday the 22nd of November by our customer: Hogeschool Rotterdam, the Netherlands


Rudie
Top achievements
Rank 1
 answered on 03 Jun 2013
1 answer
82 views
No errors pop during the installation of Telerik WPF suite that I remember.

I noticed, after installing the Telerik controls and adding a few of the controls to my WPF project, intellisense stopped working.

I am using VS2012 Ultimate, and intellisense works for other (small test projects) with Telerik controls in it.

I verified, edits I've got in my project from the last check-in are just Telerik controls.  Any known issues that anyone have to share about this weirdness?  Much appreciated!!
Tina Stancheva
Telerik team
 answered on 03 Jun 2013
1 answer
202 views
Hi,

I use the RadMenu for wpf and it's great. Now I want to set some menu items "IsEnabled = false;" based on
a user-role management.

On login the user gets a role, based on this role some menu-items a enabled some are not. How do I solve this?

The main problem is, that I want to load the rolls just once and use these rolls everywhere in my application!?

Thanks
Best Regards
Rene
Rosen Vladimirov
Telerik team
 answered on 03 Jun 2013
1 answer
100 views
I have a grid with filtering applied on various columns.  I want to alert the user whenever a new row is added to the grid, but I can't just observe the Items.CollectionChanged event, as many of these rows won't necessarily be displayed due to the active filtering.  I only want to alert when a row has been added and is viewable in the grid (even if it's currently out of scroll view).

Is there an event that I can use, or method that I can check if a row is filtered or not?

Thanks.
Marcus
Top achievements
Rank 1
 answered on 31 May 2013
1 answer
172 views
Hello,
 Im using the RadDataForm Control together with the RadGrid Control. They both are based on the same collection of type
 QueryableCollectionView. The objects in the collection are class based objects, the class implements IEditableObject, INotifyPropertyChanged,IDataErrorInfo intrrfaces. My problem is that I want to hide the Commit and the Cancel button but only when
RadDataForm is in ReadOnlyMode, is this possible do this in other way than implementing my own buttons?
<telerik:RadDataForm.ReadOnlyTemplate>
                            <DataTemplate>
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <Label Grid.Row="0" Grid.Column="0" Width="40" Content="Key" IsTabStop="False" />
                                    <Label Grid.Row="1" Grid.Column="0" Width="40" Content="Value" IsTabStop="False"/>
                                    <TextBox Grid.Row="0" Grid.Column="1" Width="170" Height="23" Foreground="Black" Text="{Binding Key}" IsTabStop="False"  IsEnabled="False" TextWrapping="Wrap" IsReadOnly="True"  />
                                    <TextBox Grid.Row="1" Grid.Column="1" Width="170" Height="23" Foreground="Black" Text="{Binding Value}" IsTabStop="False" TextWrapping="Wrap" IsEnabled="False" IsReadOnly="True" />
                                </Grid>
                            </DataTemplate>
                        </telerik:RadDataForm.ReadOnlyTemplate>

Also is it possible to scroll to the new added row of the grid when Im adding it using RadDataForms add button ?

Regards,
Maya
Telerik team
 answered on 31 May 2013
1 answer
119 views
Hi,

In my rad grid view i have set CanUserReorderColumns to true.But it doesn't work in some situations. Could you please tell us that where to drop the column in order to be dropped.

If i drag a column and drop it in half of the column part then sometimes it is dropped and sometimes it doesn't work.

Also there is one more requirement from our client, they want the reordering of column with some sliding effect like ( EX. in our windows -> go to my computer -> open details view then reorder columns , there is some visual indication of reordering .. see attached image file) .

Looking forward for your reply.
Nick
Telerik team
 answered on 31 May 2013
2 answers
557 views
I am seeing SynFlush issue when I embed RadialGauge inside the RadTileView.ContentTemplate, which is RadFluidContentControl.LargeContent.  Pasted the XAML below.

Question:
Is this illegal use of RadialGague?  If not, is there a way to get around this issue somehow?

The Failure:
UCEERR_RENDERTHREADFAILURE (Exception from HRESULT: 0x88980406)
   at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()

System.Runtime.InteropServices.COMException occurred
  HResult=-2003303418
  Message=UCEERR_RENDERTHREADFAILURE (Exception from HRESULT: 0x88980406)
  Source=PresentationCore
  ErrorCode=-2003303418
  StackTrace:
       at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
  InnerException:
-----------------------------

Scenario:
<UserControl x:Class="TelerikTest.DeviceList"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:tileview="clr-namespace:Telerik.Windows.Controls.TileView;assembly=Telerik.Windows.Controls.Navigation">
    <UserControl.Resources>
        <SolidColorBrush x:Key="AccentBrush" Color="White"/>
 
        <Style x:Key="TileItemHeaderStyle" TargetType="tileview:TileViewItemHeader">
            <Setter Property="Foreground" Value="#FFFFFF" />
            <Setter Property="FontSize" Value="14" />
            <Setter Property="FontFamily" Value="Segoe UI" />
        </Style>
        <Style TargetType="telerik:RadTileViewItem">
            <Setter Property="Padding" Value="3" />
            <Setter Property="BorderBrush" Value="Transparent" />
            <Setter Property="Background" Value="Transparent" />
            <Setter Property="BorderThickness" Value="0" />
            <Setter Property="HeaderStyle" Value="{StaticResource TileItemHeaderStyle}" />
        </Style>
        <Style TargetType="telerik:RadTileView" >
            <Setter Property="PreservePositionWhenMaximized" Value="True" />
            <Setter Property="telerik:TileViewPanel.IsVirtualized" Value="True" />
            <Setter Property="IsAutoScrollingEnabled" Value="True" />
            <Setter Property="TileStateChangeTrigger" Value="SingleClick" />
            <Setter Property="MinimizedColumnWidth" Value="308" />
            <Setter Property="MinimizedRowHeight" Value="193" />
            <Setter Property="RowHeight" Value="187" />
            <Setter Property="ColumnWidth" Value="277" />
            <Setter Property="ColumnsCount" Value="4" />
        </Style>
        <DataTemplate x:Key="contentTemplate">
            <telerik:RadFluidContentControl ContentChangeMode="Manual"
                                            State="Normal"
                                            TransitionDuration="0:0:.5">
                <telerik:RadFluidContentControl.Content>
                    <Border Background="Black">
                        <Grid Margin="20 10">
                            <StackPanel>
                                <TextBlock Margin="0 0 0 5"
                                           FontFamily="Segoe UI"
                                           FontSize="24"
                                           FontWeight="Light"
                                           Foreground="#fff"
                                           Text="Duration" />
                                <TextBlock FontSize="14"
                                           Text="{Binding Duration}" />
                                <Border Height="2"
                                        Margin="0 5"
                                        />
                                <TextBlock Margin="0 0 0 5"
                                           FontFamily="Segoe UI"
                                           FontSize="24"
                                           FontWeight="Light"
                                           Foreground="#fff"
                                           Text="Price" />
                                <TextBlock FontSize="14"
                                           Text="{Binding Price}" />
                            </StackPanel>
                            <!--<Image HorizontalAlignment="Right"
                                   VerticalAlignment="Bottom"
                                   Source="{Binding Icon}"
                                   Stretch="None" />-->
                        </Grid>
                    </Border>
                </telerik:RadFluidContentControl.Content>
                <telerik:RadFluidContentControl.LargeContent>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <telerik:RadRadialGauge x:Name="radialGauge" Height="100" Width="100">
                            <telerik:RadialScale Name="scale"
                                     LabelRotationMode="None"
                                     IsInteractive="True"   
                                     MajorTickOffset="-0.015*"
                                     MiddleTickOffset="-0.015*"
                                     MinorTickOffset="-0.015*">
                                <telerik:RadialScale.Ranges>
                                    <telerik:GaugeRange x:Name="range1"
                                            Min="0" Max="20"
                                            StartWidth="0.015"
                                            EndWidth="0.015"
                                            Background="#FF1E8D00"  />
                                    <telerik:GaugeRange x:Name="range2"
                                            Min="20" Max="80"
                                            StartWidth="0.015"
                                            EndWidth="0.015"
                                            Background="#FF000000" />
                                    <telerik:GaugeRange x:Name="range3"
                                            Min="80" Max="100"
                                            StartWidth="0.015"
                                            EndWidth="0.015"
                                            Background="#FFE50000" />
                                </telerik:RadialScale.Ranges>
                                <telerik:RadialScale.Indicators>
                                    <telerik:BarIndicator x:Name="radialBar"
                                              Value="80"
                                              telerik:ScaleObject.Location="Inside"
                                              telerik:ScaleObject.Offset="0.25*" />
                                    <telerik:RadialScaleMarker Name="marker"
                                        IsAnimated="True"
                                        Duration="0:0:1"
                                        telerik:ScaleObject.Offset="-0.015*"
                                        Value="25" />
                                    <telerik:Needle Value="50" />
                                    <telerik:Pinpoint />
                                </telerik:RadialScale.Indicators>
                            </telerik:RadialScale>
                        </telerik:RadRadialGauge>
                    </Grid>
                </telerik:RadFluidContentControl.LargeContent>
            </telerik:RadFluidContentControl>
        </DataTemplate>
        <DataTemplate x:Key="headerTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Destination}" />
                <TextBlock Text=" Trip" />
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
     
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
 
        <telerik:RadTileView Grid.Column="0"
                            ContentTemplate="{StaticResource contentTemplate}"
                            IsItemDraggingEnabled="{Binding ElementName=IsItemDraggingEnabledOption,
                                                            Path=IsChecked}"
                            ItemsSource="{Binding Items}"
                            ItemTemplate="{StaticResource headerTemplate}"
                            MaximizeMode="{Binding ElementName=MaximizeModeOption,
                                                Path=SelectedItem}"
                            PreservePositionWhenMaximized="{Binding ElementName=PreservePositionWhenMaximizedOption,
                                                                    Path=IsChecked}"
                            TileStateChanged="tileView1_TileStateChanged"
                            TileStateChangeTrigger="{Binding ElementName=StateChangeOption,
                                                            Path=SelectedItem}" />
    </Grid>
</UserControl>
 

 

Andrey
Telerik team
 answered on 31 May 2013
5 answers
232 views
Hello,

I use a RadScheduleView with the 4 differents view (day/week/month/timeline).
All works fine but for the Timeline view I want to show a week.
I have made :
<telerik:TimelineViewDefinition FirstDayOfWeek="Monday" VisibleDays="5" TimerulerMajorTickStringFormat="{}{0:HH:mm}"/>

But the first day visible is today and not Monday. What can I do for start the timeline Monday ?

Best regards,

Eric.
Kalin
Telerik team
 answered on 31 May 2013
1 answer
188 views
Hi,

I have modified ControlTemplate of RadCombioBox to display RadGridView. I am facing an issue with this. When I click an item from ComboBox to select it the ComboBox is not collapsing. I want to close the ComboBox popup when use selects an item and selected item should be assign to SelectedValue property of ComboBox. FYI, I have place RadGridView under NonEditableTemplate (inside "PART_Popup" popup).

And also I have tried seting IsDropDownOpen property to false on SelectedItem property but is also not working. When I click outside ComboBox the popup closes but a yellow border displayed around ComboBox.

Hereby I have attached image which helps to understand requirement. Please have a look at it. 

Please help to resolve issue.
Max
Top achievements
Rank 1
 answered on 31 May 2013
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?