Telerik Forums
UI for WPF Forum
2 answers
211 views
Hi!

At the moment, I'm writing an application using the RadRibbonWindow, a RadRibbonView and PRISM. Today I encountered a problem and I'm not sure if this is a bug or me doing something the wrong way.

The application consists of these main parts:
-The shell (A RadRibbonWindow)
-A RadRibbonView hosted inside the Window (it has the RegionManager.RegionName set to "RibbonView")
-Multiple modules each containing RadRibbonTabs (some have the ContextualGroupName where needed
-Each module is added to the region using the [ViewExport(RegionName="RibbonView")] attribute and the AutoPopulateExportedViewsBehavior
-Implicit Styles are used (Office 2013)

Now the strange part:
Only RibbonTabs having the ContextualGroupName set are visible in the RibbonView (as expected), but injected tabs having this attribute not set are not visible (I expected them to show up permanent)

Remarks:
Somewhere in this forum I read that an additional RegionAdapter is not needed in my case, because each injected usercontrol derives directly from RadRibbonTab. I think Tina mentioned this in one of her posts. Some tabs show up so I guess this is right, isn't it?
Nevertheless I experimented with RegionAdapters but had no success.

I would appreciate any help or hint getting my problem solved :) Many thanks in advance!

btw.: I'm already using Q1 2014
Hans
Top achievements
Rank 1
 answered on 27 May 2014
2 answers
137 views
I'm using DropDownButton to display Winform or HWND window, but it seems that it does not display any Winform in DropDownContent

Here is example:
<Window
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="MainWindow"
     xmlns:Forms32="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
 
        <telerik:RadDropDownButton Content="Browser" HorizontalAlignment="Left" Height="Auto" IsOpen="False" Margin="36,21,0,0" VerticalAlignment="Top" Width="Auto" DropDownWidth="800" DropDownHeight="600">
            <telerik:RadDropDownButton.DropDownContent>
                <WindowsFormsHost>
                    <Forms32:WebBrowser Url="google.com"></Forms32:WebBrowser>
                </WindowsFormsHost>
            </telerik:RadDropDownButton.DropDownContent>
        </telerik:RadDropDownButton>
         
        <telerik:RadDropDownButton Content="Button" HorizontalAlignment="Left" Height="Auto" IsOpen="False" Margin="129,21,0,0" VerticalAlignment="Top" Width="Auto">
            <telerik:RadDropDownButton.DropDownContent>
                <WindowsFormsHost>
                    <Forms32:TextBox Text="Test Text Box"></Forms32:TextBox>
                </WindowsFormsHost>
            </telerik:RadDropDownButton.DropDownContent>
        </telerik:RadDropDownButton>
 
    </Grid>
</Window>

Pov Ser
Top achievements
Rank 1
 answered on 27 May 2014
3 answers
165 views
I want to be able to make ALL cells in specific columns a certain background color. I know I can do this using a custom cell template but the problem is that this is extremely slow as it looks at every single cell and then decides what template to apply. It significantly slowed down the performance even with a grid of only several hundred visible columns. I am wondering whether there is a way to just set an entire column to a specific Background and/or foreground color

Thank you



Kalin
Telerik team
 answered on 27 May 2014
1 answer
119 views
Hi.

I want to check time about 'RadCartesianChart refresh'

This chart is slowly that it have more Series.

After I want to check time, I want to make more fast.
Petar Marchev
Telerik team
 answered on 27 May 2014
3 answers
164 views
I've seen the demos on stacked/clustered bar series.  For our business model, it makes more sense for the primary bound ObservableCollection to represent each "cluster" of data.  The nested ObservableCollection would then contain the data points for each bar in the cluster.  This is the opposite from the demos, where the primary ObservableCollection represents each series of a single bar color.

Is there any way to construct the chart in the reverse from the demos?  I hope my explanation is clear enough.

Thanks!
Martin Ivanov
Telerik team
 answered on 27 May 2014
