Hi
I need to represent a list of columns whose number is multiplied for the cardinality of a list of other elements.
For istance I have a list of "Sources": [S1, S2], and for every sources I have a fixed number of values [V1, V2, V3].
The columns table wil be:
S1 | S2
V1 | V2 |V3 | V1 | V2 V3
I achieved that with the following code:
private void SetTableColumns(ObservableCollection<StatisticaTableViewPerClasse> elementi
, IEnumerable<string> sorgentiNames
, string columnClassHeader)
{
GridAnalisiStatisticaTable.Columns.Clear();
GridAnalisiStatisticaTable.ColumnGroups.Clear();
if (elementi.Count() > 0)
{
//var sorgenti = elementi.GroupBy(e => e.Sorgente.Id,
// e => e.Sorgente.Name,
// (id, name) => name).Select(s => s.FirstOrDefault());
foreach (var sorgenteName in sorgentiNames)
{
var groupName = GROUPNAME + sorgenteName;
var group = new GridViewColumnGroup()
{
Header = sorgenteName,
Name = groupName,
};
GridAnalisiStatisticaTable.ColumnGroups.Add(group);
//GridAnalisiStatisticaTable.Columns.Add(new GridViewDataColumn()
//{
// Header = Utility.LoadString(ResourcesKeys.SorgenteColumnHeader),
// DataMemberBinding = new Binding("Sorgente.Name"),
// ColumnGroupName = groupName
//});
GridAnalisiStatisticaTable.Columns.Add(new GridViewDataColumn()
{
Header = columnClassHeader,
DataMemberBinding = new Binding("ClasseHeader"),
ColumnGroupName = groupName
});
GridAnalisiStatisticaTable.Columns.Add(new GridViewDataColumn()
{
Header = Utility.LoadString(ResourcesKeys.DistribuzioneProbabilitàHeader),
DataMemberBinding = new Binding($"Values[{sorgenteName}].DistribuzioneValue")
{
StringFormat = "N2"
},
ColumnGroupName = groupName
});
GridAnalisiStatisticaTable.Columns.Add(new GridViewDataColumn()
{
Header = Utility.LoadString(ResourcesKeys.ProbabilitàCumulativaHeader),
DataMemberBinding = new Binding($"Values[{sorgenteName}].CumulativaValue")
{
StringFormat = "N2"
},
ColumnGroupName = groupName
});
}
}
}<t:RadGridView x:Name="GridAnalisiStatisticaTable" Grid.Row="1"
RowIndicatorVisibility="Collapsed"
AutoGenerateColumns="False"
GroupRenderMode="Flat"
ShowGroupPanel="False"
IsPropertyChangedAggregationEnabled="False"
ItemsSource="{Binding Statistiche}"/>public class StatisticaTableView
{
public StatisticaTableView(KeyValuePair<decimal, double> entry, StatisticType type)
{
switch (type)
{
case StatisticType.DistribuzioneProbabilità:
DistribuzioneValue = entry.Value;
break;
case StatisticType.ProbabilitàCumulativa:
CumulativaValue = entry.Value;
break;
case StatisticType.LivelliPercentili:
break;
case StatisticType.DistribuzioneTemporale:
break;
default:
break;
}
}
public double DistribuzioneValue { get; set; }
public double CumulativaValue { get; set; }
}
public class StatisticaTableViewPerClasse
{
public StatisticaTableViewPerClasse(KeyValuePair<decimal, double> entry, decimal classRange, StatisticType type, string sorgenteName)
{
Classe = entry.Key;
ClasseHeader = $"{entry.Key} - {entry.Key + classRange}";
Values.Add(sorgenteName, new(entry, type));
}
public decimal Classe { get; set; }
public string ClasseHeader { get; set; }
public Dictionary<string, StatisticaTableView> Values { get; set; } = new();
}Hi,
I am using RadNavigationViewControl with RadDocking inside in the mainWindow, main view.
like this:
<RadNavigationView>
<RadNavigationView.Content>
<RadDocking>
<RadDocking.DocumentHost>
<RadPaneGroup Name=mainPaneGroup/>
</RadDocking.DocumentHost>
</RadDocking>
</RadNavigationView.Content>
</RadNavigationView>
When I open the new menu, new RadPane is Created inside RadPaneGroup, and I want it to be isFloatable and isDockable.
But the problem is that when I unload radpane, the radpane unloaded is not "Dockable" to any of control.
When I remove RadNavigationView and put RadDocking independently, RadDocking itself and contents inside work fine.
Is there a way to implement RadDocking inside RadNavigationView Content?

