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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -