Telerik Forums
UI for WPF Forum
1 answer
84 views

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.

Stefan
Telerik team
 answered on 29 Sep 2015
5 answers
208 views
  Hello,

I would like to define in a style a default control panel (with a button to export the grid as excel/pdf/etc...) for all my RadGridView, but I can't figure out how to set the ControlPanelItems in a style.
Is this possible ? and if so, how can I do?

Thanks in advance for your help.

Regards
Yoan
Telerik team
 answered on 28 Sep 2015
7 answers
322 views

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.

 

Joost
Top achievements
Rank 1
 answered on 28 Sep 2015
2 answers
86 views

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

Thomas
Top achievements
Rank 1
 answered on 28 Sep 2015
1 answer
107 views

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

Tanya
Telerik team
 answered on 28 Sep 2015
1 answer
695 views

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

}

Martin
Telerik team
 answered on 28 Sep 2015
5 answers
133 views

I have problem with the RadGridView, and my own ObservableDataRowThe 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.

Maya
Telerik team
 answered on 28 Sep 2015
3 answers
95 views
I am using Telerik Test studio with a visual studio plugin to create tests for my wpf application. In my test, I need to input different names and types of data...using "add new - excel" as a data source, is there a specific way to code my test in order to tell the test what data to use as its source? (for example -> I created an excel file with 5 columns of data and 3 rows. "name/id/amount/style/gender". I want to use name/style for the first test and id/gender for the next test. How can I do this?)
Ivaylo
Telerik team
 answered on 28 Sep 2015
4 answers
318 views

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.

Sia
Telerik team
 answered on 25 Sep 2015
8 answers
795 views

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~

Nasko
Telerik team
 answered on 25 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?