List Selection Button on Control Designer

Posted by Community Admin on 05-Aug-2018 17:07

List Selection Button on Control Designer

All Replies

Posted by Community Admin on 29-Nov-2011 00:00

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.

Posted by Community Admin on 02-Dec-2011 00:00

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

This thread is closed