Telerik Forums
UI for WPF Forum
1 answer
121 views
Keeps failing at the registration point telling me my password is bad. I have activated it, and changed the password 3 times with no luck. Anyone their can resolve the issue for me?
Vesko
Telerik team
 answered on 18 May 2017
8 answers
1.2K+ views

All fonts which are the sub font style of a font family in c:\windows\fonts are not able to set to bold or italic( bold/Italic are not shown in richtextbox but when exported to word, they are showing correctly). Is there any solution on it?

Some examples: Arial Black, Arial Narrow, Bodoni MT Black, Bodoni MT Condensed,Calibri Light, Franklin Gothic Medium, ... 

Tanya
Telerik team
 answered on 18 May 2017
4 answers
183 views

Hi,

I try to load runtime Theme but after load of my application and the window which used to show is invisible i can't find why can you help me.

Dinko | Tech Support Engineer
Telerik team
 answered on 17 May 2017
11 answers
1.9K+ views
Hello,
There is a way to Binding SelectedItems of a telerik:RadComboBox with AllowMultipleSelection="True" that works in a runtime?
Our purpose is to create a multiple combobox with checkboxes (bindable from a property)

At the movement I have this code, but it doesn’t works correctly because SelectedItems don’t exist


        public class Agency(){
            public string Text { get; set; }
            public bool IsChecked { get; set; }
        }

        private ObservableCollection<Agency> Agencies;
        public ObservableCollection<Agency> Agencies
        {
            get
            {
                return this.selectedAgencies;
            }
            set
            {
                if (this.selectedAgencies != value)
                {
                    this.selectedAgencies = value;
                    this.OnPropertyChanged(() =>this.SelectedAgencies);
                }
            }
        }


        private ObservableCollection<Agency> selectedAgencies;
        public ObservableCollection<Agency> SelectedAgencies
        {
            get
            {
                return this.selectedAgencies;
            }
            set
            {
                if (this.selectedAgencies != value)
                {
                    this.selectedAgencies = value;
                    this.OnPropertyChanged(() =>this.SelectedAgencies);
                }
            }
        }

        <telerik:RadComboBox x:Name="radComboBox"
                             ItemsSource="{Binding Agency}"
                             AllowMultipleSelection="True"
                             SelectedItems="{BindingSelectedAgencies}">
            <telerik:RadComboBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <CheckBox VerticalAlignment="Center"IsChecked="{Binding IsChecked}"></CheckBox>
                        <TextBlock Margin="5" Text="{Binding Text}"/>
                    </StackPanel>
                </DataTemplate>
            </telerik:RadComboBox.ItemTemplate>
        </telerik:RadComboBox>
Stefan
Telerik team
 answered on 17 May 2017
2 answers
512 views

This may be a long-shot as I don't see it documented anywhere, but can I omit the style tag but still trigger the CssClassExporting event. What I need is to pull the extracted styles into a separate css file. I can parse the files manually if need be, but if there is some combination of configuration options I'm missing here please correct me.  Here is what i have at the moment.

 

HtmlFormatProvider provider = new HtmlFormatProvider();            

provider.ExportSettings.DocumentExportLevel = DocumentExportLevel.Fragment;          

provider.ExportSettings.StylesExportMode = StylesExportMode.Classes;                      

provider.ExportSettings.SpanExportMode = SpanExportMode.DefaultBehavior;                         

provider.ExportSettings.ExportStyleMetadata = true;          

// Dont export the document styles

provider.ExportSettings.StyleRepositoryExportMode = StyleRepositoryExportMode.DontExportStyles;             

// Export font style as style rather than tag          

provider.ExportSettings.ExportFontStylesAsTags = false;             

// Only create styles which need be             

provider.ExportSettings.ExportLocalOrStyleValueSource = true;             

provider.ExportSettings.CssClassExporting += ExportSettings_CssClassExporting;             

var data = provider.Export(RadDocument);             

Doug
Top achievements
Rank 1
 answered on 17 May 2017
5 answers
215 views

Although I am not using this control in a DataForm, it is definitely derived from DataFormDataField. As you can see I am getting an exception in the Xaml designer.  It compiles fine and displays fine at runtime; however it prevents the Xaml UserControl from displaying in the designer.  I get many, many of these errors.  Can anyone give me a hand with this?

Thanks ahead of time,

Steve

 

Dilyan Traykov
Telerik team
 answered on 17 May 2017
6 answers
426 views
I have RadGridView with SearchPanel set to Visible and IsSearchingDeferred to True. Everything works fine, but I also have Filtered event on GridView and it calculate values for Items on selected page for one column. Event doesn't work for SearchPanel filter and SearchPanel doesn't have own event for this. Is there any way to make it works?
Stefan
Telerik team
 answered on 17 May 2017
5 answers
296 views

Hi,

I am trying to create a GridView with both Cell and CellEdit templates for one of the columns. The problem that I am experiencing is two fold:

1. If I bind the column AND the CellTemplate to the same property, I noticed that the IDadaErrorInfo indexer gets called twice per "Name" cell. This is a problem as the validation logic is not particularly straight forward and starts to create a performance issue once there are few dozen rows:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name, ValidatesOnDataErrors=True, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <TextBox Text="{Binding Name, ValidatesOnDataErrors=True, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

2. Removing the DataMemberBinding from the column and keeping it in the CellTemplate works fine when it comes to displaying the data, but does not seem to work with the IDataErrorInfo. I can see the indexer get called, however I do not see the validation error reflect in the UI. Which effectively means that the validation can only be shown in CellEditTemplates:

<telerik:GridViewDataColumn>
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name, ValidatesOnDataErrors=True, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <TextBox Text="{Binding Name, ValidatesOnDataErrors=True, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

 

What is the correct way of setting up Cell and CellEdit template binding to display IDataErrorInfo errors in both edit and non-edit mode at all times, while not having the IDataErrorInfo indexer getting hit twice as much as it should?

 

Thanks in advance,

Ross

Rostislav
Top achievements
Rank 1
 answered on 16 May 2017
1 answer
236 views
In my tileview I want the user to be able to rearrange any of the tiles except for the very first tile. How can I achieve this?

Is there any sort of property on the tile that can prevent the tile from moving?

 

My tiles Position property is bound to a property in the entity the tile represents. I have tried putting logic in the property set to prevent changes if the position is 0, but that is preventing ANY of the tiles from changing position

 

    <Style TargetType="{x:Type telerik:RadTileViewItem}">
        <Setter Property="Position" Value="{Binding Path=DisplayIndex, Mode=TwoWay}" />
    </Style>

    public int DisplayIndex
    {
        get { return DisplayIndex; }
        set
        {
            if (m_DisplayIndex !=0 && value != DisplayIndex && value > 0)
            {
                m_DisplayIndex = value;
            }
            NotifyPropertyChanged("DisplayIndex");
        }
    }

 

Any ideas or insight? thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 16 May 2017
2 answers
171 views

Hi,

All I want to do is have the text of the chosen date right aligned in the textbox. I've tried all the different alignment and content alignment options I can think of and nothing works. Can someone please share the magic sauce?

Thanks .... Ed

 

 

<telerik:RadDateTimePicker x:Name="txtOpenDate" Width="175" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left"
 
                       CalendarStyle="{StaticResource calendarStyle}"                                   
                       InputMode="DatePicker" SelectedValue="{Binding OpenedDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }"/>
Randy Hompesch
Top achievements
Rank 1
 answered on 16 May 2017
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?