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

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -