I am using jqGrid with a multiselect field. I have a demo that works fine using this code:
{
name: "Subject",
index: "Subject",
width: 120,
formatter:'select',
editable: true,
edittype:'select',
editoptions: {
value: '1:sport;2:science',
multiple: true,
size: 2
},
editrules: { required: false}
},
But this JSON is hard coded with the multiselect options. I'm trying to find a way where I can return the data that is now hardcoded as:
'1:sport;2:science'
to come from a controller action in my MVC code. Is this possible?