Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
How to get all nodes which starts from one letter?
Thanks,
Alex
You could get the root node and then all its descendants into a collection and then use linq to return all nodes that start with the letter.
something like
var nodes = Model.Content.AncestorOrSelf(1).Descendants().Where(x => x.Name.StartsWith("l"));
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to get all nodes which starts from one letter?
Hi,
How to get all nodes which starts from one letter?
Thanks,
Alex
You could get the root node and then all its descendants into a collection and then use linq to return all nodes that start with the letter.
something like
var nodes = Model.Content.AncestorOrSelf(1).Descendants().Where(x => x.Name.StartsWith("l"));
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.