Hi,
I have added RadPivotGrid to my vb.net page and RadPersistenceManager . I managed to save and load the user current state with the following:
RadPersistenceManager1.StorageProviderKey = fileId
RadPersistenceManager1.SaveState()
However, I need to get the XML and save the XML in the db and then load the xml when user clicks the load button.
How do I get the XML for the current state?
Thanks
I have tried to set up a gridview which includes a date column.
If I have an invalid input for a date column, I get a validation error -> That is OK.
If I THEN use the dropdown to choose a date, the program crashes with the following exception: 'ToolTip' cannot have a logical or visual parent.
My GridViewColumn
<telerik:GridViewComboBoxColumn x:Name="InputValueComboBox" Header="ABC" ItemsSourceBinding="{Binding Inputs}" DataMemberBinding="{Binding Input, ValidatesOnDataErrors=True}" IsComboBoxEditable="True" SelectedValueMemberPath="Value" DisplayMemberPath="Value" SortMemberPath="Value" Width="Auto" CellEditTemplateSelector="{StaticResource InputValueEditTemplateSelector}" />
My TemplateSelector:
<DataTemplate x:Key="DateValueEditTemplate"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <TextBox Grid.Column="0" Text="{Binding Input, Mode=TwoWay}" /> <telerik:RadDropDownButton x:Name="FilterCalendarDropdown" Grid.Column="1" AutoOpenDelay="0:0:0.0"> <telerik:RadDropDownButton.DropDownContent> <telerik:RadCalendar SelectedDate="{Binding DateValue, Mode=TwoWay}" SelectionChanged="OnSelectionChanged" /> </telerik:RadDropDownButton.DropDownContent> </telerik:RadDropDownButton> </Grid> </DataTemplate> <styleSelectors:PropertyValueDataTemplateSelector x:Key="InputValueEditTemplateSelector" DateTemplate="{StaticResource DateValueEditTemplate}" />
Any idea to solve the problem?
Hi,
I'm uploading simple PDF scans to SQL Server and then rendering later them from a memory stream using the RadPDFViewer, but it's been a little inconsistent. Most of the files display properly, but every so often the PDFViewer does not display the file at all and the control is just a white blank. Would the orientation (portrait vs landscape) of the scanned PDF file have any affect on this?
Also, I am not able to locate the PDFViewerNavigation control in my Toolbox, is this control included with the Telerik UI for WPF?
Thanks,
Don
Is it possible to display text values in the cells or does it have to be numerical only? I don't need any totals or aggregates. I have managed to get the control to display my rows and columns correctly, but I'm not sure how to get it to display the values I need since they are text values.
I want to use this control because I don't know how many columns I will need and its much simpler to matrix my data and let the control figure it out. I could achieve the same results with a GridView, manually adding columns and using a converter to find the correct values, but it would be MUCH simpler to use a PivotGrid.
I have attached an image of what I'm trying to display. My class and data are below.
public class SettingCompareMatrix : IComparable<SettingCompareMatrix>
{
public int SettingGroupIndex { get; set; }
public string SettingGroup { get; set; }
public int SettingIndex { get; set; }
public string SettingName { get; set; }
public string Name { get; set; }
public string Value { get; set; }
//For sorting the rows, instead of by alphebetical order. Another issue to figure out!
public int CompareTo(SettingCompareMatrix other)
{
if (this.SettingGroupIndex > other.SettingGroupIndex)
return 1;
else if (this.SettingGroupIndex < other.SettingGroupIndex)
return -1;
else
{
if (this.SettingIndex > other.SettingIndex)
return 1;
else if (this.SettingIndex < other.SettingIndex)
return -1;
else
return 0;
}
}
}
private List<SettingCompareMatrix> GeneratePivotData()
{
return new List<SettingCompareMatrix>()
{
new SettingCompareMatrix() { SettingGroupIndex = 0, SettingGroup="Store", SettingIndex=0, SettingName="Create Store", Name="Store 1", Value="True" },
new SettingCompareMatrix() { SettingGroupIndex = 0, SettingGroup="Store", SettingIndex=0, SettingName="Create Store", Name="Store 2", Value="False" },
new SettingCompareMatrix() { SettingGroupIndex = 0, SettingGroup="Store", SettingIndex=1, SettingName="Information", Name="Store 1", Value="Modify" },
new SettingCompareMatrix() { SettingGroupIndex = 0, SettingGroup="Store", SettingIndex=1, SettingName="Information", Name="Store 2", Value="Display" },
new SettingCompareMatrix() { SettingGroupIndex = 1, SettingGroup="Categories", SettingIndex=0, SettingName="Category", Name="Store 1", Value="Add" },
new SettingCompareMatrix() { SettingGroupIndex = 1, SettingGroup="Categories", SettingIndex=0, SettingName="Category", Name="Store 2", Value="Display" },
new SettingCompareMatrix() { SettingGroupIndex = 2, SettingGroup="Supplier", SettingIndex=0, SettingName="Information", Name="Store 1", Value="Display" },
new SettingCompareMatrix() { SettingGroupIndex = 2, SettingGroup="Supplier", SettingIndex=0, SettingName="Information", Name="Store 2", Value="Add" },
new SettingCompareMatrix() { SettingGroupIndex = 2, SettingGroup="Supplier", SettingIndex=1, SettingName="Settings Price Matrix", Name="Store 1", Value="Add" },
new SettingCompareMatrix() { SettingGroupIndex = 2, SettingGroup="Supplier", SettingIndex=1, SettingName="Settings Price Matrix", Name="Store 2", Value="Display" },
};
}
<pivot:LocalDataSourceProvider x:Key="LocalDataProvider" AggregatesPosition="Rows" >
<pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="SettingGroup" />
<pivot:PropertyGroupDescription PropertyName="SettingName" />
</pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="Name" />
</pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:LocalDataSourceProvider.AggregateDescriptions>
<pivot:PropertyAggregateDescription PropertyName="Value"/>
</pivot:LocalDataSourceProvider.AggregateDescriptions>
</pivot:LocalDataSourceProvider>
<pivot:RadPivotGrid Grid.Row="1" DataProvider="{StaticResource LocalDataProvider}"
ColumnGrandTotalsPosition="None" ColumnSubTotalsPosition="None"
RowGrandTotalsPosition="None" RowSubTotalsPosition="None" />
This is my first attempt with this grid. One of my columns contains datetime values. Because I want the button for the editor to always be visible, I created a CellTemplate as I saw mentioned in the forum. This works fine. However, once I'm in the editor, nothing will close or hide the editor, even if I click on another cell or control or hit Escape.
<telerik:GridViewDataColumn DataMemberBinding="{Binding Timestamp}" Width="200"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <telerik:RadDatePicker SelectedDate="{Binding Timestamp}" IsTooltipEnabled="False"/> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate></telerik:GridViewDataColumn>Hi
I want to know if it is possible to activate a function who insert a floating text block inside my document like Word ?
If it doesn't, does you plan development of this function in the future ?

