Telerik Forums
UI for WPF Forum
9 answers
434 views
Hello,
I did a search and was not able to find anything similar to what I am trying to do.  Is there a way to animate using Expression blend the mouse click of selecting one of the items in the panel?  I would like to 'shake' the item when it is selected.

Thanks,

Terry
Terry
Top achievements
Rank 1
 answered on 19 Oct 2011
1 answer
117 views
Hello,

I have a TreeView with Drag/Drop enabled.  Say I want to drag the bottom item (or any item) all the way to the top.  It does work, but I do not see the preview line. (if I enable the tool tips, those work fine also)  All of the other preview lines work fine, including dragging an item all the way to the bottom.

It is a very basic tree view control with no nesting as of yet.

We are using the latest version of the controls.

Is this by design or am I missing something.
Petar Mladenov
Telerik team
 answered on 19 Oct 2011
1 answer
87 views
Hi,

I am working on WPF project with telerik controls. Currently i have take a radribbonbutton control inside the radribbonbar control.

This radribbionbutton event is not working inside in radribbonbar as well as outside of this. If I take any wpf control in this page. Then also this control event is not working.

Please suggest me. How I will handle the event of the controls.

Thanks
Vikas Goel
Petar Mladenov
Telerik team
 answered on 19 Oct 2011
3 answers
392 views
Does anyone have any links or samples that shows how to select a row using a right mouse click and then also display a custom context menu?  I have done it before with the WinForms RadGrid but I can't seem to figure it out with the WPF RadGrid.

Thanks,

Jeremie
Vlad
Telerik team
 answered on 19 Oct 2011
1 answer
116 views
Hello, i try to insert some plain text from mails into a raddocument.
After insert i have several spaces between the words, i.e. Hello   this   is   a   test.
How can i avoid this issue? I also try the import with the txtprovider but same behaviour. 
ParagraphSpacing seems after correction (see in code) correct.
DItem.Insert(TextBody, Nothing)
DItem.Selection.SelectAll()
DItem.ParagraphDefaultSpacingAfter = 0
DItem.ParagraphDefaultSpacingBefore = 0
DItem.LineSpacing = 1

Best regards robert
Dim DItem As New RadDocument
DItem.Insert(TextBody, Nothing)


Alex
Telerik team
 answered on 19 Oct 2011
1 answer
326 views
Hi,

I have a RichTextBox set to readonly and selection disabled. But nevertheless the richtextbox handles all my mouse events even if it does not anything.

I cannot set the textbox to disabled because I have some links in the text, that should be clickeable. Any idea how to disable this behavior?
Iva Toteva
Telerik team
 answered on 19 Oct 2011
1 answer
53 views
I've run into a problem with Drag and Drop in the RadTreeListView wherein I have a (single) item that I want to drag to move it or copy it to another editor. When I start dragging near the border of the item (either drag up near a top border or down near a bottom border) the adjacent item gets selected for the drag as well, which is obviously not what I want.  Has anybody encountered similar behaviour ?
Yordanka
Telerik team
 answered on 19 Oct 2011
4 answers
240 views
Dear @all,
I'm trying to find a way to define an appointment as "read-only". I don't want the user to be able drag&drop, delete or edit an appointment, nor insert a new appointment. I was examining the FirstLook example, which implements such a functionality using a StyleSelector. I was hoping to find some properties on an Appointment level to define these features. 
Is there any other way to configure these features without the need to create styles for it?

Thanks,
Meik
Oleg
Top achievements
Rank 1
 answered on 19 Oct 2011
1 answer
207 views
Hello,

I am trying to use the RadChart to bind to a Nested Collection.  I would like every member of the parent collection to represent a spline series that has a property named CollectionName property to bind to the Legend Label.  Then I want to have each child collection have its members mapped to the points along the spline.  This code works:

 

 

 

<Telerik:RadChart ItemsSource="{Binding Path=SeriesCollection,Mode=TwoWay}" x:Name="chartcontentseries" >

<telerik:RadChart.DefaultSeriesDefinition>

<telerik:SplineSeriesDefinition></telerik:SplineSeriesDefinition>

</telerik:RadChart.DefaultSeriesDefinition>

<telerik:RadChart.SeriesMappings>

<telerik:SeriesMapping CollectionIndex="0" LegendLabel="{Binding Path=CollectionName}">

                       (I have to have this set)       (This does not display the collection name!)

<telerik:ItemMapping FieldName="Percentage" DataPointMember="YValue"></telerik:ItemMapping>

</telerik:SeriesMapping>

</telerik:RadChart.SeriesMappings>

 

</telerik:RadChart>


However, I have to have a SeriesMapping for every collection that is added which is undesirable and the LegendLabel does not display the collection name.  Is there a way in XAML to set up a template for the series and have them automatically added and removed when the collection changes?  Or do I have to do it all manually in code behind?
Nikolay
Telerik team
 answered on 19 Oct 2011
