Merge pull request #342 from telerik/Nasko/segment-updateselection
Remove irrelevant code that throws unexpectedly error and make the se…
This commit is contained in:
Коммит
35f08394fd
|
@ -123,16 +123,8 @@ namespace Telerik.UI.Xaml.Controls.Input
|
|||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
throw new ArgumentException("Value does not fall within the expected range.");
|
||||
}
|
||||
finally
|
||||
{
|
||||
control.isInternalChange = true;
|
||||
control.SelectedIndex = oldSelectedIndex;
|
||||
control.isInternalChange = false;
|
||||
}
|
||||
var item = control.GetItemByIndex(selectedIndex);
|
||||
control.UpdateSelectedValue(item.GetPropertyValue(control.SelectedValuePath));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче