Telerik Forums
UI for WPF Forum
4 answers
127 views
Hi,

I'm using the RadGridView with a custon filter row like it is shown in one of the demo samples. I also have on custom column configuration dialog that is used to add, remove or reorder columns. When the column configuration is modified within this dialog I first remove all Columns and FilterDescriptors. Then I add the columns again according to the new configuration. When I try to add the FilterDescriptors I get an exception with the following message and stacktrace:

Object reference not set to an instance of an object.

   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

I'm adding the FilterDescriptors in the DataType PropertyChanged event of the columns. I'm doing it this way because otherwise the correct DataType is not available.

When I add the same FilterDescriptors some time later in the click event handler of a button, the exception does not occur.

Any suggestions? Is there another event that is fired some time after DataType PropertyChanged event of the columns and can be used to add the FilterDescriptors.

Regards,

Uli
Rossen Hristov
Telerik team
 answered on 16 Aug 2010
1 answer
254 views
Hi!

Here is the situation:

I've a RadGridView, the datacontext is the code behind. So ItemsSource is setted to a "List<MyCustomObjects>", all works at this level.

After that, I've a zone with a lot of textbox that are bound to the gridview(datacontext is the radgridview, binding CurrentItem.myField, mode twoway) and a zone with only labels that is exactly bound the same way. 

When I change line, my values are updated in labels and textbox, so it works great. 

If I edit one field directly in the RadGridView, labels and textbox are updated directly when the cell lost the focus

The problem now:
Now, if I edit the field in the textbox, when I lost focus, labels are updated but not the radGridView.
It appears the radGridview have updated values but doesn't refresh the display, if I reorder data or start the edit of the cell, the data is correct.

Then, is this a bad configuration of the radGridView? Wrong datasource?( List<MyCustomObject>) bug? Feature?

Thank you!

We really need this as fast as possible because it's one of the key feature we use in telerik.
Veselin Vasilev
Telerik team
 answered on 16 Aug 2010
1 answer
57 views
Hi,
1) I am using amounts in my grid view data coloumn. I want it to be right alligned as values in excel.
2) I have totals textblock below my amount field. I am not using the aggregate functions of grid view as I have to apply custom Sum. Could you please tell me, how can I update my totals, on changing the amount in GridView.
Thanks
Muhammad Zubair
Maya
Telerik team
 answered on 16 Aug 2010
1 answer
110 views
Hi,

I am having problems with my grid
when the columns of the grid does not get the right size , it shows up a blank column at the end and i dont want that space . how do i do to get it out?


Thanks, Alexandre.
Vlad
Telerik team
 answered on 16 Aug 2010
2 answers
48 views
It seems that given certain minimum, maximum and steps manually on the AxisX, the chart will snap minimum and maximum to some values, and I was wondering if there was a way to avoid this.

Example: I have an overview chart that display data from 2007 to 2013 with a step of 366, the chart starts somewhere in middle 2005 while I want it to start at January 1st, 2007 to make sure the tick mark a year starting.
Julien
Top achievements
Rank 1
 answered on 13 Aug 2010
1 answer
100 views
Is there a way to number the rows in a gridview to where it would look similar to Excel?

Thanks,
Katie
Vanya Pavlova
Telerik team
 answered on 13 Aug 2010
1 answer
275 views
Hello,
I've got another problem today. Is it posible to send column header text as a ConverterPerameter for CellTemplate?
Vanya Pavlova
Telerik team
 answered on 13 Aug 2010
5 answers
170 views
Hello all,

I am currently evaluating your RadMap-Control for my company.

Since we have a scenario where the map provider and the RadMap-Control are on the same machine we would like to optimize the tile-transfer.
Therefore I derived from WebRequest, WebResponse and IWebRequestCreate and registered my custom IWebRequestCreate-implementation for my URI-scheme. So I can return a specific URI (matching my registered IWebRequestCreate) in the GetTile-Method of my MapProvider. Then my custom WebRequest-Implementation is used, which can use my local map provider.
So far so good - but unfortunately there is a bug in the WebClient-Class that is used by the RadMap-Control which prevents the use of a custom WebRequest. The Method "ReadDataAsyncCallback" of WebClient which is used by the RadMap-Control casts the IAsyncResult-Parameter to a LazyAsyncResult which is an internal class of the System.Net-Namespace. Therefore I cannot provide an IAsyncResult-Implementation in my custom WebRequest that derives from LazyAsyncResult as you can see.

I am wondering if it is possible to fix this issue. I would have two solutions in mind:

   1. Instead of using the WebClient-Class in the RadMap-Control just use the WebRequest-Class
   2. Make it possible to write a MapProvider that returns a stream instead of an URI

best regards
   Markus
Andrey
Telerik team
 answered on 13 Aug 2010
3 answers
175 views
It is now possible to change the rowheight.
But... when using GridViewComboBoxColumn or GridViewDataColumn the possibility to set the rowheight does not work anymore...
Pavel Pavlov
Telerik team
 answered on 13 Aug 2010
5 answers
188 views
I have an existing project and I like to add WPF controls to it. In the documentation it says, that unter the Visual Studio Telerik menu, there sould be a option "Convert to Telerik WPF Application". But it is not there. Is there a possibility to make a project Telerik aware, so that the "Convert to Telerik WPF Application" is shown, as well as "Configure Project" / "Upgrade Wizzard"?

Thankx, Harry
Petar
Telerik team
 answered on 13 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?