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
|
else
|
||||||
{
|
{
|
||||||
try
|
var item = control.GetItemByIndex(selectedIndex);
|
||||||
{
|
control.UpdateSelectedValue(item.GetPropertyValue(control.SelectedValuePath));
|
||||||
throw new ArgumentException("Value does not fall within the expected range.");
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
control.isInternalChange = true;
|
|
||||||
control.SelectedIndex = oldSelectedIndex;
|
|
||||||
control.isInternalChange = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче