I have created a Dynamic View Panel custom control and want to add a pager to it. When I drop a pager into the designated editable area, I get Pager is not associated with any data control. I am computing the datasource using a sessionScope variable.
I’ve gone into All Properties and added the following code in the For property:
if(sessionScope.clickedView == null){
return "All Active/All By Acronym";
}else{
return sessionScope.clickedView;
}
What am I doing wrong?
MJ
The value of the for attribute should match the id attribute of the view panel.