public
class
BaseItemViewModel : ViewModelBase
{
private
BaseItem _baseItem;
public
BaseItemViewModel(BaseItem baseItem)
{
_baseItem = baseItem;
}
public
string
ItemId
{
get
{
return
_baseItem.ItemId;
}
}
public
string
CollectionId
{
get
{
return
_baseItem.CollectionId;
}
}
public
DateTime CreationDate
{
get
{
return
_baseItem.CreationDate;
}
}
public
string
Name
{
get
{
return
"NA"
;
}
}
public
string
Description
{
get
{
return
"NA"
;
}
}
public
string
CreatorCollectionId
{
get
{
return
"NA"
;
}
}
}
public
class
ItemViewModel : ViewModelBase
{
private
Item _item;
public
ItemViewModel(Item item)
{
_item = item;
}
public
string
ItemId
{
get
{
return
_item.ItemId;
}
}
public
string
CollectionId
{
get
{
return
_item.CollectionId;
}
}
public
DateTime CreationDate
{
get
{
return
_item.CreationDate;
}
}
public
string
Name
{
get
{
return
_item.Name;
}
set
{
_item.Name = value;
}
}
public
string
Description
{
get
{
return
_item.Description;
}
set
{
_item.Description = value;
}
}
public
string
CreatorCollectionId
{
get
{
return
_item.CreatorCollectionId;
}
set
{
_item.CreatorCollectionId = value;
}
}
}
In the Telerik Radtreeview I want some of the treeviewitems to be unSelectable until the previous steps are completed. In the background I have a Boolean property isSelectable which is Binded to the TreeviewItem Focusable Property. Before when I was using the windows TreeView Control this Focusable property made the treeviewitems to be UnSelected until the previous steps were completed which is a default behaviour in windows control. Now after converting to the telerik Radtreeview control I can select items even with focusable property set to false And also the treeviewitem are highlighted on hovering over the item. Is there a way I can make it to work so that on setting the RadTreeviewItem focusable property to false the respective Radtreeviewitems are not selectable and shouldn’t highlight on mouse over as a default Focus Behaviour? following snippet and the screenshot attached is just an example to demonstrate the issue with the focusable property where even with focusable false category1 can be selected and highlighted.
Thanks. var plotAreaPanel = sender as ClipPanel;
var mousePosition = e.GetPosition(plotAreaPanel);
var dataAtMouse = _Chart.DefaultView.ChartArea.AxisX.ConvertPhysicalUnitsToData(mousePosition.X);
var physicalAtMouse = _Chart.DefaultView.ChartArea.AxisX.ConvertDataUnitsToPhysical(dataAtMouse);
if (mousePosition.X != physicalAtMouse)
{
Debug.Assert(false, "Should never happen");
}