Telerik Forums
UI for WPF Forum
1 answer
371 views

I'm using RadGridView with RowDetailsTemplate. I'm using the MVVM Light toolkit and everything works fine with updating values in the RowDetails if I were to click a button in the parent row. RaisePropertyChanged works great, values in the RowDetail updates as expected. The problem I'm seeing and I don't think this control is going to work how I'd like to is what if I click a button in the parent row that changes the number of rows in the RowDetailsTemplate. I change the collection that the RowDetailsTemplate is bound to but it's not redrawing correctly. Instead of displaying the new set of rows it just deletes all rows and ends there. Is there a way to force the RowDetailsTemplate to redraw? I read somewhere that the LoadingRowDetails event is only raised once but in this case, changing the collection should be enough to force the detail rows to redraw. Or at least that's what I would think.

Thanks

Craig

Craig
Top achievements
Rank 1
 answered on 01 Nov 2017
6 answers
402 views

Hi,
the application is based on MVVM using Prism with MEF.
I have converted  windows tree view control to Telerik RadTreeview control. everything worked fine except that the ItemContainerStyle defined is somehow disabling the tree to be shown.  if I remove the ItemContainerStyle from the Radtreeview the tree becomes visible but with not styling.
 by using the windows treeview with same ItemcontainerStyle work fine.
Following is the code.

<uxc:UxtWindow.Resources>
 <HierarchicalDataTemplate x:Key="SiteWizardTemplate" 
                                  ItemsSource="{Binding Steps}" >
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding DisplayAs}" />
            </StackPanel>
        </HierarchicalDataTemplate>
    </uxc:UxtWindow.Resources>
  
 <telerik:RadTreeView  IsVirtualizing="True"
                         ItemsSource="{Binding Wizard.WizardSections}" 
                          ItemTemplate="{StaticResource SiteWizardTemplate}"                                          
                               PreviewMouseDown="TreeView_PreviewMouseDown" >
                            
                               <telerik:RadTreeView.ItemContainerStyle>
                                <Style TargetType="{x:Type telerik:RadTreeViewItem}">
                                    <Setter Property="FontSize" Value="18" />
                                    <Setter Property="FontStyle" Value="Italic" />
                                    <Setter Property="Margin" Value="0,5,0,10" />
                                    <Setter Property="Foreground" Value="Black" />
                    </telerik:RadTreeView.ItemContainerStyle>
                      
                            
</telerik:RadTreeView>
Martin Ivanov
Telerik team
 answered on 01 Nov 2017
1 answer
146 views

Is there an easy way to set the initial height of the description panel without pulling the entire template out.

Martin Ivanov
Telerik team
 answered on 01 Nov 2017
5 answers
227 views

Hi!

I need to change RadDropDownButton's disabled style.

Code:

<Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDropDownButton">
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Foreground"  Value="Red" />
                        </Trigger>

Foreground changes it style.  But it is something like watermark.

How can I remove it? And increase it's contrast.

Thanks in advance

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Nov 2017
6 answers
77 views

Hi there,

I've found the examples for all the other CustomxDialog types, but I haven't found one for CustomStyleFormattingPropertiesDialog

Can somebody give a little guidance?

Michael
Top achievements
Rank 1
Veteran
 answered on 01 Nov 2017
2 answers
287 views

Hi, is there any way I can style label for DataFormDataField inside code-behind file or XAML ? For example, I have such layout and need to change label's foreground color:

<telerik:DataFormDataField x:Name="someNameHere" VerticalAlignment="Top" Grid.Row="2" Grid.Column="1" Label="{Binding Source={x:Static p:Resources.someValue}, Mode=OneTime, StringFormat='{}{0} :'}">                     

    <telerik:RadDateTimePicker x:Name="datePicker" SelectedDate="{Binding ControlDefinition.selectedDate, StringFormat='{}{0:T} {0:d}', Mode=TwoWay}"/>               </telerik:DataFormDataField>

 

Thanks in advance.

FirstName
Top achievements
Rank 1
 answered on 31 Oct 2017
3 answers
179 views

Hi, wisers,

I'm using RadGridView (2013.2.0724.40) under .net 4.5 to display some objects whose properties will only be known at run time. Googled and it seems ICustomTypeProvider is a good fit. I implemented it to my class and tried to set RadGridView to AutoGenerateColumns = True. But the properties dynamically added to the class are not shown in the generated grid, only those fixed properties. I tried DataGrid in .net itself and it works fine, the dynamic properties are shown in the DataGrid in column.

It seems that RadGridView itself doesn't support ICustomTypeProvider like .net DataGrid. Is there any possibility to achieve this in RadGridView?

Stefan
Telerik team
 answered on 31 Oct 2017
5 answers
307 views

Hi there,

We have the following scenario:  a Diagram with 323 items and 470 links takes about 8 seconds to display the first time.  Is this reasonable and expected?  What should we be looking at to improve this load time, please?

We do intend to show the entirety of the Diagram with all items and links at once, so we can't take advantage of Virtualization.

Profiling results indicate that the largest chunk of time is indeed spent in the Diagram constructor.

A large chuck of time is spent in RadDiagram.UpdateStylesAndTemplates, which is called three times (I suspect for the setting of each of ShapeStyle, ContainerShapeStyle, and ConnectionStyle) and seems to do plenty of work each time.  I think this says that we already have the GraphSource populated before we hit the definitions of those styles (this is true based on reading order of the xaml).

What other sorts of things could we look at? 

 

Thanks,

-David

 

 

 

 

 

 

 

 

Petar Mladenov
Telerik team
 answered on 31 Oct 2017
11 answers
389 views

Hello,

Can you point me to an example of a custom RadDiagramShape with connectors.  I've seen this example but I don't see the connectors.

http://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/create-custom-shape

 

Thanks,

Dinko | Tech Support Engineer
Telerik team
 answered on 31 Oct 2017
3 answers
230 views

Hi,

How can I populate my RichTextBox like the Preview shown in the attachment (codeblock.jpg)?

 

I tried something like this:

previewTextBox.InsertCodeBlock(codeTextBox.Text, settings);

but the result is not the same (mypreview.jpg)

 

thank you

Polya
Telerik team
 answered on 31 Oct 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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?