Telerik Forums
UI for WPF Forum
2 answers
360 views
Hi guys,
     Is there a way to specify a converter parameter in this control?  I have tried to specify a ConverterParameter in the binding to the value property, but in the ConvertBack method of the converter, the ConverterParameter is always null.  Maybe this is due to something happening internally in the control.  There is also a ValueToTextConverter property, but you cannot specify a ConverterParameter either.  Basically I want to use one converter that would apply to a variety of masks.  Any help would be appreciated.

Thank you,
P
Pete
Top achievements
Rank 1
 answered on 02 Jun 2011
1 answer
171 views
Hello, i would like to know if there's a way to modify the data fields editors in the AutoGeneratingFieldEventArgs event.
I can modify things like e.DataField.Label or e.DataField.Height but i wold like to know how to acces the editor fields (more specific, i want to modify let's say, the height, width or background color of the control).

Also in this event can i modify the type of the control that is being generate for a specific property?
Something like: if (e.PropertyName == "Name") choose a type for the generated control.

Thank you.
Pavel Pavlov
Telerik team
 answered on 02 Jun 2011
5 answers
107 views
I am using both a RadTreeView and a RadCarousel and bind the root nodes of the tree view and the carousel to the same list of items. If the user change the selection on one control, I would like the app to automaticall change the selected item on the other control. I tried to bind the SelectedItem property on both control to the same object but that did work. Has anyone tried this before?  Thanks.
Vien Nguyen
Top achievements
Rank 1
 answered on 02 Jun 2011
9 answers
123 views
Hello!

I have a big Windows.Forms project, but we also use WPF controls.
I have two ElementHosts, and in each I have one RadGridView.

All was good, but now we need grouping, and have a problem with it.
Grouping works only for one of the grids. And more, it isn't works after close and open window again.

I cannot attach here my example, but can send it via e-mail, if you need it.

Roman.
Ariel
Top achievements
Rank 1
 answered on 02 Jun 2011
8 answers
298 views
I am doing a review of 7 major chart controls for WPF and during my review of the RadControl for WPF I cannot find a way to bind two separate Line Series on a single chart to individual properties of an underlying view model.

My view model has two ObservableCollection properties.  FixedPoints is populated in the constructor to represent a collection of static data points that are known at startup.  DynamicPoints is populated via Rx's Observable.Interval to simulate a real time steam of data being plotted.

I want a single chart control to display two line series each plotting one of the collections mentioned, but it seems the only place I can bind to my view model is on the RadChart so I have a single ItemsSource to bind.  Is this correct?  I need to do this completely declaritively no code behind work arounds.

I found a sample that uses a collection of collections and sets the CollectionIndex of each SeriesMapping but that is completely against the MVVM pattern.  It means I have to design any view model according the choice of chart control.  It is also IMHO a very ugly implementation.
Giuseppe
Telerik team
 answered on 02 Jun 2011
2 answers
110 views
Hi, I have random problem with text search. When pressing on the key 'X', sometimes the item get highlighted but sometimes it doesn't.

<

 

 

telerik:RadComboBox IsTextSearchEnabled="True" TextSearchMode="StartsWith">

 

 

 

 

    <telerik:RadComboBoxItem Content="Xavier1"/>

 

 

 

 

    <telerik:RadComboBoxItem Content="Xavier2"/>

 

 

 

 

    <telerik:RadComboBoxItem Content="Xavier3"/>

 

 

 

 

    <telerik:RadComboBoxItem Content="Xavier4"/>

 

 

 

 

</telerik:RadComboBox>

 

Konstantina
Telerik team
 answered on 02 Jun 2011
1 answer
146 views

Hi,

My situation is this: I have a RadGridView control with one or more columns defined as GridViewComboBoxColumn. These combobox columns are populated with a large amount of rows, and I want to provide to the users the same functionality as in a regular RadComboBox control: type in an input field the first few letters of an item they want and the combobox column auto-completes the first match in the list and scrolls to it.

Is there any solution to this? What I tried is using a custom column derived from GridViewBoundColumnBase, as in the demo GridView->Columns->Custom Column, but couldn't make it to work.

Maya
Telerik team
 answered on 02 Jun 2011
5 answers
216 views
I'm trying to show the RadDatePicker in cells by default.  I know that I can use the built in editors, but I want the pickers showing by default without the user having to click into the cell.  So I made a control template based on an example I saw elsewhere in this forum doing the same thing for CheckBoxes.  The code I'm using is below:

<telerik:RadGridView Name="ActiveGrid" Grid.Row="0" Style="{DynamicResource DefaultGrid}"  
                     ItemsSource="{Binding Path=CompletionList}" AutoGenerateColumns="False" ScrollMode="RealTime"  
                      DataLoadMode="Synchronous" CanUserSortColumns="False" SelectionChanged="RadGridView_SelectionChanged"  
                     CurrentCellChanged="ActiveGrid_CurrentCellChanged" > 
    <telerik:RadGridView.Resources> 
        <ControlTemplate x:Key="completionDateCellTemplate" TargetType="{x:Type telerik:GridViewCell}"
            <telerik:RadDatePicker SelectionChanged="RadDatePicker_SelectionChanged" VerticalAlignment="Center" 
                                    SelectedDate="{Binding Path=dtDateCompleted}"/> 
        </ControlTemplate> 
        <Style x:Key="completionDateCellStyle" TargetType="{x:Type telerik:GridViewCell}"
            <Setter Property="telerik:GridViewCell.Template" Value="{StaticResource completionDateCellTemplate}" /> 
        </Style> 
    </telerik:RadGridView.Resources> 
    <telerik:RadGridView.Columns> 
        <telerik:GridViewDataColumn Width="*" Header="Comp." Name="CompDateCompleted"  
                                    CellStyle="{StaticResource completionDateCellStyle}" TextWrapping="Wrap"  /> 
    </telerik:RadGridView.Columns> 
</telerik:RadGridView> 
(This is of course a cut down version of my full grid)

This works fine and shows the date pickers if the dates are all null.  However, if the dates are non null then the no rows display at all - this includes rows that have the dates as null.  I can scroll for some reason when this happens even though I don't see any rows, and I get the following information from the Output window:
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.RadGridView', AncestorLevel='1''. BindingExpression:Path=UseAlternateRowStyle; DataItem=null; target element is 'GridViewRow' (Name=''); target property is 'NoTarget' (type 'Object')

I assume this is more to do with the rows not being there than related to the DatePicker not working though.

I'm using the latest release of the controls - 2009 Q2.

I've tried binding to DisplayDate as well, and this might work except that it's a DateTime rather than a DateTime? so I can't bind to it, since my dates are nullable.

Any ideas on how to make this work?

Siingh
Top achievements
Rank 2
 answered on 02 Jun 2011
3 answers
106 views

Hello,

I have a question regarding bar charts.

On this type of chart I need to be able to modify the height of each bar (like on a usual bar charts) but also the width of each bar (this is less usual...).

So all those bars need to be modifiable in height and width and have to be stuck together (no space between them).

Is it possible to achieve that with your library ? Do I need to use a special chart ? in 2D or 3D?

Thank you in advance for your help,

Regards,

Yavor
Telerik team
 answered on 02 Jun 2011
10 answers
406 views
Hi,
I currently use the TelerikGridView control in a WPF desktop project and I have some problems with low grid performance, both with loading data, with displaying and with using it.

There are approximatively between 500 and 2.000 records to manage (sometimes up to 10.000 records in one case), and it takes more than 5 minutes to display them.

The grid is contained in an user-control which is itself contained in a scrollviewer (needed).

Here is the code of the grid's user-control:

<telerikGrid:RadGridView x:Class="Ere.Desktop.Modules.Onshore.UserControls.Etape2AGridView"
    xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
    x:Name="radGridView" AutoGenerateColumns="False" ShowGroupPanel="False">
    <telerikGrid:RadGridView.Columns>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertSurSiteSpecifique1.CleLibelleType, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDTRANSSS1}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertSurSiteSpecifique1.LibelleTransfertAmont}" Header="{Localize ONSGRIDTRANSSSSPEAM1}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertSurSiteSpecifique1.LibelleTransfertAval}" Header="{Localize ONSGRIDTRANSSSSPEAV1}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertSurSiteSpecifique2.CleLibelleType, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDTRANSSS2}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertSurSiteSpecifique2.LibelleTransfertAmont}" Header="{Localize ONSGRIDTRANSSSSPEAM2}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertSurSiteSpecifique2.LibelleTransfertAval}" Header="{Localize ONSGRIDTRANSSSSPEAV2}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertSurSiteSpecifique3.CleLibelleType, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDTRANSSS3}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertSurSiteSpecifique3.LibelleTransfertAmont}" Header="{Localize ONSGRIDTRANSSSSPEAM3}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertSurSiteSpecifique3.LibelleTransfertAval}" Header="{Localize ONSGRIDTRANSSSSPEAV3}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertHorsSiteSpecifique1.CleLibelleType, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDTRANSHS1}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertHorsSiteSpecifique1.LibelleTransfertAmont}" Header="{Localize ONSGRIDTRANSHSSPEAM1}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertHorsSiteSpecifique1.LibelleTransfertAval}" Header="{Localize ONSGRIDTRANSHSSPEAV1}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertHorsSiteSpecifique2.CleLibelleType, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDTRANSHS2}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertHorsSiteSpecifique2.LibelleTransfertAmont}" Header="{Localize ONSGRIDTRANSHSSPEAM2}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertHorsSiteSpecifique2.LibelleTransfertAval}" Header="{Localize ONSGRIDTRANSHSSPEAV2}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertHorsSiteSpecifique3.CleLibelleType, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDTRANSHS3}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertHorsSiteSpecifique3.LibelleTransfertAmont}" Header="{Localize ONSGRIDTRANSHSSPEAM3}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding TransfertHorsSiteSpecifique3.LibelleTransfertAval}" Header="{Localize ONSGRIDTRANSHSSPEAV3}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding MilieuCibleSpecifique.IdType, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDMILCIBTYP}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding MilieuCibleSpecifique.LibelleSpecifique}" Header="{Localize ONSGRIDMILCBLSPE}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding CleLibelleModePollution, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDKEYLIBMOD}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding CleModule, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDKEYMODULE}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True"/>
        <telerikGrid:GridViewDynamicHyperlinkColumn DataMemberBinding="{Binding IdBase, Converter={StaticResource MyLocalizeConverter}}" Header="{Localize ONSGRIDSCEBAS}" IsReadOnly="True" IsReorderable="False" IsResizable="False" IsSortable="False" IsGroupable="False" IsFilterable="True" NavigateUrlMemberPaths="FichierAide" NavigateUrlFormatString="{} {0}" />
    </telerikGrid:RadGridView.Columns>
</telerikGrid:RadGridView>

and here is the container code of the grid's user-control:

<Grid>
   <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
   </Grid.ColumnDefinitions>
   <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
   </Grid.RowDefinitions>
   <ctrl:Etape2AGridView Grid.Column="0" Grid.Row="0" x:Name="GridView" ItemsSource="{Binding ScenariosSpecifiques}" DataContext="{Binding CurrentEtape}">
         <i:Interaction.Behaviors>
               <bhv:FilterBehavior Items="{Binding Items}" />
         </i:Interaction.Behaviors>
    </ctrl:Etape2AGridView>
</Grid>


I can't identify the cause of this (very) low performance.

 

Thanks!

Robert
Top achievements
Rank 1
 answered on 02 Jun 2011
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?