Telerik Forums
UI for WPF Forum
1 answer
311 views
Hi

I have a question on using the CellEditTemplate which has a TextBox in RadGridView.

I have a RadGridView, one of its columns is created like this in cs file:

gvColumn = new GridViewDataColumn();
gvColumn.CellEditTemplate = (DataTemplate)grid.TryFindResource("TextBoxEditTemplate");
gvColumn.DataType = typeof(string);
gvColumn.DataMemberBinding = new Binding(...)

In xaml file I define the template like this:

<telerik:RadGridView.Resources>
                <DataTemplate x:Key="TextBoxEditTemplate">
                    <TextBox Text="{Binding RelativeSource={RelativeSource Self}, Path=DataMemberBinding.PropertyPath}"/>
                </DataTemplate>
...

but the 'Text' of this text box is not bound to content of the cell, they are sperated, when user tries to edit, the cell's content is not
in the TextBox, and vice versa.

Thanks.

Henry

Henry
Top achievements
Rank 1
 answered on 24 Jan 2013
2 answers
195 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
610 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.0K+ 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
225 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
244 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
232 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
90 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
263 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
905 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
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
PersistenceFramework
DataPager
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?