+ Start a Discussion
PravinPravin 

Inline Editing for certain columns in Vf page with Pagination

Hi

 

I am using pagination to show 500 records with 75 records/page in visualforce page. I have to make some fields inline edit and for that when i am ptting  mode="inlineEdit" in pageblock tag then it makes the entire 500 records with all fields inline edit and also the changes are not getting reflected.

 

Any help will be greatful.

 

Thanks

Pravin...

jd123jd123

HI Pravin,

 

which fields you want edit for those input fields you can write

 

<apex:inlineEditSupport>simple example

<apex:page standardController="Contact">
    <apex:form >
        <apex:pageBlock mode="inlineEdit">
            <apex:pageBlockButtons >
                <apex:commandButton action="{!edit}" id="editButton" value="Edit"/>
                <apex:commandButton action="{!save}" id="saveButton" value="Save"/>
                <apex:commandButton onclick="resetInlineEdit()" id="cancelButton" value="Cancel"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection >
                <apex:outputField value="{!contact.lastname}">
                    <apex:inlineEditSupport showOnEdit="saveButton, cancelButton"  hideOnEdit="editButton" event="ondblclick"  changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
                </apex:outputField>
                <apex:outputField value="{!contact.accountId}"/>
                <apex:outputField value="{!contact.phone}"/>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>


You can get more information

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_inlineEditSupport.htm

IF your question is resolved please mark as accept as solution if not please let me know.

SAHG-SFDCSAHG-SFDC
I need to use this, for only one field any sugeestions?