Welcome Guest Search | Active Topics | Sign In | Register

Change Splitter height by JS Options
Seltris
Posted: Tuesday, September 16, 2008 2:33:23 AM
Rank: Member
Groups: Member

Joined: 10/4/2007
Posts: 20
Hi,

there is a method to change the splitter height by javascript on client side.
I had try the follow code but without result.

Code: JavaScript
window.attachEvent('onload',                                             
          function () {
                var splitter = document.getElementById('<%# MainSplitter.ClientId %>');
                if (splitter) splitter.style.height = "300px";
                if (typeof(eo_GetObject) != 'undefined') {
                      var splitter = eo_GetObject('<%# MainSplitter.Id %>');
                      if (splitter) splitter.refresh();
                }
          }
);


Thanks
Seltris
eo_support
Posted: Tuesday, September 16, 2008 2:41:59 PM
Rank: Administration
Groups: Administration

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

I believe you need to call the splitter's setSize method to resize the splitter:

Code: JavaScript
eo_GetObject("Splitter1").setSize(w, h);


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.