Ext.Net - Change panel width from Javascript -
i change panel width size javascript. here code don't work:
javascript code:
<script type="text/javascript"> var extraexpandmap = function (pannello) { pannello.setwidth = 920; }; </script> asp.net code:
<ext:panel id="panellazymap" runat="server" region="east" width="460" title="mappa" layout="fit" floatable="false" resizable="true" collapsed="true" collapsible="true" autoscroll="false" bodystyle="background-color:#ffffff;" marginspec="84 0 0 0" animcollapse ="false"> <headerconfig> <items> <ext:button id="btnexpandextramap" runat="server" icon="rewindgreen"> <listeners> <click handler="extraexpandmap(#{panellazymap});"> </click> </listeners> </ext:button> </items> </headerconfig> </ext:panel>
the problem is:
pannello.setwidth = 920; instead of:
pannello.setwidth(920);
Comments
Post a Comment