Telerik Forums
UI for WPF Forum
1 answer
149 views
I've built a WPF application which uses the RadGridView control on a number of different windows.  The point of these windows is to query the database for data and display the results.

As this is a WPF application and not a Web application, we feel that the application should not page the data, which can change in the background while the user is viewing a page of data.  Ideally, the control should work in the following manner for very large data sets (above 100,000 rows):

1. The control retrieves the IDs of all and all matching rows from the database and caches them.

2. Using the cached IDs, the control retrieves a reasonably sized subset of the data to display for the user, say 1,000 rows. 

3. If the user scrolls to an area of the result set where the data has not yet been retrieved, the control retrieves more data, again a resasonable sized subset.

Working in this manner prevents the program from using huge amounts of memory and time, as it would if the program just retrieved all of the data at once.

Is there a way to implement this type of functionality with the RadGridView control?

Thanks

Tony
Vlad
Telerik team
 answered on 03 Oct 2011
1 answer
156 views
Hi,

I've bound my model's IsSelected property to the TreeListViewRow's IsSelected property. The problem is that if I have a long list of items, the user can select the first, then scroll down to the bottom and Shift+Click the last to select them all. But only some of my model objects get their IsSelected flag set. It's mostly just the model objects that are visible. I suspect the problem is caused by virtualization being turned on. There's no TreeListViewRow for most of the items, so their IsSelected flags don't get set.

So how do I get my IsSelected flag set for virtualized rows?

My current binding is:
<Style TargetType="{x:Type telerik:TreeListViewRow">
 
    <Setter Property="IsSelected" Value="{Binding Path=IsSelected, Mode=TwoWay}"/>
 
</Style>

Thanks,
   Bob
Maya
Telerik team
 answered on 03 Oct 2011
4 answers
152 views
Hi,

I have a requirement to have the focus on RadMap when the form is loaded.I tried both:

FocusManager.FocusedElement="{Binding ElementName=radMap1}"
and
private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            radMap1.Focusable = true;
            radMap1.Focus();
        }

But with no luck.I need to use the mouse wheel to move to different areas in the map.This is not working until i click once on the map.The reason i want to avoid clicking on the map is that I am drawing a MapPolygon by combining each click point on the map.

Thanks in advance.
DMC Helpdesk
Top achievements
Rank 1
 answered on 02 Oct 2011
2 answers
137 views
Hi again, another radGridView question for the experts :)

I have a radGridView that has itemsource bound to a datatable, and I have xaml & code that successfully performs a cell editing template swap based on certain events.  The columns are automatically generated, and the two-way-bound datasource is all text fields. The cell editing templates are either text, or datetime (if the datetime template is turned on, then that cell uses a radDateTimeView object).

Everything works great, except that when the radDateTime templated cells go to commitEdit, nothing in the itemSource gets updated, I beleive do to the types being incorrect.

What I would like to do, is go ahead and override the telerik CommitEdit() function, to make the data selected in the radGridView object match the allowable types in the itemsource of the datagrid, namely making it text not a date object at this point, and then call your telerik commit edit afterwords. For whatever reason, visual studio is not recognizing 'base.CommitEdit' or properly overriding it, is there any examples of overridign this function and also would you recommend a different approach to converting this data?

Thanks again.

-Chris

Chris
Top achievements
Rank 1
 answered on 30 Sep 2011
4 answers
92 views
We are using a GridView that does not auto generate columns.
When the GridViewDataColumns are created, a custom CellTemplateSelector and CellStyleSelector are applied.
These work fine - until a Filter is applied from the Header.
After the Filter is applied, it doesn't appear that our custom Selectors are applied.
Is there a way to force that to happen?  (i.e. force SelectTemplate() and SelectStyle() to be called)

Thank you.
Charlie
Top achievements
Rank 2
 answered on 30 Sep 2011
3 answers
144 views
How do I style the RichTextBox popups?  I set the theme on the RichTextBox to be Windows7, but the Find/Replace dialog buttons are not Windows7 themed.

