0
我有一个搜索页面,我选择一些参数并点击提交我存储会话并在radgrid中获得结果。并且在双击该行时我去编辑页面。 我是捕捉radcombobox.text成session..example会话[“状态=活跃,不活跃,老 我检索了!回发的会议从编辑页面保留值回..Telerik RadComboBox没有被检查的项目
示例代码...
我尝试了下面的代码来获取组合框中的项目,当它们从编辑页面返回时被删除...
不知道为什么它不检查RadCombobox.Please的项目建议
if (Session["Status"] != null)
{
ddlStatus.Text = Session["Status"].ToString();
string status = Session["Status"].ToString();
string[] words = status.Split(',');
foreach (RadComboBoxItem item in ddlStatus.Items)
{
string strtext = item.Text.ToString();
if (strtext.Length > 0)
{
if(ddlStatus.Items.Any(x => words.Equals(x)))
{
item.Checked = true;
}
else
{
item.Checked = false;
}
}
}