Telerik Forums
UI for WPF Forum
1 answer
54 views
Hi, I've read of how to add customizable pins with different colors, but it's possible with different images?
thank you
Andrey
Telerik team
 answered on 10 Aug 2011
4 answers
94 views
Using the latest internal build. I'm confused about the order in which the Custom provider loads the tile images. I assumed it would be the same way the map loads the map tiles, from OSM, for example. The tiles in view are loaded first. Then when you pan over to a new area, the new tiles are loaded. Instead what I'm seeing is that map control is loading all the tiles in sequential order and it doesn't show anything until all the tiles are loaded. It's even loading all the tiles when nothing is in view. So there can be a significant delay before any data shows up. Am I doing something wrong or is this an issue?
Andrey
Telerik team
 answered on 10 Aug 2011
5 answers
120 views
Hi Guys,

I have a WPF app which has a RadMap with 2 layers. The first layer is a dynamic layer which contains lots of MapPolygons loaded from shape files with the background colour set according to the metadata in the shape file. The second layer is an information layer with lots of MapPinPoints which sit on top of the shapes in the dynamic layer.

This app is going onto a ruggadised tablet and will be used in direct sunlight, and as such the users would like a good contrast between the text on the MapPinPoints and the MapPolygons they sit on top of. I've written the code to change the fonts and this works really well when I can get it to execute. The problem I have is trying to figure out when the dynamic layer has finished rendering so that it's .Items property actually has something in it and I can check which polygons a pinpoint falls into.
 
I have tried hooking into various events such as LayoutUpdated, SizeChanged, etc.. I even created my own event on the MapDynamicSource to notify me when the ItemRequest is complete, but the Items collection is still empty at this point...

Both layers change fairly regularly and so the Loaded event doesn't help me either because it only fires once.

If you need any more info please let me know, otherwise any help would be really appreciated.

Thanks,
Stuart
Andrey
Telerik team
 answered on 10 Aug 2011
1 answer
56 views
I'm using the latest version of the WPF controls and am trying to do a RadGridview->RadGridview drag and drop.  Unfortunately, all of the examples I've been able to find seem to be for a much older version of the Telerik tools, and contain references to properties that don't exist in the version I'm using.

Does anyone have a complete example (C#, ideally, but anything will do) that uses the current release of the Telerik controls showing how to drag and drop between two RadGridview controls?  Thanks.
Dimitrina
Telerik team
 answered on 10 Aug 2011
0 answers
116 views
Hi,

I would like to detect mouse click on each row in RadGridView. Here is my code sample:

private void ContactsGridViewRowLoaded(object sender, RowLoadedEventArgs e)
        {
            e.Row.MouseLeftButtonUp += delegate(object sender1, MouseButtonEventArgs e1)
                                             {
                                                 MessageBox.Show("click!");
                                             };
        }

The problem is that this event is never fired. I can change event to MouseRightButtonUp or even MouseEnter and it all works fine. Why i cannot subscribe to MouseLeftButtonUp?
Dan
Top achievements
Rank 1
 asked on 10 Aug 2011
1 answer
105 views

Hi,

I am working on WPF.\ and we are using telerik controls in our project.

we are implementing Expand all rows functionalaity in Telerik radgridview . In our radgridview few rows has childgrid and if we are using expandallhierarchyitems() method then it is expanding all rows. My requirment is when i click on expand all button then it shoud expand only those rows which have child grid control.

Vanya Pavlova
Telerik team
 answered on 10 Aug 2011
4 answers
795 views
Hello,

I am using the MVVM pattern.  I have a GridView on a usercontrol that has the datacontext set to a viewmodel.  The viewmodel contains an ObservableCollection of model objects that are bound to the ItemsSource of the GridView.  My GridViewDataColumn.Header properties are bound to some properties in the viewmodel and everything works as expected.  The Header values are genrated dynamically and dispalyed properly through the binding.  When I add a DataMemberBinding to a GridViewDataColumn and bind it to a property from the object collection, I get unexpected Header value.  The Header will display the value "SourceName".  This only happens when the SourceName property exists on the model object and a successful binding is created for the DataMemberBinding property.  If I put in a value such as SourceNameTest, the Header is displayed correctly.  Here is a snippet of one of the columns in question.  As you can see it is a very simple column definition.  Could you please help me understand if there is way to accomplish what I am trying to do.

<telerik:GridViewDataColumn DataMemberBinding="{Binding SourceName}" Header="{Binding SourceObjectHeader}" >
Thanks,

Jason

 

 

 

 

Jason
Top achievements
Rank 1
 answered on 10 Aug 2011
1 answer
127 views
I have had installed the trial version of your WPF controls and then installed the licensed version but I am still getting the Trial message box.Is there anything I can do in order to get rid of this message box?
Andrey
Telerik team
 answered on 10 Aug 2011
8 answers
135 views
I'm using Entity Framework 4.0 and have a "Players" class.  Bone-stock, nothing added or changed, just as VS2010 generated it, which means it's an ObjectSet.

If, in my _Loaded event I do this:
  • CollectionViewSource myCollectionViewSource = (CollectionViewSource)this.Resources["playersViewSource"];
  • myCollectionViewSource.Source = this.DbContext.Players;

I can click to add a new row, update existing items, etc.  I can't click on row headers to sort them, though.


If I do this:
  • myCollectionViewSource.Source = this.DbContext.Players.ToList();

then I can sort/and add a new row, but dbContext.SaveChanges() doesn't have any effect.

I'm new to both EF and the RadGridView, so I'm not sure what the problem is.  I'd like to be able to both update and sort.  How do I do this?

Thanks.

Vlad
Telerik team
 answered on 10 Aug 2011
2 answers
136 views
Hello,

I was wondering if the WPF GridView has the same pinning functionality as the WinForms gridview documented here: http://www.telerik.com/help/winforms/gridview-rows-pinned-rows.html

I didn't see anything in the WPF samples and the WinForms code doesn't work for WPF.


Thanks,
Derek
Derek
Top achievements
Rank 1
 answered on 09 Aug 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?