This is a migrated thread and some comments may be shown as answers.

MoveDirectory when old directory is selected throws error

6 Answers 67 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 20 May 2009, 10:19 PM
I've implemented my own custom content provider for the FileExplorer control to use a database as my filestore. My MoveDirectory implementation works fine except for one thing. If I have a folder selected (displaying its contents) in the FileExplorer, and I move it to a new folder, it throws an error after it moves it because it can't display the folder from the old location (where it was previously selected).

I've tried to set the SelectedItemTag from the provider, but I don't think it is working.

Is there a way I can tell the FileExplorer to select the folder at its new path?

6 Answers, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 21 May 2009, 04:53 PM
This also happens when I delete a selected directory.

To be more clear... What I get is a Callback Loading Error that displays the virtual path of the directory I just deleted, saying it is a null reference. I guess, technically, this is true, but I don't know why it is trying to load the directory after I delete it.
0
Fiko
Telerik team
answered on 22 May 2009, 12:54 PM
Hi Chris,

We are aware with such behavior and we are already fixed it. We recommend you download the latest internal build and replace the current Telerik.Web.UI.dll file with the downloaded one. We will include the changes in the next service pack - at the end of this month.

I hope this helps.


Sincerely yours,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jon
Top achievements
Rank 1
answered on 27 May 2009, 08:17 PM
Hello.

I am experiencing a similar problem: I have most functions of MyCustomFileContentProvider working, including MoveDirectory (which is successful), but, after a MoveDirectory, if I then do an Upload to the renamed folder, the path includes the old directory name (before the MoveDirectory).

I have tried the dll from Telerik.Web.UI_2009_1_525_trial_hotfix.zip.

I assume (from the release notes that accompany) that this fix is not yet available (at least, not in this particular zip).

Please advise: Is another specific report needed, or should I just wait for the next hotfix?

Thanks.
0
Fiko
Telerik team
answered on 29 May 2009, 01:35 PM
Hello Jon,

Unfortunately because of several other tasks with higher priority that took more time than planned, we haven't fixed this problem for the Q12009 SP2 release. We will do our best, however, to fix it for Q2 Beta in a couple of weeks or for the official Q2 release at the beginning of the July.

We apologize for the caused inconvenience.


All the best,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jon
Top achievements
Rank 1
answered on 29 May 2009, 03:52 PM
Fiko,

Thanks.

Is there a code workaround that can be used in the meantime? Some way to re-resolve the root or node?

0
Fiko
Telerik team
answered on 01 Jun 2009, 01:58 PM
Hello Jon,

For the time being we cannot provide a solution for that issue, but we will do our best to fix it as soon as possible. We apologize for the caused inconvenience.

All the best,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
FileExplorer
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Fiko
Telerik team
Jon
Top achievements
Rank 1
Share this question
or