RadComboBox CheckBoxes mulitselect get values of CheckedItems

2 posts, 0 answers
  1. jahangeer
    jahangeer avatar
    2 posts
    Member since:
    Sep 2014

    Posted 26 Sep 2014 Link to this post

    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" />

    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.
  2. Nencho
    Nencho avatar
    1445 posts

    Posted 30 Sep 2014 Link to this post


    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 :



    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top