ExtJs设置参数值 [英] ExtJs Set Parameters Values

查看:65
本文介绍了ExtJs设置参数值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有一些控件(extJs和ASP)的表单,如下所示:

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

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

我想使用 store 对象的 BaseParams 发送参数:

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" />

然后变成:

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

如您所见,从ASP.Net中获取值复选框比extJs Combobox更简单...您知道获取组合框值的其他干净方法吗?

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?

推荐答案

我发现了它……就像这样:

I found it... Just like this:

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

这篇关于ExtJs设置参数值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