• ajith
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 1
    Replies

Hi all

 

i have applied a scroll for the pageblocktable using a ouputpanel but now i want to freeze the header of the pageblock table for that i googled and found that by using css we can do so and i tried the css on the headerclass it is not working when i tried to apply color to the text it worked, seting the position to fixed also worked but then freezing the header does not work i do not get an idea wat is the problem. plz help me

below is the code:

<apex:page Controller="mycontroller">
<style>
.container
{
   overflow:auto;  
   height:50px;     
}
.headerRow .headerStyle
{
     color: #CC0000 !important; 
     position:relative;
     TOP: expression(this.offsetParent.scrollTop-2);         
}

</style>
     <apex:form >
        <apex:pageBlock title="My Content" mode="edit">
           <apex:pageBlockSection title="My Content Section" columns="1"   > 
               <apex:outputPanel layout="block" styleClass="container"  >           
                <apex:pageBlockTable value="{!temp}" var="item" align="top" width="100%" columns="10" headerclass="headerStyle">
                    <apex:column value="{!item.password__c}" ></apex:column>                                         
                </apex:pageBlockTable>
             </apex:outputPanel>           
            </apex:pageBlockSection>
         </apex:pageBlock>
    </apex:form>
</apex:page>

 

 

  • September 27, 2010
  • Like
  • 0

Hi all

I have used a pageblocktable in my visualforce page and applied a scrollbar for that by using ouputpanel styleClass but this applies a scroll for the entire table where as i whant to freeze my table header and apply scroll for only the data part how can i do that.

here is my code:

<apex:page Controller="mycontroller">
<style>
.container
{
   overflow:auto;  
   height:50px;  
   align:bottom;
}
</style>
     <apex:form >
        <apex:pageBlock title="My Content" mode="edit">
           <apex:pageBlockSection title="My Content Section" columns="1"   > 
               <apex:outputPanel layout="block" styleClass="container"  >           
                <apex:pageBlockTable value="{!temp}" var="item" align="top" width="100%" columns="10" >
                    <apex:column value="{!item.password__c}" ></apex:column>
                    <apex:column value="{!item.password__c}"></apex:column>  
                    <apex:column value="{!item.password__c}"></apex:column> 
                    <apex:column value="{!item.password__c}"></apex:column> 
                    <apex:column value="{!item.password__c}"></apex:column> 
                    <apex:column value="{!item.password__c}"></apex:column>
                    <apex:column value="{!item.password__c}"></apex:column>                      
                </apex:pageBlockTable>
             </apex:outputPanel>           
            </apex:pageBlockSection>
         </apex:pageBlock>
    </apex:form>
</apex:page>

 

 

 

  • September 21, 2010
  • Like
  • 1

Hi all

 

Im trying to import data from a csv file to force.com custom object called temp containing fields (password,start_date,value). The csv file contains only 1 set of data this is just for testing if this works I need to import 1000's of data, csv format is as below:

-|-------------- |----------------|---------|

 |password | start_date | value |

 |---------------|----------------|----------|

 |firstrow     | aaa         | 123.00|

 

im using import wizard to import data but after uploading the file I get some junk values so im not able to map the fields properly can u help me. I will place the print screen of what im finding after uploading the csv file take a look at it and help me plz.

 

  • September 21, 2010
  • Like
  • 0

Hi all

 

Im trying to import data from a csv file to force.com custom object called temp containing fields (password,start_date,value). The csv file contains only 1 set of data this is just for testing if this works I need to import 1000's of data, csv format is as below:

-|-------------- |----------------|---------|

 |password | start_date | value |

 |---------------|----------------|----------|

 |firstrow     | aaa         | 123.00|

 

im using import wizard to import data but after uploading the file I get some junk values so im not able to map the fields properly can u help me. I will place the print screen of what im finding after uploading the csv file take a look at it and help me plz.

  • September 20, 2010
  • Like
  • 0

Hi all

I have used a pageblocktable in my visualforce page and applied a scrollbar for that by using ouputpanel styleClass but this applies a scroll for the entire table where as i whant to freeze my table header and apply scroll for only the data part how can i do that.

here is my code:

<apex:page Controller="mycontroller">
<style>
.container
{
   overflow:auto;  
   height:50px;  
   align:bottom;
}
</style>
     <apex:form >
        <apex:pageBlock title="My Content" mode="edit">
           <apex:pageBlockSection title="My Content Section" columns="1"   > 
               <apex:outputPanel layout="block" styleClass="container"  >           
                <apex:pageBlockTable value="{!temp}" var="item" align="top" width="100%" columns="10" >
                    <apex:column value="{!item.password__c}" ></apex:column>
                    <apex:column value="{!item.password__c}"></apex:column>  
                    <apex:column value="{!item.password__c}"></apex:column> 
                    <apex:column value="{!item.password__c}"></apex:column> 
                    <apex:column value="{!item.password__c}"></apex:column> 
                    <apex:column value="{!item.password__c}"></apex:column>
                    <apex:column value="{!item.password__c}"></apex:column>                      
                </apex:pageBlockTable>
             </apex:outputPanel>           
            </apex:pageBlockSection>
         </apex:pageBlock>
    </apex:form>
</apex:page>

 

 

 

  • September 21, 2010
  • Like
  • 1

Hi all

 

Im trying to import data from a csv file to force.com custom object called temp containing fields (password,start_date,value). The csv file contains only 1 set of data this is just for testing if this works I need to import 1000's of data, csv format is as below:

-|-------------- |----------------|---------|

 |password | start_date | value |

 |---------------|----------------|----------|

 |firstrow     | aaa         | 123.00|

 

im using import wizard to import data but after uploading the file I get some junk values so im not able to map the fields properly can u help me. I will place the print screen of what im finding after uploading the csv file take a look at it and help me plz.

 

  • September 21, 2010
  • Like
  • 0