Telerik Forums
UI for WPF Forum
1 answer
456 views

Hi,

Currently we are dealing with a Problem of a blocking UI-Thread during the Initial dataload of our RadGridView.
Instead of the blocking UI-Thread we would expect the "running" BusyIndicator!
(During different Grid-Opertions (like Paging, Sorting,...) the BusyIndicator is displayed correctly).

We are using Entity-Framework and since we are having a really complex query-logic we are working with IQueryable Sources.
We have tried to set the data through Dependency-Property-Binding and also tried it manually.
As we found in the web the IQueryable-Source should be the best solution for large amount of data - isn't it?

Here are our attempts:
1) Using an IQueryable Dependency-Property

public static readonly DependencyProperty QueryableSourceProperty =

DependencyProperty.Register("QueryableSource", typeof(IQueryable<Data.TransactionHistory>), typeof(MainWindow), new PropertyMetadata(default(IQueryable<Data.SalesOrderDetail>)));


..
// different conditions... for examp

qeryableSource = queryableSource.OrderBy(o => o.TransactionType);

 

..

ItemsSource="{Binding QueryableSource, ElementName=window}"

2) Setting the ItemsSource-Property of the grid manuelly to our IQueryable

this.radGridElement.ItemsSource = queryableSource;

3) Run all operations asynchronous with Task and Dispatcher

new Task(() => { this.loadData2(); }).Start();


...
Dispatcher.BeginInvoke(
new Action(() => { this.QueryableSource = queryableSource; }));
...

All these samples didn't work as expected.
What's the best solution to bind the Grid on an IQueryable source, so that everything works asynchronously and the BusyIndicator is displayed during the loading-time???

Hopefully you can provide us with a solution...
I can provide you a sample .net application if you send me an upload-link...

Best regards
 Jürgen

Vera
Telerik team
 answered on 08 Jul 2013
2 answers
143 views
Hi everybody,
how can I retrieve the documentposition of a certain Span (not the current where the caret is in). The background is: I need to move the caret to a specific Span when pushing the FastForward / FastRewind button of a microphone to easily dictat in a RadRichTextBox.

Here is what I have yet:

List<NamedPermissionRangeStart> allPermissionRangeStarts = Document.EnumerateChildrenOfType<NamedPermissionRangeStart>().SkipWhile(a => a.Type != "Text").ToList();
            NamedPermissionRangeStart cur = (NamedPermissionRangeStart)Document.CaretPosition.GetCurrentSpanBox().AssociatedSpan.PreviousSibling;
 
            for (int i = 0; i < allPermissionRangeStarts.Count; i++)
            {
                if (allPermissionRangeStarts[i].InternalKey == cur.InternalKey)
                {
                    Document.CaretPosition.MoveToPosition(((Span)allPermissionRangeStarts[i + 1].NextSibling).?????)
                    break;
                }
            }


I hoped to find something that gives me the DocumentPosition where the "???" are.
Is this approach the right one?

Thanks in advance
Jo
JoRoSch
Top achievements
Rank 1
 answered on 08 Jul 2013
3 answers
224 views
How do you hide the header of the expander control, I'm using a checkbox to control it, or how do you change the arrow to be a checkbox.

thanks,

Pablo.
Petar Mladenov
Telerik team
 answered on 08 Jul 2013
7 answers
157 views
Hi Telerik, is it possible to show tree's line in the RadTreeListView like RadTreeView. There is a IsLineEnabled property in RadTreeView, but I can't see it in RadTreeListView.

Thanks,
Cheau
Dimitrina
Telerik team
 answered on 08 Jul 2013
3 answers
131 views
Hello Telerik Team,
I would like to ask you whether it's possible to make auto-hidden panes behave just like in Visual Studio (2010).

By default, when the auto-hidden RadPane is expanded I cannot drag it by clicking on the header and moving the mouse.
First I have to click the pin/unpin button in the RadPane header.

In Visual Studio, when the auto-hidden pane is expanded clicking just once on the pane header and moving mouse allows to drag the pane. Clicking and moving inside the body of the pane just sets focus, does do allow to drag.

As I am just starting out with Rad WPF controls I would like to ask whether replicating this behaviour is possible and if yes could you please demonstrate it on a very simple project? I would be very grateful. If a demonstration is not possible, could you please at least point me in the right direction?

Thank you very much in advance.

Best Regards,
Karol Hrdina
Vladi
Telerik team
 answered on 08 Jul 2013
2 answers
104 views
Is it possible to have more than one indented Column ?

I want to Indent more than one Column at the same structure.
e.g. the main indent Colum with the indent-indicator would be the Article Short Description (Editable), but when the Hirarchy is opened i would also indent the Article-Number Column to give the User a better look at the structure ?

Any Ideas ?

Thilo
Thilo
Top achievements
Rank 1
Iron
 answered on 08 Jul 2013
0 answers
52 views
1 answer
75 views
How can i Set the Width of the RowIndicatorColumn ?

Thanks for an answer.

Thilo
Vanya Pavlova
Telerik team
 answered on 08 Jul 2013
1 answer
102 views
Hello,

I have been given a requirement which involes me displaying a lot of aggregate data - the fields for this will be different depending on what the user has selected to view.

This all displays fine. What I also need to do is optionally exclude (or include) selected items in the grid from the aggregate results.
After a search of the forums and my favourite search engine I understand that row / cell selection is still not possible OOTB? Is there a possible workaround to enable me to select cells? Or any other way to exclude some values from the aggregate results?

Many thanks,
Alex
Rosen Vladimirov
Telerik team
 answered on 08 Jul 2013
4 answers
104 views
Hello,

I have a treeview that initially loaded and populated all nodes. Obivously not good for scaling, so I've moved towards serverSide nodeExpand onDemand. This works nice, but I've noticed my nodeClick isn't firing now.

There is a plus sign on the node, can I not have nodeExpand be fired only when that + is clicked? And if the text/label is clicked have nodeClick fire?

Charles
Top achievements
Rank 1
 answered on 05 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?