Just ran into an issue with programmatically assigning ranges. For example I want the user to let me know what value is "red" or "green", and display the gauge appropriately. This all works great except when the user changes the value where "good meets bad".
If I try the following line of code to remove previous ranges, I get "Exception of type 'System.ExecutionEngineException' was thrown" on the line after this executes:
| If radialScale1.Ranges.Count > 0 Then
| End If
However if I don't remove previous ranges, it causes other odd behavior since the ranges are stacked.
While recreating this scenario in a new test project, I did find a work around:
| While radialScale1.Ranges.Count > 0
| End While
In any case I have a workaround but thought I would post this for anyone having a similar issue and so that Telerik is aware of this potential problem. Wouldn't using the clear method be the recommended approach?