Telerik Forums
UI for WPF Forum
2 answers
223 views
Hi,

Just trying to figure out if the RadRichTextBox has a shortcut key for assigning bullets? The standard Ctrl + Shift + L does not work.

Thanks
Anthony
Anthony
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 24 Jan 2013
4 answers
638 views
Hi guys,

I noticed that when using ExportFormat.ExcelML with columns containg tags, the generated file cannot be opened. I have a column which contains "<" and ">" and this basically breaks the format. I tried intercepting the value in the ElementExporting event but it doesn't look like it's helping me. A sample event log file froom Excel looks like this:

XML PARSE ERROR:  Missing end-tag
  Error occurs at or below this element stack:
    <ss:Workbook>
     <ss:Worksheet>
      <ss:Table>
       <ss:Row>
        <ss:Cell>
         <ss:Data>
          <ss:CompanyName>

The value for column CompanyName would be something like "<Acme Inc>"

How do I go about this? I
Nayaz
Top achievements
Rank 1
 answered on 24 Jan 2013
27 answers
1.1K+ views

I'm using the RegionAdapter from the following article.

http://blogs.telerik.com/blogs/posts/09-08-31/using_the_raddocking_control_with_prism.aspx

However, I'm using PRISM 4 + MVVM + MefBootstrapper.
Has anybody successfully used the RegionAdapter with MefBootstrapper?

I'm getting the following error message... 

this

 

 

.Container.Resolve

Error 1 'System.ComponentModel.Composition.Hosting.CompositionContainer' does not contain a definition for 'Resolve' and the best extension method overload 'Microsoft.Practices.Unity.UnityContainerExtensions.Resolve<T>(Microsoft.Practices.Unity.IUnityContainer, params Microsoft.Practices.Unity.ResolverOverride[])'

Thank you

protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
{
    var mappings = base.ConfigureRegionAdapterMappings();
    mappings.RegisterMapping(typeof(RadPaneGroup), this.Container.Resolve<RadPaneGroupRegionAdapter>());
    return mappings;
}
George
Telerik team
 answered on 24 Jan 2013
3 answers
245 views
Hi , i am in the process of converting the Datagrid to Telerik RadGrid , i am having grouping in the RadGrid and i want to change its style 

could any one help me in converting the below piece of datagrid code to Telerik

name using as  xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

<DataGrid.GroupStyle>
<GroupStyle>
<GroupStyle.ContainerStyle>

</GroupStyle.ContainerStyle>
</GroupStyle>
</DataGrid.GroupStyle>
Dimitrina
Telerik team
 answered on 24 Jan 2013
3 answers
273 views
I'm having issues with getting the IsExpandable property to be respected. Basically when my "Parent" has no children, I don't want the expand togglebutton to be shown. Below is some sample xaml that I am using. The resulting grid has the details column fully populated with the togglebuttons when there should be at least one without the button. I've stepped through my StyleSelector code and it is returning the proper style. But it doesn't appear to have any affect. What am I doing wrong?

<UserControl ...>
    <UserControl.Resources>
        <Style x:Key="NoChildrenRowStyle" TargetType="telerik:GridViewRow">
            <Setter Property="IsExpandable" Value="False"/>
        </Style>
  
        <Style x:Key="HasChildrenRowStyle" TargetType="telerik:GridViewRow">
            <Setter Property="IsExpandable" Value="True"/>
        </Style>
</UserControl.Resources>
  
 <local:RowStyleSelector x:Key="RowStyleSelector"
         NoChildrenStyle="{StaticResource NoChildrenRowStyle}"
         HasChildrenStyle="{StaticResource HasChildrenRowStyle}"/>
  
<telerik:RadGridView ItemsSource="{Binding ParentsCollectionView}"
        RowIndicatorVisibility="Collapsed"
        AutoGenerateColumns="False"
        RowStyleSelector="{StaticResource RowStyleSelector}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn />
                <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}"/>
                <telerik:GridViewDataColumn Header="Age" DatatMemberBinding="{Binding Age}"/>
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <ListBox ItemsSource="{Binding Children}">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <Grid>
                                    <TextBlock Text="{Binding Name}"/>
                                </Grid>
                            </DataTemplate>
                        </ListBox.ItemTemplate>  
                    </ListBox>
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>
        </telerik:RadGridView>
</UserControl>
Yoan
Telerik team
 answered on 24 Jan 2013
4 answers
253 views

In XAML, I try to bind the RoutingService of my diagram:

<telerik:RadDiagram ....... RoutingService="{Binding Router}" ... />

And I get this error:

'RoutingService' property is read-only and cannot be set from markup. Line 92 Position 45.

Why do I have to assign this router in code-behind? Makes sense to bind it since it can easily be a property of my viewmodel...

UPDATE: Basically, I'm trying to assign the Router to an instance of OrgTreeRouter.

Kristoffer
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
103 views
Hi!
I recently installed "RadControls for WPF Q3 2012" and I see only WPF40 and WPF45 in the binaries folder. What about WPF35 that existed in the previous release? Not available? What does this mean for my projects?
Dimitrina
Telerik team
 answered on 24 Jan 2013
2 answers
275 views
Hi,

i have a view with two RadGridView, in both the Columns are autogenerated.
In the second one the property ShowColumnHeaders is set to false, so you don't see that there are two grids.
In the view you see a GridView, a black line and then the next GridView.

            <telerik:RadGridView x:Name="TodoGrid"
                                 Grid.Row="0"
                                 Width="auto"
                                 Height="auto"
                                 AutoGenerateColumns="True"
                                 CanUserDeleteRows="False"
                                 CanUserFreezeColumns="False"
                                 CanUserInsertRows="False"
                                 CanUserResizeColumns="True"
                                 ColumnWidth="*"
                                 IsReadOnly="True"
                                 SelectionUnit="Cell"
                                 ItemsSource="{Binding ToDoRows}"
                                 RowIndicatorVisibility="Collapsed"
                                 ScrollViewer.VerticalScrollBarVisibility="Visible"
                                 ShowGroupPanel="False" />
 
.
.
.
.
 
            <telerik:RadGridView x:Name="DoneGrid"
                                 Grid.Row="2"
                                 Width="auto"
                                 Height="auto"
                                 AutoGenerateColumns="True"
                                 CanUserDeleteRows="False"
                                 CanUserFreezeColumns="False"
                                 CanUserInsertRows="False"
                                 CanUserResizeColumns="False"
                                 ColumnWidth="*"
                                 SelectionUnit="Cell"
                                 IsReadOnly="True"
                                 ItemsSource="{Binding DoneRows}"
                                 RowIndicatorVisibility="Collapsed"
                                 ScrollViewer.VerticalScrollBarVisibility="Visible"
                                 ShowColumnHeaders="False"
                                 ShowGroupPanel="False" />

The user can resize the columns in the top grid and i want now that the columns on the bottom grid resize in the same way like the top ones. I try to handle this about the ResizingEvent but don't find a working solution.

Can somebody please support me by this issue.
Mark
Top achievements
Rank 1
 answered on 24 Jan 2013
2 answers
932 views
Hi,

I'm using MVVM and I want to control on the ViewModel which rows are selected.  To accomplish that I'm trying to bind the GridViewSelectColumn to a property, but that doesn't seem to work because it doesn't accept DataMemberBinding.  How can I accomplish that?

            <telerik:RadGridView.Columns> 
                <telerik:GridViewSelectColumn DataMemberBinding=""/> <!-- not valid -->

Thanks in advance,

Wagner
Lee Francis
Top achievements
Rank 1
 answered on 24 Jan 2013
5 answers
345 views
Hi,

I've looked at the demos of the ChartView control on how to create a bar chart and noticed that each bar is defined in xaml and bound to data. 

In my case the bars aren't known until runtime, so my question is how can one dynamically add barseries to a Chartview using MVVM ?

My data is defined as such:

class BarData // Represents one "item" on the x-axis
 
{
DateTime Date {get; set;} // X-Axis, works fine
 
Dictionary<string,double> Items = new Dictionary <string, double> ();  // string is the name of the category, and double is the value
 
}

I'm not sure if this is the best way to represent data for creating the Chart and I'm open to feedback for this.
Nikolay
Telerik team
 answered on 24 Jan 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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?