+ Start a Discussion
Surender reddy SalukutiSurender reddy Salukuti 

may i know about <apex:inlineedit support>

Hi Every one,

May i know about <apex:inlineedit support> 
where it is  used and why it is used .

if you know any one about it please tell me

Thank you
surenyder redd
TylerBrooksTylerBrooks
Here is the Salesforce documentation for the tag: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inlineEditSupport.htm

Everything you should have questions on should be there but basically it helps adjust how you edit a field/value if you are using inline editing in your VF Page. You can adjust the behavior of how to edit the field I.E. onClick, ondblclick, etc., what buttons are displayed when editing, styles.
The documentation also states where it can be used, which is under any one of the following tags:

<apex:dataList>
<apex:dataTable>
<apex:form>
<apex:outputField>
<apex:pageBlock>
<apex:pageBlockSection>
<apex:pageBlockTable>
<apex:repeat>

Regards,

Tyler
Raj VakatiRaj Vakati
This component provides inline editing support to <apex:outputField> and various container components. In order to support inline editing, this component must also be within an <apex:form> tag.
The <apex:inlineEditSupport> component can only be a descendant of the following tags:
<apex:dataList>
<apex:dataTable>
<apex:form>
<apex:outputField>
<apex:pageBlock>
<apex:pageBlockSection>
<apex:pageBlockTable>
<apex:repeat>


https://www.x2od.com/2011/02/28/vf-inlineediting-love.html

http://salesforcedeveloperblog.blogspot.com/2011/07/apexinlineeditsupport-tag-in.html


http://sfdcsrini.blogspot.com/2014/08/inline-editing-in-visualforce-page.html

http://burnignorance.com/salesforce-tips/how-to-use-inline-edit-in-a-custom-visualforce-ui-page/

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inlineEditSupport.htm
Deepali KulshresthaDeepali Kulshrestha
Hi Surender reddy Salukuti,
apex:inlineEditSupport
This component provides inline editing support to <apex:outputField> and various container components. In order to support inline editing, this component must also be within an <apex:form> tag.

The <apex:inlineEditSupport> component can only be a descendant of the following tags:
<apex:dataList>
<apex:dataTable>
<apex:form>
<apex:outputField>
<apex:pageBlock>
<apex:pageBlockSection>
<apex:pageBlockTable>
<apex:repeat>


For this example to render properly, you must associate the Visualforce page
with a valid contact record in the URL.
For example, if 001D000000IRt53 is the contact ID, the resulting URL should be:
https://Salesforce_instance/apex/myPage?id=001D000000IRt53

<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>

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha