I have a RadCombobox on my page as follows:
<telerik:RadComboBox ID="cboBenchmarkCompanies" runat="server"
CheckBoxes="true"
DataTextField="Value"
DataValueField="Key"
EnableLoadOnDemand="False"
OnClientItemChecking="CheckMaxBenchmarkCompanies"
meta:resourcekey="cboBenchmarkCompanies" />
I load the list in the onload with:
if (!this.IsPostBack) {
var allCompanies = _applicationUserRepository.GetAllSurveyUsers();
cboBenchmarkCompanies.DataSource = allCompanies;
cboBenchmarkCompanies.DataBind(); }
If i then try to retrieve the checked items after pressing a save button, i always get back an empty collection instead of my checked items:
foreach (var checkedItem in cboBenchmarkCompanies.CheckedItems ){
What am I doing wrong?
<telerik:RadComboBox ID="cboBenchmarkCompanies" runat="server"
CheckBoxes="true"
DataTextField="Value"
DataValueField="Key"
EnableLoadOnDemand="False"
OnClientItemChecking="CheckMaxBenchmarkCompanies"
meta:resourcekey="cboBenchmarkCompanies" />
I load the list in the onload with:
if (!this.IsPostBack) {
var allCompanies = _applicationUserRepository.GetAllSurveyUsers();
cboBenchmarkCompanies.DataSource = allCompanies;
cboBenchmarkCompanies.DataBind(); }
If i then try to retrieve the checked items after pressing a save button, i always get back an empty collection instead of my checked items:
foreach (var checkedItem in cboBenchmarkCompanies.CheckedItems ){
What am I doing wrong?