Hi,
I've been using the Telerik toolkit with great ease since 2009 with that year's release. We have recently had to upgrade to the new toolkit and the manager (Images, documents and flash are the main ones I use.) stopped working. I would usually set the manager's folders from code, and I use this in a centralized admin for about several websites. The code looks like this:
For the most part this works, in the new and old control kit, but when the sWebsite name contains a space e.g. sWebsiteName = "Website ABC" then it doesn't work in the new control kit. Any suggestions as to how to fix that?
I've been using the Telerik toolkit with great ease since 2009 with that year's release. We have recently had to upgrade to the new toolkit and the manager (Images, documents and flash are the main ones I use.) stopped working. I would usually set the manager's folders from code, and I use this in a centralized admin for about several websites. The code looks like this:
Dim
sUpldPath
As
String
=
"~/Admin/Uploads/"
& sWebsiteName &
"/"
Dim
sImg()
As
String
= {sUpldPath &
"images"
}
Dim
sFls()
As
String
= {sUpldPath &
"flash"
}
Dim
sDoc()
As
String
= {sUpldPath &
"documents"
}
RadEditor1.ImageManager.DeletePaths = sImg
RadEditor1.ImageManager.ViewPaths = sImg
RadEditor1.ImageManager.UploadPaths = sImg
RadEditor1.FlashManager.DeletePaths = sFls
RadEditor1.FlashManager.ViewPaths = sFls
RadEditor1.FlashManager.UploadPaths = sFls
RadEditor1.DocumentManager.DeletePaths = sDoc
RadEditor1.DocumentManager.ViewPaths = sDoc
RadEditor1.DocumentManager.UploadPaths = sDoc
For the most part this works, in the new and old control kit, but when the sWebsite name contains a space e.g. sWebsiteName = "Website ABC" then it doesn't work in the new control kit. Any suggestions as to how to fix that?