publicobjectConvert(objectvalue, Type targetType, objectparameter, System.Globalization.CultureInfo culture)
{
if(value == null)
{
return"Can not unselect null";
}
else
{
return"Unselect";
}
}
publicobjectConvertBack(objectvalue, Type targetType, objectparameter, System.Globalization.CultureInfo culture)
{
thrownewNotImplementedException();
}
}
There is also an attached project.
As I think of it with the same success you can bind the visibility of the button so it could be hidden when there is no selected item.
Regards,
Pana
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!