0
我有一个窗体中有两个组合框和一个网格, 我已经在selectedindex上编写了过滤代码,改变了组合框的事件,SuggestAppend属性设置为组合框box.when我键入一个国家名称,例如印度和按输入选定的索引更改事件不会立即触发,当我点击某处,然后它的火灾,并给出输出。 请什么建议我do.Thanks提前组合框选择的索引事件没有给出一次点击输出
protected void cbCountry_SelectedIndexChanged(object sender, EventArgs e)
{
GetCondition();
Fillgrid();
}
public string GetCondition()
{
string Condition = "";
if (cbEmployee.SelectedIndex > 0)
{
Condition = Condition + " And reg_no=" + cbEmployee.SelectedValue;
}
if (cbCountry.SelectedIndex > 0)
{
Condition = Condition + " And country='" + cbCountry.SelectedItem.Text + "'";
}
return Condition;
}
我使用Telerik的radgrid控件,大多数属性都没有在Telerik的支持 –
实际上,客户端设置属性是用于telerik的。 – user123456