I'm having some trouble binding to a dynamically created generic collection, I don't get the expanding icon for any rows, even though I double and triple checked the bindings, but my setup is a bit complex. This behavior happens when I'm creating the columns manually (GridViewDataColumn), when I use autogenerated columns the behavior is a bit different, but still not working.
The type of the collection is:
MyDataSourceGeneric<ElementType> :
IQueryable<ElementType>, IQueryable, IEnumerable, IEnumerable<ElementType>,
IOrderedQueryable<ElementType>, IOrderedQueryable
where ElementType will be a type generated at runtime which inherits a MyRecordBase, so instances of this collection are created by:
Type recordType = /*... generate type that inherits MyRecordBase .... */ ;
var genericDs = typeof(MyDataSourceGeneric<>);
var dsType = genericDs.MakeGenericType(recordType);
var queriable = (IQueryable)Activator.CreateInstance( /*.....*/ );
And this queriable is used as datasource of the TreeListView.
I experimented with 4 approaches to expose the Children, implemented as a property in the generated recordType: coerce to object, coerce to IEnumerable, coerce to IEnumerable<ElementType> and return a plain MyDataSourceGeneric<ElementType>; due to the fact that the ElementType is generated at runtime, the typed-collection properties need to be generated at runtime also.
Hi,
When making a large diagram it's nice to have the RadDiagram scroll along when you drag a shape or a connector.
I'm not really sure what the best approach is here though, I know how to implement it with a regular ScrollView but this is slightly different.
I found some information here: here and here regarding autoscrolling but when I apply it to a diagram like this:
<
telerik:RadDiagram
Grid.Column
=
"1"
Grid.Row
=
"1"
x:Name
=
"diagram"
ScrollViewer.HorizontalScrollBarVisibility
=
"Visible"
ScrollViewer.VerticalScrollBarVisibility
=
"Visible"
RouteConnections
=
"True"
ConnectionRoundedCorners
=
"True"
telerik:ScrollingSettingsBehavior.IsEnabled
=
"True"
/>
The following error appears in VS:
Error Value cannot be null.
Parameter name: scrollingService
Can autoscroll be enabled for RadDiagrams? Or am I doing something wrong here.
Hey,
Im using the RadScheduleView Control with different ViewDefinitions as below.
<
telerik:RadScheduleView.ViewDefinitions
>
<
telerik:DayViewDefinition
Orientation
=
"Horizontal"
GroupHeaderDateStringFormat
=
"{}{0: dddd dd/MMM}"
GroupFilter
=
"{Binding GroupFilter}"
AppointmentFilter
=
"{Binding AppointmentsFilter}"
/>
<
telerik:TimelineViewDefinition
Title
=
"Week"
VisibleDays
=
"7"
GroupFilter
=
"{Binding GroupFilter}"
TimerulerMajorTickStringFormat
=
"{}{00:%H:mm}"
AppointmentFilter
=
"{Binding AppointmentsFilter}"
LargeChangeInterval
=
"7d"
TimerulerGroupStringFormat
=
"{}{0: dddd dd/MMM}"
StretchAppointments
=
"True"
StretchGroupHeaders
=
"True"
/>
<
telerik:TimelineViewDefinition
Title
=
"Month"
VisibleDays
=
"30"
GroupFilter
=
"{Binding GroupFilter}"
AppointmentFilter
=
"{Binding AppointmentsFilter}"
TimerulerGroupStringFormat
=
"{}{0: dd/MMM}"
TimerulerMajorTickStringFormat
=
"{}{00:%H:mm}"
LargeChangeInterval
=
"1m"
/>
</
telerik:RadScheduleView.ViewDefinitions
>
If i start my Programm on a monitor with high resolution there is a white space on the right side of the scheduler in each ViewDefinition ( see attached image ).
Is it possible to stretch the ScheduleView over the complete Monitor and get rid of this white field?
Thanks
Thomas
I saw in your release notes an announcement you sped up the RichTextBox load time. It is definitely a pain pain in the Q1 version, but I haven't tried the latest.
Could you provide the metrics on how much faster you sped up the load time? A client is using about 8 text entry fields on a single form, so each controls load time really affects the load process.
Thanks,
Brian
I would like to go through every cell in a RadGridView and see if its value is equal to a string.
It should work like a find tool (ctrl + f). The user type something and I try to find what was typed in the cells. Is there anyway of doing this? Or a easiest way?
if(text == cell.value)
{
//do whatever I want
}
I have problem with the RadGridView, and my own ObservableDataRow. The grid throws an exception if i click on the filter symbol in a grid. This problem occures if i bind to the following object:
RadObservableCollection<ObservableDataRow> items =
new
RadObservableCollection<ObservableDataRow>();
// Items will be filled with instances of ObservableDataRow instances...
The error does NOT occure if i declare the collection like this:
RadObservableCollection<DataRow> items =
new
RadObservableCollection<DataRow>();
But i also fill the list with instances of ObservableDataRow.
The exception: No generic method 'Select' for the type 'System.Linq-Quieryable' is with the provided type argument and arguments compatible. No type argument should be provided, if the method is not generic. (Translated from a german error message - may not the same as thrown in english.)
Using RadObservableCollection<DataRow> solved the problem, but there must be a bug.
Or did i some thing else wrong?
As an additional information, i have also created my own ObservableDataTable for creating instances of ObservableDataRow.
Thank you.
How can I control the size of the geometry in the RadGeometryButton. I'm using Syncfusion Metro Studio 3 for my assets and the geometries do not fit inside the circle. See attached screenshots for clarification.
I have an extremely simple layout: A RadDocking control that contains a single RadPane. The pane will always be visible, never floated, etc. Within that are some controls, including a ScheduleView. Like many others have asked, I want to detect when the control closed. I can see the PreviewClose event fire if I allow the pane itself to close. I also see the Close event fire if the pane is closed.
However, if I close the RadDocking control, the Close event never gets called. What am I missing? I have spent about four hours now tracking down something that should be extremely simple. If I have edited the content of my control, and click the 'x' on the RadDocking control, throw up a message warning the user of unsaved changes. If the user says 'OK', then save the form and close. If they say 'Cancel', stop the process.
For the life of me I don't see where to hook into events (OnStateChanged is the only event I see firing when the RadDocking closes, and I can delegate the event, but the RadDocking still closes).
<telerik:RadDocking HasDocumentHost="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer IsTabStop="True" Orientation="Vertical" x:Name="SplitContainer">
<telerik:RadPaneGroup HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<telerik:RadPane CanFloat="False" CanUserPin="False" CanUserClose="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsTabStop="True" IsDragDisabled="True">
....controls ...
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
Thoughts?
Sean~