Telerik Forums
UI for WPF Forum
1 answer
112 views

Hello,

I am using GridView for data display, in some columns, data is changed dynamiclly, such as "Profit".

And when I grouping, I want to show the sum of Profit in grouping header.

It can show the value when grouping done. But it can't auto update the sum value synchronization with "Profit" column.


How can I do this? Thank you.

Maya
Telerik team
 answered on 15 Dec 2010
1 answer
99 views
I have a GridView, and a Treeview in my application.
The Gridviews itemsource is binded to a wcf method call. After the grid view is populated, the gridview is grouped and the treeview is loaded with count of groupitems.

I wanted to move this to another thread, as it takes some time for the grid to populate. So I added a background worker. But I run into exception
"The calling thread cannot access this object because a different thread owns it."

Why is that so?
Vlad
Telerik team
 answered on 15 Dec 2010
4 answers
104 views
Hi

Please find the attached file.

When I resize the browser window then grid is resized properly.

But when I click maximize button of IE or mozilla then white spot is present as shown in attached file.

Please have a look at the problem.
Shailender
Top achievements
Rank 1
 answered on 15 Dec 2010
4 answers
161 views
I have a RadGridView that has data in it, and I apply a filter to the column with the Filter1 component.

For example, I have a string column type, and I add the filter 'Not Equal To Foo'

All works fine.  I save the filterdescriptors when I close the application.  When I open the application the next time, the data collection is empty, but the saved filter is applied.

Now when I mouse over the column header, the Filter Icon does not appear, even tho the IsFilterable is set to true, and the column has a filter decsriptor that was applied to it.  Neither the Filter or the Sort will work on the columns in the grid.  If I step into the grid and look at the Header Cell, the PropertyType is set to null.

If there is data in the collection, then the filtering and sorting work fine, even if there is no row that matches the value 'Foo'.

It seems that if the ItemsSource data collection is empty, and you apply filter descriptors, the header cells don't get the property type set, and this disables the sorting and filtering.  After adding items to the data collection, they show up in the grid just fine, but no sorting or filtering works on the grid.

We see this problem after updating to the Q2 release, where in the prior release this was working correctly.

Has anybody else worked with adding filter descriptors to the grid's FilterDescriptor collection programmatically had any problems doing this?  
rahma
Top achievements
Rank 1
 answered on 14 Dec 2010
1 answer
256 views
When I right click on a row, I want the row to become selected.  I also want a context menu in which each menu item uses an ICommand.

To get the right click selection, I'm handling the context menu's Opened event, using RadContentMenu's GetClickedElement<GridViewRow>() method, and changing the gridview's SelectedItems appropriately.

The trouble is, the Command's CanExecute method is getting called before the context method's Opened is called.  So my CanExecute is analyzing the previously selected item(s).  At one point I fiddled with things enough to get the CanExecute to also be called after I changed the selection, but the user can see the menu items become enabled/disabled and that's no good.
If CanExecute is being called before the context menu opens, I need to change the selections before CanExecute and Opened are called.

How can I get the behavior I want?

Maybe if there was a PreviewOpen event on the context menu.  Or maybe I can handle a row clicked event, look for right-clicked, and change the selection there?  If so, I don't know how to do that at the moment.

Thanks for any help!
Buzz
Buzz
Top achievements
Rank 1
 answered on 14 Dec 2010
2 answers
113 views
I would like to more accurately determine if a Location is in a MapShape, or whether two MapShape intersect each other.

At present, I use something like

LocationRect? selectionRect = null;
foreach(MapShape shape in Items)
{
  LocationRect shapeLocationRect = shape.GeographicalBounds;
  shapeLocationRect.MapControl = MapControl;
  if (shapeLocationRect.Contains(location))
  {
    selectionRect = shapeLocationRect;
    break;
  }
}

This only uses the bounding rectangle, so if I have a MapPolygon, then I can possibly get a hit outside of the actual shape boundaries

The problem becomes more compounded when I need to look for the intersection of two shapes

foreach (var layerItem in layer.Items)
{
    if (layerItem is MapShape)
    {
        MapShape mapShape = (MapShape)layerItem;
        if (selectionRect.HasValue && mapShape.GeographicalBounds.Intersect(selectionRect.Value))
        {
        }
    }
}

One point to note is that because I only have MapPolygons ort MapPaths in my layer I can check the GeographicalBounds for the Intesection.  If I have MapRectangles or MapEllipses then I do not get a hit, unless I set the MapControl.

Hope you can help
Thanks
Simon
Simon
Top achievements
Rank 1
 answered on 14 Dec 2010
1 answer
365 views
Hello,

I am using WPF RadGridView, I want to collapse or expand the grid details on a button click of the selected row, I have toggle button on grid , but I want it to be toggled from other button, How can I do that from code behind.
Maya
Telerik team
 answered on 14 Dec 2010
1 answer
77 views

Hi

I want to know the boundary conditions for TreeListView using WPF.

1. I am loading the hierarchical levels on demand.
How many hierarchical levels can be displayed/added in TreeListView using WPF?

2. How many Rows can be displayed in TreeListView using WPF ?

 

3 How many Columns can be displayed in TreeListView using WPF ?
I want to display 250-300 columns.
Is there any facility to add the columns dynamically....
like we can add columns on demand while horizontal scrolling?

Thanks.

Veselin Vasilev
Telerik team
 answered on 14 Dec 2010
3 answers
116 views
I have a two TreeView controls, one on the left side and one on the right side. The users should be able to drag items from the left side to the right side, but not the other way around. I have this functionality working, but I want to remove the visual elements (Drag Preview, Preview Line and Tooltip) when the drag is over the left side so that the users don't think that they are allowed to drag. 

I've tried setting the following:
IsDragPreviewEnabled="False"
IsDragTooltipEnabled="False"
IsDropPreviewLineEnabled="False"
But I still get all the visuals. I'd be fine with the visual queue that shows the red indicator saying no to the user.
Tsvyatko
Telerik team
 answered on 14 Dec 2010
1 answer
100 views
Can I not drag and drop onto a ScheduleView? Add Apointments manually? What are the differences between the two controls?

Thanks,
Rod
Valeri Hristov
Telerik team
 answered on 14 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?