This is a migrated thread and some comments may be shown as answers.

RadComboBox CheckBoxes mulitselect get values of CheckedItems

1 Answer 741 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
jahangeer
Top achievements
Rank 1
jahangeer asked on 26 Sep 2014, 06:05 AM
I have master page named MPHome.master contains a RadComboBox here is the code of

<telerik:RadComboBox CheckBoxes="true" EnableCheckAllItemsCheckBox="true" ID="TaskID" runat="server" Height="100" Width="150" EmptyMessage="Select a Task"
EnableLoadOnDemand="true" OnClientItemsRequesting="OnClientItemsRequesting" WebServiceSettings-UseHttpGet="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true">
<WebServiceSettings Method="GetTasks" Path="~/ProjectDropDownWebService.asmx" />
</telerik:RadComboBox>

Now this combo works fine it fills values from webservice and also shows checkboxes on it.Now what I do is I inherit this master page to Default.aspx page and inside button of submit in default page I have used this code

protected void btnViewAllTask_Click(object sender, EventArgs e)
{
RadComboBox TaskID = (RadComboBox)Master.FindControl("TaskID");
var selectedtask = TaskID.CheckedItems;
}This selectedtask returns me count of zero either i have selected all the records on it.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 30 Sep 2014, 11:25 AM
Hello,

The reason for the inability to get the proper checked items could is the fact that the items are not accessible at server-side, once the LoadOnDemand mechanism is enabled. Using CheckBoxes in a LoadOnDemand enabled scenario is not supported and this is described in the following documentation article :

http://www.telerik.com/help/aspnet-ajax/combobox-usability-checkboxes.html

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ComboBox
Asked by
jahangeer
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or