Is there a way to disable multi select?
+1
A:
Remove the muiltiple="multiple"
in the following line:
<select id="id" name="name" multiple="multiple">
So, it is as good as removing that attribute. I'd use jQuery.
AJ
2010-08-20 01:51:36
A:
Regarding your question, disable to multiple select is quite simple? Isn't it?
<select multiple="multiple" disabled = "true">
<option value="1"> One
<option value="2"> Two
<option value="3"> Three
</select>
ppshein
2010-08-20 02:27:35
A:
with this code you can disable multiselect:
document.getElementById('mySelectBox').removeAttribute("multiple");;
... of a selectbox like this:
<select multiple="multiple" id="mySelectBox">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
(not tested)
Garis Suero
2010-08-20 02:31:01
+1
A:
Sorry, i thought this was tagged for SlickGrid. Im asking about how to disable multiselect in SlickGrid.
Tom
2010-08-20 02:44:46
+1
A:
In don't know of any setting to disable it.
handle the onSelectedRowsChanged event and do something like:
var selectedRows = grid.getSelectedRows();
if( selectedRows.length > 1 ) {
grid.setSelectedRows( [ selectedRows[ selectedRows.length - 1 ] ] );
}
Chris Hogan
2010-08-28 02:36:24