Hi Telerik Team,
I looked at the example below and tried the same,
but it came out like the attached picture
I want know if it is possible to change the width of SettingsPaneView.
regards,
PROBLEM
When you have a WPF RadGridView based on Table of many columns, consequently the Horizontal Scrollbar appear in Last row's as shown below. As the user scrolls to the bottom, it is look like the last row is not fully visible, its content has been cut.
Note : Theme Setting Mechanisms
Using Implicit Styles In this case use NoXaml dlls.
QUESTION : How can show Horizontal scrollbar correctly like :
CAUSE & SOLUTION plz?
Codebase available here : https://github.com/CrownParkComputing/MegaDownloaderFinal
so using the FolderDialog example for wpf, The binding for the propertt FolderName does not update after selecting a new folder. The original assignment works fine?
Errors shown :
FolderName property not found on object of type String.
IsSearchActive property not found on object of type OpenFolderDialogViewModel.
ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type RadWatermarkTextBox
Please help with these issues I am stumped.
Is there a quicker way of selecting / deselecting groups of children items in RadTreeListView ??
if (e.AddedItems.Count > 0)
{
foreach (NodesModel i in e.AddedItems)
{
if (i.Name != "WHDLoad")
{
if (i.Items.Count > 0)
{
foreach (NodesModel x in i.Items)
{
{
//x.IsSelected = true;
Nodes.SelectedItems.Add(x);
}
}
}
}
}
}Hi Telerik Team,
I create some custom columns and observed some strange behavior. Many columns use the same custom column with different values (bindings) but sometimes show the same values, especially when scrolling. So I use the CustomColumn example to investigate further.
I can reproduce this 100%. Column2 switches to the binding from Column1. I attached a sample project + video.
I can "solve" this problem by setting the Binding every time the CreateCellElement method is called. BUT this happends every time a value changed and it is used for a stock exchange software, were values changing a lot so I believe it can be a performance issue.
if (bar == null)
{
bar = new RadProgressBar();
bar.Height = 20;
cell.Content = bar;
}
bar.SetBinding(RadProgressBar.ValueProperty, this.DataMemberBinding);Is this a bug? Do I understand this wrong? Why is the cell "created" on every value change?
PS: the real grid has about 100 columns and the CustomColumns had multiple Bindings also to DependencyProperties wich had to be constructed every time.
regards,
marco

Hi,
I would be happy if you could explain to me why a regular appointment opens for editing when clicked twice but an appointment that has a recurrence does not open for me by double-clicking.
what could be the problem?
<telerik:RadScheduleView
SelectedAppointment="{Binding SelectedAppointment, Mode=TwoWay}"
EditAppointmentDialogStyle="{StaticResource CustomEditAppointmentDialogStyle}"
AppointmentsSource="{Binding Appointments}"
DragVisualTemplate="{StaticResource DragVisualContentTemplate}"
DragDropHighlightStyle="{StaticResource CustomDragDropHighlightStyle}">
public CustomAppointment SelectedAppointment { get; set; }
public class CustomAppointment : Appointment
Would appreciate help.
I have documents that when saved as a .docx file and opened in Word, they display correctly.
The same document when viewed in the TK Viewer distorts (moves) the position of the elements of the document.
It is adding space where it should not be and wrapping words where they should be on a single line.
I'm attaching a short screenshot of the document in TK View as well as in Word to show difference. It is happening everywhere in the document, but just this screenshot for brevity.
Is there a setting to force it to render exactly as the display in word? Some way to resolve this?
I would like to pop-up a RadContextMenu upon right clicking anywhere in the header area of the TabControl (anywhere in the green area).
Attaching the Context menu as shown below pops up the menu everywhere including the body(ie: red area), which is not desired. I only want the menu to popup in the header area (when clicking on the tabitem headers or in the blank area after the tabitems)
<telerik:RadTabControl x:Name="radTabCtrl"
Grid.Row="1"
Margin="20,10,5,5"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
TabStripPlacement="Left" Align="Right"
DataContext="{Binding Itemss}"
ItemsSource="{Binding}"
PreviewTabClosed="PreviewTabClosed">
<telerik:RadContextMenu.ContextMenu>
<telerik:RadContextMenu x:Name="tabCtrlContextMenu" Opening="TabCtrlContextMenu_Opening">
<telerik:RadMenuItem Header="Add" Click="Menu_Add_Click"/>
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>
</telerik:RadTabControl>
Your help is much appreciated.