Telerik Forums
UI for WPF Forum
1 answer
152 views

To test:

Create a class with properties and set the RadPropertyGrid.Item to an instance of that class.

Select one of the properties in the grid.

Set the Item to null. (Clear selection if your Item is binded to some listbox selection, for example).

The property grid should be empty now. Click in the empty space.

Notice that you can see the previous selected property name in the Description Pane.

More importantly to us for CanExecute calls, RadPropertyGrid.SelectedPropertyDefinition is not null. (even though Item==null).

This is a reference leak also since you are holding onto references after Item is set to null. :(

 

(Looking at the code, it looks like when Item property changes, you are setting SelectedPropertyDefinition to null, but you aren't clearing the SelectedPropertyDefinitions collection. As a result, the RadPropertyGrid.OnMouseLeftButtonDown calls SetSelectedPropertyDefinition(), and in there, it simply checks for any items in SelectedPropertyDefinitions and calls LastOrDefault(). )

 

 

Martin
Telerik team
 answered on 07 Oct 2016
9 answers
386 views
I want to filter the data of all the level, however, it seems treelistview only filter data on top level.
How to do that?
Yoan
Telerik team
 answered on 07 Oct 2016
3 answers
198 views
I have radscheduleview control which is not getting refreshed when we navigate from one view to other, previous page design is getting cashed. The block lines are not getting refreshed in the control. because of which the design of the control is getting disturbed.. can someone help please.[Getting multiple vertical lines]
Kalin
Telerik team
 answered on 07 Oct 2016
1 answer
969 views

Hi,

I´m using RadGridView and in the row selection (SelectedItem="{Binding RowSelected, Mode=TwoWay}") I´m loading other View and when I go back, the clicked row is still highlighted. How could I disable the row highlighted (cache) when the GridView is showed.

Best regards

Martin
Telerik team
 answered on 07 Oct 2016
4 answers
313 views

We've added the RadMap control to our WPF application.  I have a custom tile provider that interfaces with a home-grown tile service.  Tee provider basically makes HTTP calls to a custom URL in order to retrieve tiles.  This provider does no caching of its own.

However, a tester here had map data for the US only, then uninstalled that map data and installed map data for Peru.  When they went back into our application, they were able to see roads on Long Island, which they shouldn't have seen.  For this reason, we believe that the RadMap control itself is caching tiles.

Does RadMap cache tiles?  If so, where is this cache and how can we empty it?

 Here is the code for the custom tile provider.  As you can see, there's no code for caching in here at all.

 

public class SelexTileSource : TiledMapSource {
 
    public string BaseURL { get; set; }
 
    public SelexTileSource() : base( 1, 20, 256, 256 ) { }
 
    public override void Initialize() {
        this.RaiseIntializeCompleted();
    }
 
    protected override Uri GetTile( int tileLevel, int tilePositionX, int tilePositionY ) {
        int zoomLevel = ConvertTileToZoomLevel( tileLevel );
 
        string url = string.Format( BaseURL,
                                    zoomLevel.ToString( CultureInfo.InvariantCulture ),
                                    tilePositionX.ToString( CultureInfo.InvariantCulture ),
                                    tilePositionY.ToString( CultureInfo.InvariantCulture ) );
        return new Uri( url );
    }
}
 
public class SelexMapProvider : TiledProvider {
 
    public TiledMapSource Source {
        get { return iSource; }
        set {
            if ( iSource != null && MapSources.ContainsKey( iSource.UniqueId ) )
                MapSources.Remove( iSource.UniqueId );
            iSource = value;
            MapSources.Add( iSource.UniqueId, iSource );
        }
    }
    private TiledMapSource iSource;
 
    public override ISpatialReference SpatialReference {
        get { return new MercatorProjection(); }
    }
}

Petar Mladenov
Telerik team
 answered on 07 Oct 2016
2 answers
112 views

Hello to all,

Recently i noticed that when the gridview is binded with observablecollection, events like add, edit or delete can fired when user press keys on the keyboard or sent gridview commands, this not seems to be happening when gridview is binded with iqueryable.

So is there any way to simulate the observablecollection class behavior to iquerable and implement the add, edit, delele functions without creating my own separate functions and call them on keypress?

Stavros
Top achievements
Rank 1
 answered on 06 Oct 2016
3 answers
120 views

This morning my Windows executes last updates to Windows 10 build 1607,

Today if I try to create new scenario, and I choose RadWindow, it appers me this message (image attached).

This is already happened to someone?

Momchil
Telerik team
 answered on 06 Oct 2016
10 answers
849 views

I'm working on converting my project to use Implicit Styles. I've followed the Documentation to a T. I'm using NoXAML binaries, I've copied the entire set of theme XAML files into my project, merged them all in the App.xaml file, etc.

Everything I ask to use an implicit theme winds up throwing an error that says "Key cannot be null". Sometimes the entire designer is replaced with a window that says the same and gives a StackTrace. I've attached screenshots of both. 

Can anyone give me some guidance here? Telerik doesn't release crappy broken components, so I'm assuming that I'm missing something easy.

Humble me please.  :)

Martin
Telerik team
 answered on 06 Oct 2016
3 answers
241 views

Hello,

is it possible to accept that the negative sign is put at the end of the number, when editing?

For example: typing "55-" will enter "-55" and will be formatted correctly when the cursor leaves the control.

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Oct 2016
1 answer
152 views
Hi!
I need to use that function:

ElementHost.EnableModelessKeyboardInterop(window);

If window object is "RadWindow" type, that method does not accept, becouse that is not of type "System.Windows.Window"
How can I solve it? Or is there other way to open wpf Telerik Window from WindowsForm App?

Thanks!
Nasko
Telerik team
 answered on 06 Oct 2016
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?