Also, can I control where the popup dialogs appear?  They cover the text that I want the user to see.

Thanks!
Iva Toteva
Telerik team
 answered on 30 Sep 2011
1 answer
71 views
Hi,

I am implementing a charting series that shows forcasted charts and their historical information. So I wanted to ask whether I could use the same line series and change the path to a dotted line when I wanted to show projected information. Is it possible by keeping in a flag in the data structure and then using that flag in the data trigger to draw the path as a dotted line instead of a solid line.

Right now my approach is to keep a pair of series in my collection - one for historical and one projected. If I have ten comparisons, I would simply keep 20 series in my collection. Would it be possible to avoid this situation and implement an optimized design as I have to cater to this approach since I wasn't able to work around the fact that we could have only one type of path per series.
Opinions on this would be helpful and I would appreciate a quick response.

Thanks,
Farhan
Evgenia
Telerik team
 answered on 30 Sep 2011
5 answers
551 views
Hello everyone,

Quite new to all of this, so I'm hoping someone can nudge me in the right direction.  I'm trying to load a KML file, but I can't seem to get my head around the URI part.  Can someone provide me with an idiot-proof example?  For instance, if I have a project called "Map_Test" and within that project I have a folder called "Recources" and within that folder I have a file called "doc.kml", what would be the uri?

This is what I tried and I get the message that "Cannot locate resource 'Map_Test;resources/doc.kml'.

Any help is greatly appreciated.  Here is my code:

Private Sub LoadKMLData()
    Dim streamResource As StreamResourceInfo = Application.GetResourceStream(New Uri("pack://application:,,,/Map_Test;Resources/doc.kml", UriKind.RelativeOrAbsolute))
    Dim elements As List(Of FrameworkElement) = KmlReader.Read(streamResource.Stream)
    For Each element As FrameworkElement In elements
        Me.informationLayer.Items.Add(element)
    Next element
End Sub





Also tried this with no luck either.  Gives me a "Cannot locate resouce 'doc.kml':





Dim
streamResource As StreamResourceInfo = Application.GetResourceStream(New Uri("/Map_Test;component/Resources/doc.kml", UriKind.RelativeOrAbsolute))
' Dim streamResource As StreamResourceInfo = Application.GetResourceStream(New Uri("doc.kml", UriKind.RelativeOrAbsolute))
Dim elements As List(Of FrameworkElement) = KmlReader.Read(streamResource.Stream)
For Each element As FrameworkElement In elements
    Me.informationLayer.Items.Add(element)
Next element


Steve
Top achievements
Rank 1
 answered on 30 Sep 2011
3 answers
93 views
Hi there,

I need to set a Dictionnary as ItemSource (with DisplayMemberPath et SelectedValueMemberPath setted as done with the regular RadComboBox), but the RadCombox.SelectedValue is never commited to the DataItem. Is that a bug ?

thanks, greg

Edit : Further investigations have shown that the value is commited when the Radcombobox editor looses focus and disapears. FurtherMore, the commited value is the one that was selected one selection step. It means that if i start with a random value and then I select one item in the grid combobox hoping for changing its value, the committed value is the one that was selected at first. If I try to change the selected Item three times in a row without living the editor, the commited value is the second one and not the third as expected.

I am missing something about GridViewComboBoxColumn ?
How could I force the value to be commited for each selection ?
Maya
Telerik team
 answered on 30 Sep 2011
1 answer
104 views
Hello,

I'd like to have show a Tooltip with the header-text on the icon of a RadOutlookBarItem when the RadOutlookBar is minimized.
This is exacltly the default behavior of MinimizedOutlookBarItem.

I tried to set the ToolTip Property of the RadOutlookBarItem. Unfortunately in that case the ToolTip also appears within the content area of the item.

I'd be glad if you have any sugesstions on this issue.

Regards
Rainer

Tina Stancheva
Telerik team
 answered on 30 Sep 2011
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?