List Selection Button on Control Designer - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

List Selection Button on Control Designer

  • List Selection Button on Control Designer
  • I have a custom control designer and was trying to implement a button to select a list, as implemented in the built in list content. This may be rather simple, but I cannot for the life of me work it out, any help would be appreciated.
  • Hello Whitehawksan,

    I suggest referring to this blog post if you encounter a problem implementing functionality with the control designer.
    Place the checkboxes on the designer similar to:
    <form id ="form1">
    <input type="checkbox" name="check1">
    <input type="checkbox" name="checkk2">
    //the checkbox that will select them all calls a function
    <input type='checkbox' name='checkall' onclick='checkedAll(frm1);'>
    <script type="text/javascript">
    function checkedAll (frm1)
        var aa= document.getElementById('form1');
         if (checked == false)
               checked = true
              checked = false
        for (var i =0; i < aa.elements.length; i++)
         aa.elements[i].checked = checked;

    All the best,
    Stanislav Velikov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>