Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create spinner with multiple selection. However i have created Spinner with single selection but i want check box should appear instead of radio button so that we can select more than one value and values will get separated by comma. All code i am getting in JAVA. after migrate it to C#, getting some issue.

Please help.

Thanks in advance....
Posted
Updated 15-Sep-14 2:24am
v2
Comments
Richard MacCutchan 15-Sep-14 8:25am    
after migrate it to C#, getting some issue.
Sorry my crystal ball has gone cloudy so I cannot see it.
ramniwas pal 15-Sep-14 8:29am    
actually i create spinner list is working on single checkbox selection but i want multiple checkbox selection i think i am missing some thing please check my code
private void CreateSpinner()
{

var spinner = CurrentView.FindViewById<spinner>(Resource.Id.spinnerCuisine);
var cuisinelist = Util.GutCuisineList (this.Activity);
var dataAdapter = new ArrayAdapter<spinneritem>(this.Activity, Android.Resource.Layout.SimpleSpinnerItem,cuisinelist);
dataAdapter.SetDropDownViewResource(Android.Resource.Layout.SimpleListItemMultipleChoice);
spinner.Adapter = dataAdapter;

spinner.ItemSelected += (object sender, AdapterView.ItemSelectedEventArgs e) =>
{

};

}
Thanks in advance

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900