var checkList = new ej.dropdowns.MultiSelect({ dataSource: codes, fields: { value: "IDEL", text: "Value" }, mode: 'CheckBox', showSelectAll: true, showDropDownIcon: true, placeholder: allConfirmDeleteSelect, value: codes.Value }); checkList.appendTo('#dropdownCheckboxDeleteCode'); |
How can i fix this ?
And I can't find a way to have all my checkboxes pre-selected in the multi-select. I can't find any answer in the documentation. Can you tell me how can i do that too ?
Thanks.
Regards,
David.
| <code> <script type="text/javascript"> var checkList = new ej.dropdowns.MultiSelect({ dataSource: codes, fields: { value: "IDEL", text: "Value" }, mode: 'CheckBox', showSelectAll: true, showDropDownIcon: true, placeholder: allConfirmDeleteSelect, created: function () { this.selectAll(true); } }); checkList.appendTo('#dropdownCheckboxDeleteCode'); </script> </code> |
| var checkList = new ej.dropdowns.MultiSelect({ dataSource: codes, fields: { value: "IDEL", text: "Value" }, mode: 'CheckBox', showSelectAll: true, showDropDownIcon: true, placeholder: allConfirmDeleteSelect, created: function () { this.selectAll(true); } }); checkList.appendTo('#dropdownCheckboxDeleteCode'); |
As you can see, on "placeholder" I have a variable "allConfirmDeleteSelect" which is a string.
What should I use instead of Html.Raw ?
Regards,
David.
| |
| var allConfirmDeleteSelect = "@Html.Raw(@Resources.allConfirmDeleteSelect)"; |
Regards,
David.