Hello,
it is possible to collapse the content area of the RadOutlookBar?
I want to show the item list at the start of the application. At this moment any item is selected. Only when the user selects an item then the content should showed on the content area.
Thank for tipps,
Richrad
I have the following xaml for a button in the column header of my gridview.
<
telerik:GridViewDataColumn
Width
=
"auto"
>
<
telerik:GridViewDataColumn.Header
>
<
Button
Content
=
"Add New"
x:Name
=
"cmdAddNew"
Command="{Binding DataContext.AddCommand,
RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type UserControl}}}"
Margin
=
"0,5,5,5"
/>
</
telerik:GridViewDataColumn.Header
>
</
telerik:GridViewDataColumn
>
When I run the app I get the following error:
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.UserControl', AncestorLevel='1''. BindingExpression:Path=DataContext.AddCommand; DataItem=null; target element is 'Button' (Name='cmdAddNew'); target property is 'Command' (type 'ICommand')
I can't make heads or tails of what is wrong.
The really strange part is if I add a click handler to my view and call:
var vm = (TechniquesViewModel) this.DataContext;
vm.AddCommand.Execute(null);
Everything works perfect.
What am I missing? I know I shouldn't be putting that code in my view, but I can't make it work with the xaml I have.
Thanks ... Ed
Hi,
We have a few classes that inherits from our CustomShape class that inherits from RadDiagramShape, we also have a CustomConnector (inherits from RadDiagramConnector) class and we would like to have our ports always visible, we did try to edit the default template of RadDiagramShape and change the visibility to visible but it is not working.
Would you be able to tell us to change the visibility of the ports to make them visible even when the shape is not clicked?
Thanks!
<
telerik:RadBusyIndicator
IsIndeterminate
=
"True"
Grid.Row
=
"1"
Grid.ColumnSpan
=
"2"
IsBusy
=
"False"
x:Name
=
"MainIndicator"
>
<
Grid
x:Name
=
"grdChart"
>
<
WindowsFormsHost
Name
=
"host"
Background
=
"Black"
>
</
WindowsFormsHost
>
</
Grid
>
</
telerik:RadBusyIndicator
>
public void ActiveXControlDataLoaded()
{
this.Dispatcher.BeginInvoke(new System.Action(() =>
{
MainIndicator.IsBusy = true;
}));
}
The above XAML code is showing WindowsFormsHost element that is used to host an ActiveX control.
ActiveXControlDataLoaded method will be fired by the ActiveX control whenever it has a new data record.
My problem is RadBusyIndicator is always getting behind WindowsFormsHost element when the later UI is loaded. I tried to disable WindowsFormsHost and Its ActiveX control child but RadBusyIndicator keeps disappearing. Is there any way to show RadBusyIndicator on top of WindowsFormsHost ?
Thanks in advance.
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 ?