Inge Wandsvik
Top achievements
Rank 1
Inge Wandsvik
asked on 11 Jun 2008, 07:42 AM
I'm not sure if this is the correct forum, but I am having problems with the File Browser control (http://www.telerik.com/demos/aspnet/prometheus/Controls/Examples/Integration/FileBrowser/DefaultVB.aspx). I can not find out to what assembly "Directories" belongs. Here is the code where it fails:
Anyone with a solution?
| Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs) |
| RadGrid1.DataSource = New Directories().GetFilesAndFolders(Server.MapPath("~/")) |
| End Sub 'RadGrid1_NeedDataSource |
7 Answers, 1 is accepted
0
Hello Inge,
Directories.cs can be found in App_Code/Grid folder.
All the best,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Directories.cs can be found in App_Code/Grid folder.
All the best,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Inge Wandsvik
Top achievements
Rank 1
answered on 11 Jun 2008, 07:56 AM
Thanks, but the file Directories.cs does not exist. There is 2 Grid folders under App_Code, Grid and Grid_VB but no file called Directories.cs.
0
Hi Inge,
I have attached the file.
Regards,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I have attached the file.
Regards,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Inge Wandsvik
Top achievements
Rank 1
answered on 11 Jun 2008, 08:02 AM
Thank you very much :-)
0
Inge Wandsvik
Top achievements
Rank 1
answered on 11 Jun 2008, 11:40 AM
I think i was too quick there... Now i get an error in the .js file saying Directories is undefined. Here is the code that fails:
The alert works, but when it enters the next line the error shows. An other thing is that i had to create a webservice and replace the file Directories.cs with the new created Directories.asmx and copy the content of the .cs file into the newly created webservice. Could this be a reason for the error?
| function clientNodeClicked(sender, args) |
| { |
| alert('You Clicked'); |
| Directories.GetFilesAndFolders(sender.get_selectedNode().get_value(), updateGrid); |
| } |
0
Inge Wandsvik
Top achievements
Rank 1
answered on 12 Jun 2008, 06:38 AM
Am i the only one that has experienced this???
0
Hello Inge Wandsvik,
Can you please check whether you added a reference to the webservice in the ScriptManager and it is pointing to the correct service?
Regards,
Rosen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Can you please check whether you added a reference to the webservice in the ScriptManager and it is pointing to the correct service?
Regards,
Rosen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
