View Full Version : [CLOSED] how to pass a storeparamenter to a store in directmethod ?

May 28, 2015, 5:24 AM
i want to pass a parameter to a store , in aspx,

<ext:Store runat="server" ID="storeContract" OnReadData="LoadContract" AutoLoad="False">
<ext:StoreParameter Name="bid"/>

in cs,below set the value for the paramenter in directmethod , then triiger reload of the store.

public void ShowBuildW(string buidinfoid)
var sp = new StoreParameter
Name = "bid",
Value = buidinfoid
var pc = new Ext.Net.ParameterCollection();

below , get the parameter's value , but no work.

protected void LoadContract(object sender, StoreReadDataEventArgs e)
var bid = e.Parameters["bid"];

what's wrong , what I am missing or making a mistake?

May 28, 2015, 2:42 PM
Hi @hdsoso,

Please remove

<ext:StoreParameter Name="bid" />
or set

<ext:StoreParameter Name="bid" ApplyMode="IfNotExists" />