1 answer
229 views
HI, I want to use GridViewComboBoxColumn in a radgridview. But I found if I use RadWindow to hold the radgridview, the combobox dropdown list could not show. However, it could work if I create my own window.
Please see my attachment code.
 public class Player
    {
        public string Name
        {
            get;
            set;
        }
 
        public Position Position
        {
        get;
        set;
        }
 
        public Player(string name, Position pos)
        {
            Name = name;
            Position = pos;
        }
    
    }
 public enum Position
    {
        [Description("China")]
        GB,
        [Description("Unite Kingdom")]
        UK,
        [Description("Unite States")]
        US
    }
public class ViewModel
    {
        private List<Player> allPlayers;
        public ObservableCollection<Player> AllPlayers
        {
            get
            {
                if (this.allPlayers == null)
                {
                    this.allPlayers = new List<Player>();
                    this.allPlayers.Add(new Player("Haibng"Position.GB));
                    this.allPlayers.Add(new Player("WHS"Position.UK));
                    this.allPlayers.Add(new Player("NY"Position.US));
 
                }
                return new ObservableCollection<Player>(this.allPlayers);
            }
        }
 
        public IEnumerable<Telerik.Windows.Data.EnumMemberViewModel> Positions
        {
            get
            {
                return Telerik.Windows.Data.EnumDataSource.FromType<Position>();
            }
        }
    }




<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        >    
    <StackPanel>    
        <Button Content="Show Combo in RadWindow" Click="Button_Click" Width="180" Height="30" Margin="10,10,10,10"/>
        <Button Content="Show Combo in Comm Window" Click="Button2_Click" Width="180" Height="30" Margin="10,10,10,10"/>
        <telerik:RadGridView x:Name="radGridView" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Name"  DataMemberBinding="{Binding Name}" TextAlignment="Left" Width="160"/>
                <telerik:GridViewComboBoxColumn  Header="Position"  DataMemberBinding="{Binding Position}" Width="*" />
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView>
    </StackPanel> 
</Window>
public partial class MainWindow : Window
    {
        
        public MainWindow()
        {
            InitializeComponent();
          
 
            ViewModel vm = new ViewModel();
            this.radGridView.ItemsSource = vm.AllPlayers;
 
            GridViewComboBoxColumn combo = (GridViewComboBoxColumn)this.radGridView.Columns[1];
            combo.ItemsSource = vm.Positions;
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            RadWin u = new RadWin();
            u.Owner = this;
            u.ShowDialog();
        }        
 
        private void Button2_Click(object sender, RoutedEventArgs e)
        {
            MyWin w = new MyWin();
            w.Owner = this;
            w.ShowInTaskbar = false;
            w.ShowDialog();
        }
    }




<telerik:RadWindow x:Class="WpfApplication1.RadWin"
             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" 
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <telerik:RadGridView x:Name="radGridView" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                
                <telerik:GridViewDataColumn Header="Name"  DataMemberBinding="{Binding Name}" TextAlignment="Left" Width="160"/>
                <telerik:GridViewComboBoxColumn  Header="Position"  DataMemberBinding="{Binding Position}" Width="*" />
            </telerik:RadGridView.Columns>
 
        </telerik:RadGridView>
        <telerik:RadToolBar>
            <telerik:RadComboBox Name="graphModes" Width="250" Height="22" Margin="3">
                <ComboBoxItem>One</ComboBoxItem>
                <ComboBoxItem>Two</ComboBoxItem>
                <ComboBoxItem>Three</ComboBoxItem>
            </telerik:RadComboBox>
        </telerik:RadToolBar>
    </Grid>
</telerik:RadWindow>
 public partial class RadWin : RadWindow
    {
        public RadWin()
        {
            InitializeComponent();
            this.Width = 400;
            this.Height = 450;
            this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
 
            ViewModel vm = new ViewModel();
            this.radGridView.ItemsSource = vm.AllPlayers;
            
            GridViewComboBoxColumn combo = (GridViewComboBoxColumn)this.radGridView.Columns[1];
            combo.ItemsSource = vm.Positions;
        }
    }



<Window x:Class="WpfApplication1.MyWin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"        
        Title="MyWin" Height="300" Width="300">
    <Grid>
        <telerik:RadGridView x:Name="radGridView" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
 
                <telerik:GridViewDataColumn Header="Name"  DataMemberBinding="{Binding Name}" TextAlignment="Left" Width="160"/>
                <telerik:GridViewComboBoxColumn  Header="Position"  DataMemberBinding="{Binding Position}" Width="*" />
            </telerik:RadGridView.Columns>
 
        </telerik:RadGridView>
    </Grid>
</Window>
 public partial class MyWin : Window
    {
        public MyWin()
        {
            InitializeComponent();
            this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
 
            ViewModel vm = new ViewModel();
            this.radGridView.ItemsSource = vm.AllPlayers;
 
            GridViewComboBoxColumn combo = (GridViewComboBoxColumn)this.radGridView.Columns[1];
            combo.ItemsSource = vm.Positions;
        }
    }


<Application x:Class="WpfApplication1.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
         
    </Application.Resources>
</Application>
    public partial class App : Application
    {
    }
Miroslav Nedyalkov
Telerik team
 answered on 19 Oct 2011
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?