If I want to determine whether a particular Rad Grid, Rad List or RadTreeview has an item which is selected (or checked node in the case of Rad TReeview), I can use the inherent selectedItems or checkednodes properties that these controls expose. However, to determine if a single item is selected, it is not necessery to return all the selected items. Therefore it would seem to me, that a more efficient method of determining whether an item is selected is to loop through all the items and if you come across one which is selected, return true (ie exit the loop) This would be the case unless Telerik used some sort of optimization technique for storing the selecteditems collection without looping through the entire set to setermine it. So, my questions is, does this kind of optimization exists, or is my method of looping instead of using the inherent selecteditems collection a more optimized way of determining whether an item has been selected.
On a related note, is there a way to get a list of all the nodes in a treeveiw without actually traversing the tree in a recursive fashion (ie is there some sort of optimized method of obtaining the full node list)
On a related note, is there a way to get a list of all the nodes in a treeveiw without actually traversing the tree in a recursive fashion (ie is there some sort of optimized method of obtaining the full node list)