ExtJs Set Parameters Values

若如初见. 提交于 2019-12-25 08:25:17

问题


I have a form with some controls (extJs and ASP) like this:

<ext:ComboBox ID="Countries" runat="server" .../>
<asp:CheckBox ID="cb1" runat="server" />

I want to send parameters using BaseParams of the store object:

<ext:Parameter Name="cid" Value="Ext.get('#{Countries}').getValue()" />
<ext:Parameter Name="cbv" Value="#{cb1}.dom.checked" />

and that became:

Ext.apply( options.params,{
    "cid":Ext.get('CountryCities1_Countries').getValue(),
    "cbv":Ext.get("CountryCities1_cb1").dom.checked}
);

as you see get the value from ASP.Net checkbox is simpler than extJs Combobox... Do you know other clean way to get the combobox value?


回答1:


I found it... Just like this:

<ext:ComboBox ...>
    <Listeners>
        <Select Handler=" #{myStore}.reload({ params: {cid: this.value}});" />
    </Listeners>
</ext:ComboBox>


来源:https://stackoverflow.com/questions/10386101/extjs-set-parameters-values

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!