Telerik Forums
UI for WPF Forum
1 answer
107 views
Hi (again!),

Does anyone know if it's possible to change the reordering 'swap' behaviour when dragging tiles around?

Currently when you drag tiles the following occurs:

Tile Position Before Drag:
  • 1
  • 2
  • 3
  • 4
  • 5 >> DRAG

Tile Position After Drag
  • 1
  • 5 << DROP
  • 3
  • 4
  • 2

... the 5th and 2nd tile swap places. Is there any way to change this so that instead the 5th tile is INSERTED, and ALL the tiles below the insertion point are moved down? The result would look like this:

Preferred Tile Position After Drop:
  • 1
  • 5 << DROP
  • 2
  • 3
  • 4

Currently my tiles are all arranged in a single column, and IF the user drags the tile they wish to move OVER the tiles then the desired behaviour is obtained - but that's a big 'IF'. I can't rely on this as I also need the same behaviour on a tileview that has multiple columns.

Any ideas folks?

Thanks!

Oli.
Zarko
Telerik team
 answered on 10 Jan 2012
1 answer
77 views
I'm having trouble getting the behavior right with the RadMaskedCurrencyInput control (WPF).  I'm designing an accounting application so there will be a great deal of 10-key data entry of numbers.  Here's what I want to do:

(User is entering value of $12.34)
1. Control gains focus, cursor is all the way to the right.
2. User types 1, value changes to 0.01, even if a value exists.(current behavior matches this)
3. User types 2, value changes to 0.12   (current behavior: value changes to 0.02)
4. User types 3, value changes to 1.23   (current behavior: value changes to 0.03)
5. User types 4, value changes to 12.34 (current behavior: value changes to 0.04)

Can someone tell me how to achieve this?

I've tried many combinations of Selection On Focus, Spin Mode, Input Behavior (Insert/Replace), both in the example explorer and in my code, and haven't found one that works.  I believe I could get this to work except that when the cursor is all the way to the right and the user types, the textbox does not shift the contents to the left - it simply replaces the rightmost digit with the typed number.

Tina Stancheva
Telerik team
 answered on 10 Jan 2012
5 answers
132 views
Hi,

my VS2008 designer cannot display one of my RadWindow, I see only a white square and in my output window I have the following error:

Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.RichTextBoxUI.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Documents.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Docking.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.ScheduleView.VisualStudio.Design, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Documents.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Docking.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.RichTextBoxUI.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Documents.VisualStudio.Design, Version=2011.3.1220.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.

Georgi
Telerik team
 answered on 10 Jan 2012
14 answers
408 views
I which control are we supposed to host the RibbonView?
The documentation uses a UserControl.

In my test this results in navigation arrows being displayed and the Quick Access Toolbar not being shown in the windows title bar.
See screenshot attached.

<UserControl x:Class="MainWindow"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadRibbonView>
                <telerik:RadRibbonView.QuickAccessToolBar>
                    <telerik:QuickAccessToolBar>
                        <telerik:RadRibbonButton Text="Save" Foreground="White"/>
                    </telerik:QuickAccessToolBar>
                </telerik:RadRibbonView.QuickAccessToolBar>
            </telerik:RadRibbonView>
        </Grid>
    </Grid>
</UserControl>

Are we supposed to use the RibbonWindow?
Petar Mladenov
Telerik team
 answered on 10 Jan 2012
7 answers
546 views
I have seen that the documentation says - http://www.telerik.com/help/wpf/radribbonview-ribbon-window-wpf.html  
RadRibbonWindow.IsWindowsThemeEnabled = false;
and setting a theme to make the ribbonwindow theme aware. I want exactly the documentation example. But I didn't  find any such property in Q2 release of 2011 edition. Can you please correct me if was wrong there?
Tina Stancheva
Telerik team
 answered on 10 Jan 2012
1 answer
146 views
Is it possible to create a dynamic contextmenu with aggregates functions for each column?
Irwing
Top achievements
Rank 1
 answered on 10 Jan 2012
