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"
>
</form>
//the checkbox that will select them all calls a function
<input type=
'checkbox'
name=
'checkall'
onclick=
'checkedAll(frm1);'
>
<script type=
"text/javascript"
>
checked
=
false
;
function checkedAll (frm1)
var aa= document.getElementById(
'form1'
);
if
(
checked
==
false
)
checked
=
true
else
checked
=
false
for
(var i =0; i < aa.elements.length; i++)
aa.elements[i].
checked
=
checked
;
</script>