I have a checkbox and a Rad panel bar. When the user checks or unchecks the checkbox, the panel bar must expand or collapse. The onclick event of checkbox is Test()
<script>
function Test()
{
//Code to expand or collpase the rad panel//----> what should i add here?
}
</script>
One suggestion would be accessing all the panelitems from code behind and attach the onclick event to each checkboxes passing the panelbar text to event handler. And in the event handler, get the corresponding panelitem using the text (findItemByText method) the set_expanded() method to expand.