PopulateValueItems in Bound mode with ISDatasource

1 reply. Last post: October 22, 2009 12:26 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

In Multiselect mode, I'm trying to select multiple value from the code behind, passing only the values (not the texts).

If in not bounded, I could happily use

var selectedItems = theComboBox.PopulateValueItems(values);
theComboBox.SetMultipleValues(selectedItems);

 

The problem is when I in bound mode to a ISDataSource, the PopulateValueItems always return an empty array. Is there a simple way to do this or should I do it manually ? It is strange because in single select mode, it is working perfectly.

var selectedItems = theComboBox.PopulateValueItems(values);
theComboBox.SetMultipleValues(selectedItems);

 

The problem is when I in bound mode to a ISDataSource, the PopulateValueItems always return an empty array. Is there a simple way to do this or should I do it manually ? It is strange because in single select mode, it is working perfectly.

 

The problem is when I in bound mode to a ISDataSource, the PopulateValueItems always return an empty array. Is there a simple way to do this or should I do it manually ? It is strange because in single select mode, it is working perfectly.

thanks

All times are GMT -5. The time now is 4:45 AM.
Previous Next