Hello,
hope my question is not to stupid; I use NetAdvantage 11.1.20111.2064 with .Net 4.0.
I catch the Expanding Event of the control and try to increase the height of the ExplorerBar. It seems that there is no such property in the control. I tried:
web_rechts = $find(
'<%=WebExplorerBar1.ClientID%>');
web_rechts.height = '575px';
or
web_rechts.style.height = '575px';
But this is the wrong way.
So how can i set the Height of the WebExplorerBar with JavaScript ?
thanks
Patric
Hello Georgie,
thanks for your fast reply; your solution is correct with one addition:
I must take a look at the whole naming of the control; on my page the contol is in an asp content placeholder named 'MainContent' so the full name is MainContent_WebExplorerBar1.
If i changed your second line from:
control.get_element().getElementsByTagName('div').WebExplorerBar1_tree.style.height = "900px";
to
control.get_element().getElementsByTagName('div').MainContent_WebExplorerBar1_tree.style.height = "900px";
all is ok.
So thanks for your help,
Hello Patric,
Try this code:
function WebExplorerBar1_ItemExpanding(sender, eventArgs) { var control = $find("<%=WebExplorerBar1.ClientID %>"); if (!$util.isNullOrUndefined(control)) { control.get_element().style.height = "900px"; control.get_element().getElementsByTagName('div').WebExplorerBar1_tree.style.height = "900px"; } }
function WebExplorerBar1_ItemExpanding(sender, eventArgs) {
var control = $find("<%=WebExplorerBar1.ClientID %>");
if (!$util.isNullOrUndefined(control)) {
control.get_element().style.height = "900px";
}
I hope it helps.
For any further questions do not hesitate to contact me.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Hello Georgi,
your answer is only a 'half solution'. The outer frame of the WebExplorerBar takes the new value (it is increasing for ex. from 300px to 900px ). But i see an inner frame, that stay on the size of the initilization (the 300px). An all the groups and expanded items are in this small frame.
Any idea how to increse this inner area too?
Thanks for your fast reply and sorry for my delay,
If you need further assistance with this matter, please do not hesitate to contact us.
Please see this forum post.
function WebExplorerBar1_ItemExpanding(sender, eventArgs) { var control = $find("<%=WebExplorerBar1.ClientID %>"); if (!$util.isNullOrUndefined(control)) { control.get_element().style.height = "400px"; } }
Let me know if you have further questions.
Elizabeth AlbertLocalization Engineer