<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> |
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,
<
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
>
<
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!
I am using a WPF rad grid {EnableRowVirtualization is set to"True"}.
I have used the GridViewToggleRowDetailsColumn column to toggle the visibility of the row details section of each row.
I have some editable fields in the row details section like checkbox, dropdown.
On click of the expand button(+), I am populating these fields with some default values in radGrid_LoadingRowDetails event.
I change the values in the fields and the leave the details section expanded. Then scroll down the grid so that the row move out of the window range and scroll up to the row again, the LoadingRowDetails fired again, thus reloading the fields in the details section with default values and thus the state of the fields is lost.
Is there any way to control the re-firing of the LoadingRowDetails on scroll if the row details section is already expanded.
Please provide your inputs.
Thanks,
Regards,
Mausami Sawant.
richTB.DocumentInheritsDefaultStyleSettings = true;
richTB.FontSize = 11;
Section sec = new Section();
Span sp = new Span();
sp.Text = "Some Text I want to write to RTB";
Paragraph par = new Paragraph();
par.Inlines.Add(sp);
sec.Blocks.Add(par);
richTB.Document.Sections.AddBefore(rtb.Document.Sections.First, sec);
richTB.Document.Sections.Clear();