如何设置值kendo multiselect?

时间:2017-10-31 11:16:21

标签: javascript jquery kendo-ui

我的场景是我想在我的网格中选择带复选框的一些信息,我可以得到像数组一样的值[" 3001"," 3004"]但是当我点击按钮kendo时multiselect无法设置我的值

这是onclick功能:

class TableViewController: UITableViewController
{
    override func viewDidLoad()
    {
        super.viewDidLoad()
        print(self.tabBarController?.selectedIndex)
    }
}

但它不起作用。

你知道吗?

1 个答案:

答案 0 :(得分:0)

当我填充网格时我发现了一些东西,而我在C#侧的多选项中字段名称是相等的,但是当我更改并放置相同的值时,值不是标记的......它有效...

var resultCariler = (from m in objEntities.Cariler
                             where (m.CariTip == 13)
                             orderby m.CariNam ascending
                             select m).AsQueryable();
        foreach (var item in resultCariler)
        {
            Cariler objCariler = new Cariler();
            objCariler.CariKod = item.CariKod.Trim();
            objCariler.CariNam = item.CariNam + - + item.CariKod.Trim(); //I changed this part with same in grid
            listCari.Add(objCariler);
        }

var resultCariler = (from m in objEntities.Cariler
                             where (m.CariTip == 13)
                             orderby m.CariNam ascending
                             select m).AsQueryable();
        foreach (var item in resultCariler)
        {
            Cariler objCariler = new Cariler();
            objCariler.CariKod = item.CariKod.Trim();
            objCariler.CariNam = item.CariNam;
            listCari.Add(objCariler);
        }