Telerik Forums
UI for WPF Forum
1 answer
109 views

Hi,

This is my code :

var selectionIntervention = this.SelectedIntervention;
this.SelectedIntervention = null; --> OnSelectedItemChanged firering!
this.SelectedIntervention = selectionIntervention; OnSelectedItemChanged not firering! Why? :'(

Nicolas
Top achievements
Rank 1
 answered on 22 Sep 2017
1 answer
357 views

I would like to remove the gap above the tabs (see red box in attached picture) so that they align with other controls. Is there a way to do this without redefining the entire control template?

 

It doesn't need to be in XAML; I can find and modify the element in code behind if needed, but I can't figure out where the gap is even coming from. I used this technique to edit some margins that were buried deep within control templates.I looked through the live visual tree but didn't see any obvious margins or padding that were controlling it.

Sia
Telerik team
 answered on 22 Sep 2017
2 answers
174 views

Hi!

 

I have two issues with the zoom for the timebar (I am plotting a RadColumnSparkLine in it)

 

1) I want to be able to set the initial zoom level (I have the period start to end for 3 days). I want the initial zoom to be for 1 day and then the user can zoom out to see the whole 3 days period if he wants.

 

2) Allow keyboard integration so the user can zoom with Ctrl and + and zoom out with Ctrl and -

 

Thanks!

Tulio
Top achievements
Rank 1
 answered on 21 Sep 2017
0 answers
298 views

I need to highlight text when searching performed through search panel in Rad grid which contains custom columns

1st column contain "TextBlock" in cell template as data template

2st column contain "RadRichTextBox" in cell template as data template

and detail row also contain rich text box.

Highlight Text = not color change of text but need background color change as shown in attached screen short

Builtin search filtered the rows while searching how to stop that behavior and only highlight background of text in all rows.

 

shoaib
Top achievements
Rank 1
 asked on 21 Sep 2017
1 answer
235 views

Dear Telerik Team

I just faced an issue about displaying RichTextBox failed.

I would like to edit comment for validation process with RichTextbox in a window that customized by myself inherits by System.Windows.Window.

and I put a Grid as RichTextBox container, the Xaml code is as follow:

<Grid>

    <Grid.RowDefinitions>

        <RowDefinition Height="Auto"/>

        <RowDefinition Height="*"/>

   </Grid.RowDefinitions>

   <telerik:RadRichTextBox Grid.Row="1"  x:Name="myRichTextBox" />

   <telerik:RadRichTextBoxRibbonUI ApplicationName="{x:Null}" TitleBarVisibility="Collapsed"  Title="{x:Null}"  ApplicationButtonVisibility="Collapsed" Grid.Row="0" DataContext="{Binding Commands,Element=myRichTextBox"}>

<....>//Only one RibbonTab added here with two RibbonButtonGroup for Paragraph and Font Editing

   </telerik:RadRichTextBoxRibbonUI>

</Grid>

 

and Added Loaded Event is as follow:

   private void Example_Loaded(object sender, RoutedEventArgs e)
   {

       this.myRichTextBox.Document=new RadDocument();

       this.myRichTextBox.Document.LayoutMode=DocumentLayoutMode.Flow;

   }

and the result is that no RibbonRichTextBoxUI and RichTextBox displayed, only blank area showed in my window.

Telerik dll version is 2014.1.411.45.

Kindly help me, thanks a lot.

 

 

 

 

Tanya
Telerik team
 answered on 20 Sep 2017
3 answers
203 views

Hi -

I'm trying to familiarize myself with the RadGanttView for WPF and am working through the Getting Started section of the documentation. However, when I create a new WPF app (Visual Studio 2017, .Net 4.6.1), add the listed references, add the namespace to the main window and then add a RadGanttView control to the XAML, the test app does not display the empty Gantt View. The window XAML is below. Getting up to speed with the RadGridView was quite easy with the documentation and I was hoping that the RadGanttView would be likewise.

<Window x:Class="TelerikGantt.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:local="clr-namespace:TelerikGantt"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadGanttView x:Name="ganttView" />
    </Grid>
</Window>

Vladimir Stoyanov
Telerik team
 answered on 20 Sep 2017
8 answers
359 views
Hi, how can I programatically add child tables and relations (hierarchies) to a WPF RadGridView? Can I add more than one level of hierarchies?

I need to create something like a master/details view in my RadGridView, but every detail can have its own details as well (that's why I need more that one level of hierarchies).

Thanks a lot.
Stefan
Telerik team
 answered on 20 Sep 2017
14 answers
522 views
Hi,
I have derived a custom class from the RadGridView to expose some dependency properties, and in the XAML when I create a control and binding its ItemSource to my viewmodel, then in the design view I'm getting the below error, and due to which the design view is not appearing, can you please help me:

Error 119 The local property "ItemsSource" can only be applied to types that are derived from "DataControl".

Thanks.

Gaurav Gupta
Martin
Telerik team
 answered on 20 Sep 2017
3 answers
728 views

Hi,

I am using Q3 2015.

I have editable RadGridView with two rows: Name and Count.

Name is editable.

Count is readonly.

When user clicks on "new row indicator" new row is created and focus is set to Name cell.

User enters text in name cell and clicks on "Count" cell.

My problem is that row remains in edit mode, "new row indicator" is not visible. User is confused because he thinks that edit is finished and there is no way to add another row.

To finish row edit user have to use tab key or click on any other control. Is there a way to end edit mode when any of readonly cells are focused?

My grid configuration:

<telerik:RadGridView
    x:Name="DocumentPositionsGridView"
    Style="{StaticResource EditableGridViewStyle}"
    SelectionMode="Extended"
    ItemsSource="{Binding Data, ValidatesOnDataErrors=True, NotifyOnValidationError=True}"
    ValidatesOnDataErrors="InViewMode"
    AddingNewDataItem="DocumentPositionsGridView_AddingNewDataItem"
    CellEditEnded="DocumentPositionsGridView_CellEditEnded"
    CanUserDeleteRows="{Binding CanEditDocumentPositions}"
    CanUserInsertRows="{Binding CanEditDocumentPositions}"
    NewRowPosition="{Binding CanEditDocumentPositions, Converter={StaticResource BooleanToGridViewNewRowPositionConverter}}"
    ShowColumnFooters="True"
    >
 
<Style x:Key="EditableGridViewStyle" TargetType="{x:Type telerik:RadGridView}" BasedOn="{StaticResource RadGridViewStyle}">
    <Setter Property="ShowGroupPanel" Value="False"/>
    <Setter Property="AutoGenerateColumns" Value="False"/>
    <Setter Property="IsFilteringAllowed" Value="False"/>
    <Setter Property="GroupRenderMode" Value="Flat"/>
    <Setter Property="NewRowPosition" Value="Bottom"/>
</Style>



 

 

Lukasz
Top achievements
Rank 1
 answered on 20 Sep 2017
3 answers
192 views

Hey,

In my project, I'm using a ScheduleView to display all scheduled appointments within a range of days. Objective is to find an empty slot for a new appointment. However, I already know how long will be the new appointment and I would like to highlight the appropriate time range on mouse over.

The default behavior for the schedule view is to highlight only a single time slot on mouse over (using MouseOverHighlightStyle). In my case, I would like to display the full appointment length instead.

Moreover, if possible, I would like to change the background color of the highlight item if it overlaps another booking.

See attached file for basic mockups of expected behavior.

Regards,

Stefan
Telerik team
 answered on 19 Sep 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?