I would like to use multiple paths but from a sql reading loop.
How can I do that?
Of course this isn't working:
while (reader.Read())
{
folderName= (string)reader["folderName"];
viewPaths = new string[] { "~/Documents/" + folderName};
}
Thanks!
2 Answers, 1 is accepted
0
Accepted
Vessy
Telerik team
answered on 15 Jul 2014, 03:40 PM
Hello,
You can achieve the desired configuration by storing the collected paths into a List<string>, and cast it to array when assigned to the RadFileExplorer's ViewPaths property. For example:
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.