3 answers
120 views
my customer would like to have a visual indicator, when vertical cells contain the same value. I've found a way to get it to work basically but some of my code looks pretty awfull.

<DataTemplate x:Key="Group_GridCellTemplate">
        <Grid>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <style:CRowJoiner Template="{StaticResource MM_RJI}">
                    <style:CRowJoiner.DataContext>
                        <MultiBinding Converter="{StaticResource RJ}">
                            <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="Column" />
                            <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="ParentRow" />
                            <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="Value" />
                        </MultiBinding>
                    </style:CRowJoiner.DataContext>
                </style:CRowJoiner>
                <ContentControl Grid.Column="1" Content="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}, Path=Value}" ContentTemplateSelector="{StaticResource GCTS}" />
            </Grid>
        </Grid>
    </DataTemplate>

as you can see i am using the gridviewcell extensively. is it possible to simply pass the gridviewcell as a whole to a converter? currently i am passing 3 properties from the same object and thats just stupid. my converter uses the information provided to do the cell joining, its not exactly simple though.
marc
Top achievements
Rank 1
 answered on 10 Jan 2012
1 answer
137 views
Halo, we have a serious problem with RadDocking when we use custom header template.
If we use in DocumentHost custom template for header of RadPane and there is Button in the RadPane header, after click on this button docking operation is imediatelly started and the RadPane became floating :-(
There is sample code:
<Window x:Class="DarDataFormTest.MainWindow"
        xmlns:local="clr-namespace:DarDataFormTest"
        Title="MainWindow" Height="350" Width="525">
 
    <Window.Resources>
 
        <RoutedCommand x:Key="CommitCommand"/>
 
        <RoutedCommand x:Key="CancelCommand"/>
 
        <local:Converter x:Key="conv"/>
    </Window.Resources>
 
    <Grid>
        <telerik:RadDocking x:Name="radDocking1"  BorderThickness="0"  Padding="0">
 
            <!--DocumentHost-->
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                         
                        <telerik:RadDocumentPane Title="Description">
                            <telerik:RadDocumentPane.HeaderTemplate>
                                <DataTemplate>
                                    <StackPanel  Orientation="Horizontal">
                                        <TextBlock Text="aaaa" />
                                        <Button Margin="2">Butt</Button>
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:RadDocumentPane.HeaderTemplate>
                            <telerik:RadDocumentPane.Content>
                                <TextBlock TextWrapping="Wrap"
                                           Text="test text" />
                            </telerik:RadDocumentPane.Content>
                        </telerik:RadDocumentPane>
                         
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
 
        </telerik:RadDocking>
 
    </Grid>
</Window>

After we click on the button "Butt", RadPane is folowing mouse cursor until first click. Please help....
Thank you.

George
Telerik team
 answered on 10 Jan 2012
3 answers
101 views
I have a Bar series and the X axis contains the description of each bar. Some of the text is a bit long and runs into the text of the bar next to it. Does RadChart (2011 Q3) support text wrapping on the X axis? I don't see a property for it.

Thanks very much.
Sia
Telerik team
 answered on 10 Jan 2012
2 answers
179 views
Is there a limit to the number of FilterDescriptors that can be added to the FilterCollection? I seem to be receiveing a StackOverflowException in System.Core.dll if i try to add a significant number.

I need to limit the records in my Grid based upon specific ID numbers, so I am trying to add a filter desciptor for each ID to have it show only those records. My Grid has about 53,000 records, and in one example, I have 17,151 records that I need to display. How can I handle this? It works if i don't have a large number of results (i'm unsure of what the record limit before i get the error is)

I am just declaring a filter descriptor like this:
Dim filterDescriptor As New FilterDescriptor("ID", FilterOperator.IsEqualTo, id)
And then adding it to the collection
Nick Anderson
Top achievements
Rank 1
 answered on 09 Jan 2012
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
Security
VirtualKeyboard
HighlightTextBlock
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?