You need to sign in to do that
Don't have an account?
Manjunath
EnhancedList view rendered Problem
Hi,
I am having a problem to render the apex:EnhancedList .
I have a action function which calls a controller method to set the boolean value to true and rerender that EnhancedList.
It keeps displaying Loading but does not load.
Below is the code.
<apex:outputPanel id="enhancedActivityList" >
<apex:outputPanel >
<apex:enhancedList type="Activity" height="600" rendered="{!isEnahanceListEnabled }" />
</apex:outputPanel>
</apex:outputPanel>
I have initalized a varaible in the controller i set it to true when an icon is clicked using the actionfunction and rerender the output panel.
Has anybody faced this issue, any work around to do this.
Thanks in advance.
Regards
Manjunath
I am having a problem to render the apex:EnhancedList .
I have a action function which calls a controller method to set the boolean value to true and rerender that EnhancedList.
It keeps displaying Loading but does not load.
Below is the code.
<apex:outputPanel id="enhancedActivityList" >
<apex:outputPanel >
<apex:enhancedList type="Activity" height="600" rendered="{!isEnahanceListEnabled }" />
</apex:outputPanel>
</apex:outputPanel>
I have initalized a varaible in the controller i set it to true when an icon is clicked using the actionfunction and rerender the output panel.
Has anybody faced this issue, any work around to do this.
Thanks in advance.
Regards
Manjunath
Regards
Sagarika Rout
Here is the code.
<apex:page>
<apex:form>
<div class="floatRight" >
<div id="V2" onclick="enableListViewController()">DIV1</div>
<div id="V1" >DIV2</div>
</div>
<div id="div1" style="display:none">
Hello!!!
</div>
<div id="div2" style="display:block">
<apex:outputPanel id="enhancedActivityList" >
<apex:outputPanel >
<apex:enhancedList type="Activity" height="600" rendered="{!isEnahanceListEnabled }" />
</apex:outputPanel>
</apex:outputPanel>
</div>
<apex:actionFunction name="enableListView" action="{!displayActivityTabEnhanceList}" oncomplete="switchview()" rerender="enhancedActivityList">
</apex:form>
<script>
function enableListViewController(){
enableListView();
}
function switchview()
{
// alternates the display - displays the List view
if( document.getElementById('div1').style.display == 'block' )
{
document.getElementById('div2').style.display = 'block';
document.getElementById('div1').style.display = 'none'
}
// alternates the display - displays the Card view
else
{
document.getElementById('div1').style.display = 'block';
document.getElementById('div2').style.display = 'none';
}
}
</script>
<apex:page>
// controller
public class cont{
public cont(){
isEnahanceListEnabled= false;
}
public boolean isEnahanceListEnabled {get;set;}
public void displayActivityTabEnhanceList(){
isEnahanceListEnabled =true;
//return null;
}
}
regards,
Manjunath