自己搞定了
<client>
<ClientSideEvents SelectedIndexChanged="function(s, e) {
FpSpread1.CallBack("reload")
server
protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
{
if (e.CommandName == "reload")
{
GetData();
}
}
void GetData()
{
if (ASPxComboBox1.Value != null)
{
ObjectDataSource2.SelectParameters[0].DefaultValue = ASPxComboBox1.Value.ToString();
}
else
{
ObjectDataSource2.SelectParameters[0].DefaultValue = "";
}
FpSpread1.DataBind();
} |