Telerik Forums
UI for WPF Forum
1 answer
171 views
Hi!

Is there any way to make an tab don't scroll when we have too many tabs on screen?

I want to left the first tab always visible, even when scrolling.

Something exactly like the attached image.

Thank you!
Pavel R. Pavlov
Telerik team
 answered on 18 Sep 2013
4 answers
192 views
I'm trying to subclass the RadRibbonTab as a custom UserControl to be able to use PRISM to navigate to a specific ribbon tab.

However the subclassed RibbonTab never appears in the tab bar of the ribbon. I created a sample to demonstrate the problem:

MainWindow.xaml:

<Window x:Class="RadControlsWpfApp1.MainWindow"
                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"
        xmlns:local="clr-namespace:RadControlsWpfApp1"
                Title="MainWindow" Height="350" Width="525">
    <telerik:RadRibbonView>
        <telerik:RadRibbonTab Header="Tab 1">
            <telerik:RadRibbonGroup Header="Group 1">
                <telerik:RadRibbonButton Size="Large">Button 1</telerik:RadRibbonButton>
            </telerik:RadRibbonGroup>
        </telerik:RadRibbonTab>
        <local:UserControl1 />
    </telerik:RadRibbonView>
</Window>

UserControl1.xaml:

<telerik:RadRibbonTab x:Class="RadControlsWpfApp1.UserControl1"
             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"
                      Header="Tab 2">
    <telerik:RadRibbonGroup Header="Group 2">
        <telerik:RadRibbonButton Size="Large">Button 2</telerik:RadRibbonButton>
    </telerik:RadRibbonGroup>
</telerik:RadRibbonTab>

UserControl1.xaml.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
 
namespace RadControlsWpfApp1
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    public partial class UserControl1 : RadRibbonTab
    {
        public UserControl1()
        {
            InitializeComponent();
        }
    }
}

I'm probably missing something obvious, however I don't know what. Thanks for your help.

Kiril Vandov
Telerik team
 answered on 18 Sep 2013
3 answers
217 views
Hi,

I wanted to know how can i validate telerik wpf controls for some customs validations in mvvm type of architecture.
Basically i want to validate multiple controls on a button click , store the error messages of validations and display all of them in a pop-up(say sort of validation summary)

Please suggest something
Thanks in advance

Shruti
Petar Mladenov
Telerik team
 answered on 18 Sep 2013
1 answer
102 views
Hi,

Is there planned to insert the Excel Index function in the future?
Boryana
Telerik team
 answered on 18 Sep 2013
2 answers
766 views
Hi,
I'm using Telerik controls with version 2013.2.724.40, and VS 2010.
In the following code example, I'd like to use tab to navigate only between the 3 TextBoxes. IsTabStop is set to false, but the tab still stops at the RadExpander, is it an expected behavior?

Thanks.
Gong

<telerik:RadWindow x:Class="ExpanderWpfApp.MainWindow"
                   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"
                   Height="300" Width="300" >
    <StackPanel>
        <TextBox/>
        <telerik:RadExpander IsExpanded="True" IsTabStop="False">
            <TextBox/>
        </telerik:RadExpander>
        <TextBox/>
    </StackPanel>
</telerik:RadWindow>

Vadimir
Top achievements
Rank 1
 answered on 18 Sep 2013
4 answers
1.1K+ views
I have a situation where I would like to be able to add property definitions from code behind, however it doesn't appear to be working properly.

Here's what I have: I made a custom object for use in xaml called a PropertyDefinitionList:

public class PropertyDefinitionList : List<Telerik.Windows.Controls.Data.PropertyGrid.PropertyDefinition>
{
    public PropertyDefinitionList() { }
}

In a resource dictionary I instance such a list like follows:

<local:ObjectPropertyFilterList x:Key="PropertyDefinitions" >
    <propertyGrid:PropertyDefinition Binding="{Binding Name}" />
    <propertyGrid:PropertyDefinition Binding="{Binding ID}" />
</local:ObjectPropertyFilterList>

I get a reference to this list in my code behind and call it PropertyList. At a certain
point I want to the property definitions to the .PropertyDefinitions collection on the
RadPropertyGrid, so in the function that does it I have the following code:

rpg1.PropertyDefinitions.AddRange(propertyDefinitionList1);
rpg1.item = targetitem;

