作成日: 2019/02/06 最終更新日: 2019/02/06
文書種別
使用方法
詳細
コード上で特定の項目にチェックを付けた状態に設定するには、MultiSelectのcheckedItemsプロパティを使用し、選択項目の配列を指定します。
この場合、checkedItemsプロパティに設定する項目は、collectionView.items[index]またはcollectionView.sourceCollection[index]である必要がございます。
◎サンプルコード(View)
この場合、checkedItemsプロパティに設定する項目は、collectionView.items[index]またはcollectionView.sourceCollection[index]である必要がございます。
◎サンプルコード(View)
<script>
onload=function(){
var multiSelect = wijmo.Control.getControl("#multiSelect");
var source = multiSelect.collectionView;
multiSelect.checkedItems = [source.items[1]];
}
</script>
@(Html.C1().MultiSelect()
.Id("multiSelect")
・・・
)
onload=function(){
var multiSelect = wijmo.Control.getControl("#multiSelect");
var source = multiSelect.collectionView;
multiSelect.checkedItems = [source.items[1]];
}
</script>
@(Html.C1().MultiSelect()
.Id("multiSelect")
・・・
)
旧文書番号
83621