With version 2016 Q3 SP1 a RadTreeViewItem's Header is being emptied when I initiate editig with radTreeView.SelectedContainer.BeginEdit(). According to other posts in this forum this seems to be a previously known and corrected issue. Obviously it is back again.
Is there anything I can do to work around this issue?
Thanks
Michael


Hi,
I have two RadSplitContainers that are DockedLeft and a DocumentHost which internally contains another RadSplitContainer in my window.
I'm trying the set the default widths of the two RadSplitContainers to occupy 20% and 30% of the MainWindow width and the rest 50% to be occupied by the DocumentHost.
To achieve this the two RadSplitContainers Widths and binded to the parent window width and using a converter the widths are split.
Problem: The converter is not invoked for these two docked RadSplitContainers that are outside the DocumentHost.
However, the converter is invoked for the RadSplitContainer in DocumentHost.
Attaching the screenshot. The docked RadSplitContainers have default widths, ideally they should occupy 20% and 30% of the window and they should maintain the same when the window is restored or resized.
Version used: 2014.3.1117.45
Below is the code sample:
xaml:
<Window x:Class="DockingWPF.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:dockingWpf="clr-namespace:DockingWPF"
Title="MainWindow" WindowState="Maximized" >
<Window.Resources>
<dockingWpf:WidthRatioConverter x:Key="WidthRatioConverter"/>
</Window.Resources>
<Grid>
<telerik:RadDocking>
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup>
<telerik:RadPane Header="Canvas" CanFloat="False" CanUserPin="False">
<Grid Background="Aqua">
</Grid>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical" Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ActualWidth, Converter={StaticResource WidthRatioConverter}, ConverterParameter=TempBrowser, Mode=OneWay}">
<telerik:RadPaneGroup x:Name="ApplicationPanesGroup" >
<telerik:RadPane Header="TemplateBrowser" CanFloat="False" CanDockInDocumentHost="False" IsPinned="True" CanUserClose="False" ScrollViewer.HorizontalScrollBarVisibility="Auto" />
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedLeft" Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ActualWidth, Converter={StaticResource WidthRatioConverter}, ConverterParameter=AppBrowser, Mode=OneWay}">
<telerik:RadPaneGroup>
<telerik:RadPane Header="ApplicationTree" IsPinned="True" CanUserClose="False"/>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
</Grid>
</Window>
Converter:
public class WidthRatioConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
var param = parameter as string;
if (!string.IsNullOrEmpty(param))
{
switch (param)
{
case "TempBrowser":
return ((double) value/5);
case "AppBrowser":
return ((double) value/3);
}
}
return null;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return null;
}
}