However when the code executes I get two blank definition entries in the property grid
display. There is no display name nor value. The properties definitely exist in the object
being assigned to "item", but its like these property definitions don't get their binding
set. In another thread it was stated that property definitions have their binding
evaluated when the .item property changes, so what is happening (or not happening) here? I
figure I must be doing something wrong.

Thanks!
Ivan Ivanov
Telerik team
 answered on 18 Sep 2013
3 answers
212 views
Hi ,
 i have a sample app using Telerik WPF(trial Version) Grid View and i try to bind data on data Template control with no chance Please Help


<telerik:RadGridView Name="DGV" ItemsSource="{Binding}" CanUserInsertRows="False" AutoGenerateColumns="False" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="300" Width="497"><br>            <telerik:RadGridView.Columns><br>                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name"><br>                    <telerik:GridViewDataColumn.CellTemplate><br>                        <DataTemplate><br>                            <Label Content="{Binding Name}"></Label><br>                        </DataTemplate><br>                    </telerik:GridViewDataColumn.CellTemplate><br>                </telerik:GridViewDataColumn><br>                <br>            </telerik:RadGridView.Columns><br>            <br>            <br>        </telerik:RadGridView><br><div></div>

_________________________________________________________
public MainWindow()<br>        {<br>            InitializeComponent();<br>            GetData();<br>        }<br><br>        public void GetData()<br>        {<br>            DataTable _dt = new DataTable();<br>            _dt.Columns.Add("ID");<br>            _dt.Columns.Add("Name");<br>            _dt.Columns.Add("Percentage");<br>            _dt.Rows.Add("1", "Ahmed", 25);<br>            _dt.Rows.Add("2", "Ali", 60);<br>            _dt.Rows.Add("3", "Mohamed", 80);<br>            _dt.Rows.Add("3", "Mohamed2", 50);<br><br>            DGV.DataContext = _dt;<br>        }
Dimitrina
Telerik team
 answered on 18 Sep 2013
3 answers
273 views
I am trying to build an editor for byzantine music and i want to see if i can achieve some modifications to the source so i can have an acceptable presentation of the characters
for instance i want to control the empty space between two lines , the first line is with byzantine symbols and the second line is music text
thanks
Boby
Telerik team
 answered on 18 Sep 2013
1 answer
226 views
Hi,

I am trying to dynamically add table to the RadRichTextBox so I have written following code


Code Executed successfully, but while reflecting this code to document error following message shown

{"'0' is not a valid value for property 'LineHeight'."}

I am not able to get LineHeight property from which class. How to set it.

Please Help

Thanks
Sopan Vaidya
Table ttable = new Table();
                                ttable.Style = MyTableStyle;
 
                                var TabRowColl = TableRowHelpCollection.Where(x => x.ParentTableId == item.ElementKey).ToList();
                                foreach (var TR in TabRowColl)
                                {
                                    TableRow TBLR = new TableRow();
                                    TBLR.Height = 10;
                                     
//                                    TBLR.Style = MyRowStyle;
                                    foreach (var TC in TR.TableCellCollection)
                                    {
                                        TableCell TBLC = new TableCell();
                                         
                                        //TBLC.Style = new StyleDefinition ();
                                        foreach (var CB in TC.CellDocumentCollection)
                                        {
 
                                            if (CB is Paragraph)
                                            {
                                                Paragraph PP = new Paragraph();
                                                 
                                                foreach (var Child in CB.Children)
                                                {
                                                    if (Child is Span)
                                                    {
                                                        Span Spn = new Span((Child as Span).Text);
                                                         
                                                        PP.Children.Add(Spn);
                                                    }
                                                    else if (Child is ImageInline)
                                                    {
 
                                                    }
                                                }
                                                TBLC.Children.Add(PP);
                                            }
                                            else if (CB is Table)
                                            {
 
                                            }
                                        }
                                        TBLR.Cells.Add(TBLC);
                                    }
                                    ttable.Rows.Add(TBLR);
                                }
 
                                CurrentSelectedSection.Children.AddAfter(CurrPara, ttable);



Boby
Telerik team
 answered on 18 Sep 2013
5 answers
290 views
Hi,

I want to divide the current selected paragraph into three different parts as paragraph. 
I have selected to words from the paragraph so, first paragraph is start position of original paragraph up to end position of selected word after then I want to insert new empty DocumentElement as Paragraph or Table. After then third paragraph as remaining words from the original paragraph.

How to do this.

see attached image for more details about functiopnality.

Thanks
Petya
Telerik team
 answered on 17 Sep 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?