Hello,
when I bind the TaskSource of the RadGanttView (WPF) to a CompositeCollection I get the Exception "Object of Type System.Windows.Data.CollectionContainer cannot be converted to Type IGanttTask". With the RadTreeView it works. All Items in the Collections implements IGanttTask.
<
CompositeCollection
x:Key
=
"ProjectChildCollection"
><
br
>
<
CollectionContainer
Collection
=
"{Binding DataContext.SelectedProject.ProjectActions, Source={x:Reference control}}"
/><
br
>
<
CollectionContainer
Collection
=
"{Binding DataContext.SelectedProject.Tasks, Source={x:Reference control}}"
/><
br
>
<
CollectionContainer
Collection
=
"{Binding DataContext.SelectedProject.ResourceBookings, Source={x:Reference control}}"
/><
br
>
</
CompositeCollection
>
TasksSource="{Binding Source={StaticResource ProjectChildCollection}}"
Hello,
I'm using RadTabControl with TabStripPlacement="Left"
In the past the RadTabItems were shown on the left side from top to bottom. Now they are placed from bottom to top. When changing the code to TabStripPlacement="Right" they are listed from top to bottom - like I want it happen on the left side.
I think I haven't changed anything. May it be a change in one of the two last versions?
Regards,
Raul
Hello!
I have started to use the RadLayoutControl and it works great. However I am wondering if it is possible to save the layout after the user has made some changes to it?
Hi all,
I am working on a WPF application using Telerik UI for Silverlight (http://demos.telerik.com/silverlight/#RichTextBox/TelerikEditor)
and coded in C# .NET.
I took the code of the previous link and set it
up to fit my needs.
I am now facing to an issue : How to directly load by
coding a .rtf document into a RadRichTextBox ?
I tried two ways :
RtfFormatProvider provider = new RtfFormatProvider();
RadDocument = null;
using (FileStream stream = new FileStream(FileName,
FileMode.Open))
{
document = provider.Import(stream);
}
DocumentFragment docFrag = new DocumentFragment(document);
radRichTextBox.InsertFragment(docFrag);
-> But that way causes an error because the “Import” method returns a
RadFlowDocument whereas I am expecting a RadDocument.
RtfFormatProvider provider = new RtfFormatProvider();
Telerik.Windows.Documents.Model.Section section = new Telerik.Windows.Documents.Model.Section();
Telerik.Windows.Documents.Model.Paragraph paragraph = new
Telerik.Windows.Documents.Model.Paragraph();
string line;
using (StreamReader stream = new StreamReader(FileName))
{
while ((line = stream.ReadLine()) != null)
{
Telerik.Windows.Documents.Model.Span span = new
Telerik.Windows.Documents.Model.Span(line);
try
{
paragraph.Inlines.Add(span);
}
catch(Exception e)
{
string x = e.StackTrace;
}
}
}
section.Blocks.Add(paragraph);
radRichTextBox.Document.Sections.Add(section);
-> There, even if there is no error, the problem is that nothing is shown
in the editor.
The most strange is that, when I run the program without trying to load any document at the opening, the window opens perfectly and all the buttons react with the right behavior (see attachment “RadRichTextBoxEditor.png”) but I am not allowed to load a .rtf document whereas it is allowed on the link provided at the top of this topic. (see attachment “notSupportedRTF.png”)
Any help or tip will be much appreciated :)
Dear team,
I have a customized column that constains my own usercontrol inside. The column works perfectly but when we sort by another column, this column don't move.
This is my column definition:
<telerik:GridViewDataColumn
Width="*"
Header="{Binding Source={StaticResource appResx}, Path=ep_ClearOpeningRange}"
HeaderTextAlignment="Center"
IsReadOnly="False">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<StackPanel>
<TextBox Text="{Binding ModelOpeningSill.OpeningType.ProductAttributeValueCode}" />
<my:MultiRangeSlider
Id="{Binding ApplicationRangeId}"
Maximum="3000"
Minimum="600"
PropertyChangedCommand="{Binding DataContext.ApplicationRangeChangedCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ModelDetailView}}}"
Thumb1="{Binding CertifiedMinimumClearOpening, Mode=TwoWay}"
Thumb2="{Binding CertifiedMaximumClearOpening, Mode=TwoWay}"
Thumb3="{Binding RecommendedMinimumClearOpening, Mode=TwoWay}"
Thumb4="{Binding RecommendedMaximumClearOpening, Mode=TwoWay}"
TickFrequency="50" />
</StackPanel>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
My usercontrol is a multirange slider called: <my:MultiRangeSlider>. The textbox inside the StackPanel is sorted correctly but my usercontrol is totally static.
Attached captions maybe can help to understand my problem. In these captions the textbox inside the stackpanel was hidden (only was created for test).
Thanks in advance!
Hi,
My child nodes seem to have a "mystery" column in front of the actual item, and you can only see it if you click on it. If you click on it, the items itself de-selects, and the "mystery column" in front of it becomes active for that row. How do I blend/merge/remove the blank column in front of all my child node rows ?
Thanks,
Barry