2 answers
221 views
I've got a RadGridView with a column chooser almost exactly following the code shown in the Telerik documentation
<telerik:RadGridView>
    <telerik:RadGridView.ControlPanelItems>
        <telerik:ControlPanelItem ButtonTooltip="{x:Static res:ColumnChooserTooltip}">
            <telerik:ControlPanelItem.Content>
                <ListBox ItemsSource="{Binding Columns}" Style="{StaticResource ColumnChooserListBox}">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <CheckBox Content="{Binding Header, Mode=OneWay}" IsChecked="{Binding IsVisible, Mode=TwoWay}" Style="{StaticResource ListItemsCheckBox}" />
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </telerik:ControlPanelItem.Content>
        </telerik:ControlPanelItem>
    </telerik:RadGridView.ControlPanelItems>
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="{x:Static res:Column1Name}" />
        <telerik:GridViewDataColumn Header="{x:Static res:Column2Name}" />
        <telerik:GridViewDataColumn Header="{x:Static res:Column3Name}" />
        ...
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

And it works great! But, I have approximately 100 columns defined. They are declared in the default order I want them displayed. However, I would like the list in the column chooser to be displayed in alphabetical order to make finding the columns in the list easier. I've tried adding a sort description:

<telerik:RadGridView.Resources>
    <CollectionViewSource Source="{Binding Columns}" x:Key="AlphabetizedColumnsSource">
        <CollectionViewSource.SortDescriptions>
            <scm:SortDescription PropertyName="Header"/>
        </CollectionViewSource.SortDescriptions>
    </CollectionViewSource>
</telerik:RadGridView.Resources>
<telerik:RadGridView.ControlPanelItems>
    <telerik:ControlPanelItem ButtonTooltip="{x:Static res:ColumnChooserTooltip}">
        <telerik:ControlPanelItem.Content>
            <ListBox ItemsSource="{Binding Source={StaticResource AlphabetizedColumnsSource}}" Style="{StaticResource ColumnChooserListBox}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <CheckBox Content="{Binding Header, Mode=OneWay}" IsChecked="{Binding IsVisible, Mode=TwoWay}" Style="{StaticResource ListItemsCheckBox}" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </telerik:ControlPanelItem.Content>
    </telerik:ControlPanelItem>
</telerik:RadGridView.ControlPanelItems>

But then it's looking for the Columns binding on the DataContext of the RadGridView instead of on the RadGridView itself. I've tried a few different way to do this and haven't been able to figure it out yet. How can I set this up to give me an alphabetized list of columns in the chooser?

Thank you!
Brian
Top achievements
Rank 1
 answered on 27 May 2014
1 answer
171 views
Hi,

if I save my "RadDiagram", I get a XML-File, which is ok. But is it possible to save the XML-file with line Feeds? We have to Import this
file in a Business Software, and if the string is just one line, it is impossible to read for us?

Thanks
Best Regards
Rene
Martin Ivanov
Telerik team
 answered on 26 May 2014
3 answers
131 views
Hi,

i have to add different TabContents to different shapes? How to do that?

Thanks
Best Regards
Rene
Martin Ivanov
Telerik team
 answered on 26 May 2014
2 answers
286 views
Hi,

I try to save a diagram where a add some custom connectors on each shape. Also I add a custom tabcontent for each shape.
The Problem after saving and reloading it from XML, all my custom connectors a my tabcontent are away. How can I save
my logic in the XML too?

Thanks
Best Regards
Rene
Milena
Telerik team
 answered on 26 May 2014
1 answer
306 views
We'd like to add child elements to task items dynamically (post-initialization.)

Using a View-ViewModel, if I modify a given GanttTask element (which previously had no children) to add childr tasks, I see the following behavior:
- the "gantt" part of the UI changes from a text box to a ranged line
- the underlying ObservableCollection has the correct data
- however, the tree control (the part of the control that allows expand/collapse) does not appear to recognize that child tasks have been added; as a result it is impossible to view the child tasks that have been added.

How do we do this properly so the control recognizes the new child elements?
Polya
Telerik team
 answered on 26 May 2014
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?