+ Start a Discussion

Inline Editing for certain columns in Vf page with Pagination



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.





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:pageBlockSection >
                <apex:outputField value="{!contact.lastname}">
                    <apex:inlineEditSupport showOnEdit="saveButton, cancelButton"  hideOnEdit="editButton" event="ondblclick"  changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
                <apex:outputField value="{!contact.accountId}"/>
                <apex:outputField value="{!contact.phone}"/>

You can get more information


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

I need to use this, for only one field any sugeestions?