I downloaded and studied the example for implementing a DBContentProvider for the RadFileExplorer. Afterwards I decided to try my hand at it but have run into an issue that has me at a loss. When I add a subfolder to my root the file editor throws a generic windows.alert error messasge that simply displays the subfolder path. After dismissing the alert the file editor will refresh with the subfolder appearing in the right-hand grid...but it does not appear as a child node of the root in the treeview. If I click the 'refresh' button then everything is fine...the subfolder appears in both the treeview, as a child node of the root, and in the grid.
I opened both the example and my project in VS and set a breakpoints in the 'ResolveRootDirectoryAsTree' method of each. Running the repro steps I discovered that in my implementation the breakpoint is hit twice...once before the alert message box and a second after dismissing. Both times the path argument is 'Root/'. The same operation on the example code has the breakpoint being hit four times...
'Root/'
'Root/NewFolder/'
'Root/'
'Root/'
A close look at the 'DirectoryItem' generated in the method shows no differences...the full path and location properties of both the parent and it's child are the same for both my code and Teleriks. Tracing through the code shows nothing different either. So my question is this...where in the telerik code-base is this alert message being generated and what error condition is it intended to convey??
it is a standard window.alert message box with a title of "Message from webpage" and a subject of "Root/NewFolder/"...that's it, no error message, just the full path of the newly added subfolder.
BTW: to setup for debugging the issue I deleted all the example 'Items' but the root folder. Also my implementation uses LinqToSql to manage two tables...dbo.Directory and dbo.Content, rather than a single 'Items' table as the example does. For that reason posting code with this thread would be pointless.
Has anyone else seen this error dialog being thrown when adding a folder?? If so, any suggestions as to where to look??
-mark
I opened both the example and my project in VS and set a breakpoints in the 'ResolveRootDirectoryAsTree' method of each. Running the repro steps I discovered that in my implementation the breakpoint is hit twice...once before the alert message box and a second after dismissing. Both times the path argument is 'Root/'. The same operation on the example code has the breakpoint being hit four times...
'Root/'
'Root/NewFolder/'
'Root/'
'Root/'
A close look at the 'DirectoryItem' generated in the method shows no differences...the full path and location properties of both the parent and it's child are the same for both my code and Teleriks. Tracing through the code shows nothing different either. So my question is this...where in the telerik code-base is this alert message being generated and what error condition is it intended to convey??
it is a standard window.alert message box with a title of "Message from webpage" and a subject of "Root/NewFolder/"...that's it, no error message, just the full path of the newly added subfolder.
BTW: to setup for debugging the issue I deleted all the example 'Items' but the root folder. Also my implementation uses LinqToSql to manage two tables...dbo.Directory and dbo.Content, rather than a single 'Items' table as the example does. For that reason posting code with this thread would be pointless.
Has anyone else seen this error dialog being thrown when adding a folder?? If so, any suggestions as to where to look??
-mark