|
Rank: Newbie Groups: Member
Joined: 2/11/2009 Posts: 4
|
I´m using a Grid without any toolbar. Is there a way to set the View of the Grid to "Thumbnail View"?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, I am assuming that you are using FileExplorer control. With FileExplorer, you can use the following code to switch the Grid into thumbnail view:
Code: JavaScript
eo_GetObject("FileExplorer1").switchView(2);
Hope this helps. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/11/2009 Posts: 4
|
Thanks,but I get this JS-Error:
Error: this.abxh.aasx is not a function Source: http://localhost:2755/eo_web.ashx?id=43c1d394-5446-47c6-b8c8-b9c0d627306e Line: 6
The name ofmyFileExplorer is "FileExplorer1", the Grid is called "FileGrid".
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
What version do you use? Can you post a test page online so that we can take a look?
|
|
Rank: Newbie Groups: Member
Joined: 2/11/2009 Posts: 4
|
I downloaded 2008.0.63. today. Unfortunately there´s no way to upload at the moment. I use your product in a web application project in VS2008
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, That can occur when the code is called too early before the FileExplorer has been fully initialized. Try the following code:
Code: JavaScript
function switchView()
{
window.setTimeout(
function()
{
var explorer = eo_GetObject("FileExplorer1");
if (typeof(explorer.abxh) != "string")
explorer.switchView(2);
else
{
switchView();
return;
}
}, 100);
}
Please let us know if this works. Note this code uses an internal variable "abxh", which can change in future builds. We will look into it to see if we can add this logic into the file explorer, so you can call switchView directly, thus not relying on any internal variable in our future builds. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/11/2009 Posts: 4
|
Thank you, now it works.
|
|