Skip to Content
0
Former Member
Dec 23, 2015 at 01:59 PM

Disable checkbox issue

149 Views

Hi all,

i am displaying data using list with mode "MultiSelect"

<List growing="true" growingScrollToLoad="true" id="staging" mode="MultiSelect" noDataText="{i18n&gt;masterListNoDataText}"

select="onSelect" change="boxSelected">

and when i click on any of the check box which is displayed , it should be checked and it should be non editable for next time.

for that i have used beow code , but iam getting error with the statement oList.getSelectedItem().setEditable(false);

please let me know how to make the check box non editable for next time, when i click on the check box.

below is my code.

onSelect:function(e){

var context = e.getSource().getSelectedContexts()[0];

var oList = this.getView().byId("listId");

var aItems = oList.getItems();

if( oList.getSelectedItem() != null ){

oList.getSelectedItem().setEditable(false);

}

Regards,

Vamshi