Welcome Guest Search | Active Topics | Sign In | Register

FileExplorer - file listing lost Options
Steve
Posted: Wednesday, October 6, 2010 2:31:18 PM
Rank: Newbie
Groups: Member

Joined: 5/19/2010
Posts: 9
I'm losing my file listing on the 4th click of Button1. Any thoughts?? Thanks

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
FileExplorer1.RootFolder = "C:\Steve\ProgramFiles\WebSite2\RPTs"
End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim PathMapping As New EO.Web.PathMapping

FileExplorer1.PathMappings.Clear()

If FileExplorer1.Visible Then
Button1.Text = "show"
FileExplorer1.Visible = False
Else
Button1.Text = "hide"
FileExplorer1.Visible = True

FileExplorer1.RootFolder = "~/RPTs"
PathMapping.Path = "C:\Steve\ProgramFiles\WebSite2\RPTs"
PathMapping.DisplayName = "RPTs"
PathMapping.Url = "http://localhost/WebSite2/RPTs"

FileExplorer1.PathMappings.Add(PathMapping)

End If
End Sub
eo_support
Posted: Wednesday, October 6, 2010 4:55:02 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There was a bug related to FileExplorer and post back. It has been fixed in the latest version (.34 build). So please try with that version first.

If you still have problem with the latest build, please try to isolate the problem into a test project. We will be happy take a look as soon as we have that.

Thanks!
Steve
Posted: Thursday, October 7, 2010 6:58:43 AM
Rank: Newbie
Groups: Member

Joined: 5/19/2010
Posts: 9
Thank you for the quick response. I installed (.34 build).

1. This works: .34 build corrected the post back issue

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

End Sub

2. I'm required to programmatically hide the FileExplorer. On the 4th click of Button1 the file listing is lost.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim PathMapping As New EO.Web.PathMapping

FileExplorer1.PathMappings.Clear()

If FileExplorer1.Visible Then
Button1.Text = "show"
PlaceHolder1.Visible = False
Else
Button1.Text = "hide"
PlaceHolder1.Visible = True

FileExplorer1.RootFolder = "~/RPTs"
PathMapping.Path = "C:\Steve\ProgramFiles\WebSite2\RPTs"
PathMapping.DisplayName = "RPTs"
PathMapping.Url = "http://localhost/WebSite2/RPTs"

FileExplorer1.PathMappings.Add(PathMapping)

End If
End Sub

3. I removed the PlaceHolder1, same condition prevails.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim PathMapping As New EO.Web.PathMapping

FileExplorer1.PathMappings.Clear()

If FileExplorer1.Visible Then
Button1.Text = "show"
FileExplorer1.Visible = False
Else
Button1.Text = "hide"
FileExplorer1.Visible = True

FileExplorer1.RootFolder = "~/RPTs"
PathMapping.Path = "C:\Steve\ProgramFiles\WebSite2\RPTs"
PathMapping.DisplayName = "RPTs"
PathMapping.Url = "http://localhost/WebSite2/RPTs"

FileExplorer1.PathMappings.Add(PathMapping)

End If
End Sub

Any thoughts? Thanks
eo_support
Posted: Monday, October 11, 2010 9:53:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have received the test project you sent to us. The problem is a known limitation of the Grid control. The Grid control will lose its data if you set its Visible to false (in your case it’s the FileExplorer, who contains the Grid is set to false).

The easiest way to get around this problem is to put the FileExplorer inside a DIV, then instead of setting the FileExplorer's Visible to false, you would add "display:none" to the DIV's style. That way everything is still rendered to the client but is not visible. In the mean time, we will also see if we can add something such as a "Refresh" on the FileExplorer control to permanently solve the problem.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.