Hello,
We have used RadFileExplorer control in our CMS. First problem we faced when number of files increases on the production server, FileExplorer become very much slow. In order to overcome this problem, We have implemented Custom FileSytem Content provider. In which we have manually populated the tree. After using that speed / performance has become incredibly improved.
But after that there is another problem arises, if any folder in the root level or deep in the hierarchy contains files or folder more than 10,000 to 13000, that particular root directory did not open and its giving the error
"Error during serialization and deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property."
I know this error is occurring due to the size of the response data become greater than the value for maxJsonLength property. Even when i have set the MAXIMUM value for this property in Web.Config, it had no effect.
I thought that it was the problem with my implementation of Custom Content Provider, but when i remove my Custom Provider the problem and this error was still there.
I have also tried by setting AllowPaging Property to "True", But AllowPaging property can only work with Grid not with Tree.
I seems that FileExplorer is not meant for dealing with situations, when file hierarchy and the number of files become very large in number.
I was thinking to customize the behavior of FileExplorer that it should not returned the Ajax Response using JSON, Remember, when we click on tree node in the tree view of file explorer, by default Ajax request is sent to server and get the data back in the form of JSON string. If there is a way that we can disable this Asynchronous call and execute postback then I think this issue can be solved but I dont know how and in which client side method this call can be sent. Please help me in this regards.
Or suggest any better option to deal with if the number of files has become very large.
Thank you very much and have a nice day
Eman Ali Mughal
We have used RadFileExplorer control in our CMS. First problem we faced when number of files increases on the production server, FileExplorer become very much slow. In order to overcome this problem, We have implemented Custom FileSytem Content provider. In which we have manually populated the tree. After using that speed / performance has become incredibly improved.
But after that there is another problem arises, if any folder in the root level or deep in the hierarchy contains files or folder more than 10,000 to 13000, that particular root directory did not open and its giving the error
"Error during serialization and deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property."
I know this error is occurring due to the size of the response data become greater than the value for maxJsonLength property. Even when i have set the MAXIMUM value for this property in Web.Config, it had no effect.
I thought that it was the problem with my implementation of Custom Content Provider, but when i remove my Custom Provider the problem and this error was still there.
I have also tried by setting AllowPaging Property to "True", But AllowPaging property can only work with Grid not with Tree.
I seems that FileExplorer is not meant for dealing with situations, when file hierarchy and the number of files become very large in number.
I was thinking to customize the behavior of FileExplorer that it should not returned the Ajax Response using JSON, Remember, when we click on tree node in the tree view of file explorer, by default Ajax request is sent to server and get the data back in the form of JSON string. If there is a way that we can disable this Asynchronous call and execute postback then I think this issue can be solved but I dont know how and in which client side method this call can be sent. Please help me in this regards.
Or suggest any better option to deal with if the number of files has become very large.
Thank you very much and have a nice day
Eman Ali Mughal