Hi Pik Lee,
Substring takes a start index and a length, but not an end index which seems to be less than 36 in some of the cases. I suggest that you should add some if loops to check the ResultItem.Snippet. The code you use have been supplied to the community for demonstration purpusase and you should add some additional logic to escape such issues. For instance you get the same problem with you substring 36 symbols which are not even a guid. So, you should better check the string length
and validate the returned value whether it is valid guid.
All the best,
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items