Telerik Forums
UI for WPF Forum
1 answer
104 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
533 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
225 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
169 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
8 answers
413 views
Hello

My regional setting is set to German (Switzerland), which is using an apostrophe " ' " as digit grouping symbol.
In the attached two images you can see, that the correct grouping symbol is shown in case of a label, but in the RadGridView a comma is shown instead. I'm using the latest control for WPF (2012.3.1017.40) on a Windows 7 machine.

Do I have to set the regional settings explicilty somewhere, or what can I do to make sure the correct digit grouping symbol is shown?

Best regards, Jodok
Maya
Telerik team
 answered on 31 May 2013
5 answers
603 views
Hi,

I'd like to be able to customize the data in the TrackBall popup.  I see there's an example of how to customize the header (http://www.telerik.com/help/silverlight/radchartview-features-trackball.html), but I'd like to be able to customize the Value label to say Counts and Category to say Energy.  Also I'd like to do use a converter, or some math on the values for the Value and Category.  How can this be done?

Thanks!
Evgenia
Telerik team
 answered on 31 May 2013
2 answers
500 views
I have a search button and when user press enter, it will start a search.

however, the dropdown list is still be shown when enter is pressed. 

how to hide the dropdown when i press enter to perform search? 

i knew when i perform a selection, the dropdown list will be closed. 
Shengwei
Top achievements
Rank 1
 answered on 31 May 2013
3 answers
166 views
Version: 2013.1.403
StackTrace:
System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.GridView
  StackTrace:
       at Telerik.Windows.Controls.GridView.CommonHeaderPresenter.GetColumnCountToRealize(List`1 subHeaders)
       at Telerik.Windows.Controls.GridView.CommonHeaderPresenter.RealizeHeadersAtRow(Int32 row, List`1 subHeaders)
       at Telerik.Windows.Controls.GridView.CommonHeaderPresenter.RealizeHeaders()
       at Telerik.Windows.Controls.GridView.CommonHeaderPresenter.NotifyCellsPropertyChanged(String propertyName, DependencyPropertyChangedEventArgs e)
       at Telerik.Windows.Controls.GridView.GridViewHeaderRow.NotifyPropertyChanged(DependencyObject d, String propertyName, DependencyPropertyChangedEventArgs e, UpdateTarget target)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.NotifyPropertyChanged(DependencyObject d, String propertyName, DependencyPropertyChangedEventArgs e, UpdateTarget target)
       at Telerik.Windows.Controls.GridViewColumnCollectionInternal.CalculateColumnWidths(Object arg)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run()
       at PlayingTelerik.App.Main() in d:\work\Sandbox\PlayingTelerik\PlayingTelerik\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 


Alex
Top achievements
Rank 1
 answered on 30 May 2013
2 answers
54 views
Hi,

I have a RadTreeView Control which i populate with RadTreeViewItems via the ItemSource Property.
Now i have to implement a Search functionality, that should work on all Items, starting from the current selected one and even on not expand items.

RadTreeViewItem offers NextItem, PreviousItem, Parent and so on, but those are only available when the tree is expanded (which means item is prepared as far as i understood)

It's possible to navigate down to the first occurence of a matching item, but how can i search further in the tree on the next sibling or so when they are not expanded?

I think it must be possible to search for an item and bring it into view from a not expanded tree...

Any help would be reeally appreciated...
Jonathan
Top achievements
Rank 1
 answered on 30 May 2013
4 answers
554 views
I am having a lot of trouble trying to bind a color of a timeline item to a specific color chosen by the user. I had thought I had the appropriate color to brush converter, and such, but whenever I run the application, the item color doesn't show up and appears transparent, but when I select a specific color in the XAML code, it works without a problem. However, the selection_changed event doesn't get fired at all.

Here is an example template I am using for the timeline item control

<DataTemplate x:Key="ItemStandardTemplate">
   <Border Height="10" BorderBrush="Gray">
       <Rectangle Height="7" VerticalAlignment="Center">
           <Rectangle.Fill>
               <SolidColorBrush Color="{Binding Color}"/>
           </Rectangle.Fill>
       </Rectangle>
    </Border>
</DataTemplate>

I then apply this template to the timeline control using the normal static reference, but nothing shows up. The DataContext is set correctly as other properties from the same class show up in other controls without a problem.

A couple of notes, we do have the ExpressionDark theme applied via the StyleManager reference.

If there is another way to maintain the selection_changed event and still be able to update the color when a user changes it, then I am all ears.

I am fresh out of idea's and the examples don't seem to help.

Paul
Pavel
Top achievements
Rank 1
 answered on 30 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?