You need to sign in to do that
Don't have an account?

inlineeditsupport is not showing on vf page...
<apex:page extensions="OnlinePurchaseController" showHeader="false" sidebar="false" standardController="Order__c">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:selectList value="{!selectedCategory}" label="Category" size="1">
<apex:actionSupport event="onchange" action="{!getProducts}" reRender="products"/>
<apex:selectOptions value="{!category}">
</apex:selectOptions>
</apex:selectList>
</apex:pageBlockSection>
<apex:pageBlockSection >
<apex:pageBlockTable value="{!productList}" var="product" id="products">
<apex:column >
<apex:commandButton value="add" action="{!addToOrder}" reRender="orders,products">
<apex:param name="productID" value="{!product.ID}" assignTo="{!productID}"></apex:param>
</apex:commandButton>
</apex:column>
<apex:column value="{!product.Name}" />
<apex:column value="{!product.Price_Per_Item__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock >
<apex:pageBlockSection id="orders">
<apex:pageBlockTable value="{!orderList}" var="order" >
<apex:column value="{!order.Name}" headerValue="Name" />
<apex:column value="{!order.Price_Per_Item__c}" headerValue="Price Per Item" />
<apex:column headerValue="Quantity">
<apex:outputField value="{!order.Quantity__c}" >
<apex:inlineEditSupport showOnEdit="update" event="ondblclick" />
</apex:outputField>
</apex:column>
<apex:column headerValue="Total">
<apex:inputField value="{!order.Total__c}" />
</apex:column>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:selectList value="{!selectedCategory}" label="Category" size="1">
<apex:actionSupport event="onchange" action="{!getProducts}" reRender="products"/>
<apex:selectOptions value="{!category}">
</apex:selectOptions>
</apex:selectList>
</apex:pageBlockSection>
<apex:pageBlockSection >
<apex:pageBlockTable value="{!productList}" var="product" id="products">
<apex:column >
<apex:commandButton value="add" action="{!addToOrder}" reRender="orders,products">
<apex:param name="productID" value="{!product.ID}" assignTo="{!productID}"></apex:param>
</apex:commandButton>
</apex:column>
<apex:column value="{!product.Name}" />
<apex:column value="{!product.Price_Per_Item__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock >
<apex:pageBlockSection id="orders">
<apex:pageBlockTable value="{!orderList}" var="order" >
<apex:column value="{!order.Name}" headerValue="Name" />
<apex:column value="{!order.Price_Per_Item__c}" headerValue="Price Per Item" />
<apex:column headerValue="Quantity">
<apex:outputField value="{!order.Quantity__c}" >
<apex:inlineEditSupport showOnEdit="update" event="ondblclick" />
</apex:outputField>
</apex:column>
<apex:column headerValue="Total">
<apex:inputField value="{!order.Total__c}" />
</apex:column>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Your line becomes:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inlineEditSupport.htm
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_inline_editing.htm
before </apex:pageBlockTable> where you want to do inline editing
here is my code in which i want to apply inline edit support only on quantity feild but using this code inlineedit option is showing on both price per unit and quantity.please give me answer
<apex:page controller="OnlinePurchaseController" showHeader="false" sidebar="false" >
<apex:pageMessages id="showmsg"></apex:pageMessages>
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:selectList value="{!selectedCategory}" label="Category" size="1">
<apex:actionSupport event="onchange" action="{!getProducts}" reRender="products"/>
<apex:selectOptions value="{!category}">
</apex:selectOptions>
</apex:selectList>
</apex:pageBlockSection>
<apex:pageBlockSection title="Choose Items">
<apex:pageBlockTable value="{!productList}" var="product" id="products">
<apex:column >
<apex:commandButton value="add" action="{!addToCart}" reRender="orders,products,orderButton">
<apex:param name="productID" value="{!product.ID}" assignTo="{!productID}"></apex:param>
</apex:commandButton>
</apex:column>
<apex:column value="{!product.Name}" />
<apex:column value="{!product.Price_Per_Item__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock title="Cart Items" mode="inlineEdit" >
<apex:pageBlockSection id="orders" >
<apex:pageBlockTable value="{!PurchaseLineItemList}" var="order" >
<apex:column >
<apex:commandButton action="{!remove}" id="remove" value="remove" reRender="products,orders,orderButton">
<apex:param name="orderID" value="{!order.id}" assignTo="{!orderID}" />
</apex:commandButton>
</apex:column>
<apex:column value="{!order.Name}" headerValue="Name" />
<apex:column value="{!order.Price_Per_Unit__c}" headerValue="Price Per Item" />
<apex:column headerValue="Quantity" >
<apex:outputField value="{!order.Quantity__c}" >
<apex:inlineEditSupport event="ondblclick" showOnEdit="update">
<apex:commandButton value="checkQuantity" action="{!checkQuantity}" reRender="orders,products,showmsg,orderButton" id="update">
<apex:param name="orderID" value="{!order.id}" assignTo="{!orderID}" />
</apex:commandButton>
</apex:inlineEditSupport>
</apex:outputField>
</apex:column>
<apex:column headerValue="Total">
<apex:inputField value="{!order.Total_Amount__c}" />
</apex:column>
</apex:pageBlockTable>
</apex:pageBlockSection>
<apex:commandButton value="Order" action="{!addToOrder}" disabled="{!isAllCorrect}" id="orderButton" reRender="finalOrder">
</apex:commandButton>
<apex:pageBlockSection >
<apex:pageBlockTable value="{!orderList}" var="order" id="finalOrder">
<apex:column value="{!order.Grand_Total__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>