You need to sign in to do that
Don't have an account?
sk kumar
vfpage-----
<apex:page Controller="Employee" showheader="false">
<apex:form >
<script type='text/javascript'>
function runOnEnter(ev) {
if (window.event && window.event.keyCode == 13 || ev.which == 13) {
searchEmpRecs();
return false;
} else {
return true;
}
}
</script>
<apex:inputText value="{!searchString}" onkeypress="return runOnEnter(event);"/>
<apex:commandButton value="Submit" action="{!searchEmp}" reRender="pgblcktbl"/>
<apex:pageBlock title="Employee Details">
<apex:pageBlockTable value="{!empList}" var="emp" id="pgblcktbl">
<apex:column value="{!emp.First_Name__c}"/>
<apex:column value="{!emp.Last_Name__c}"/>
<apex:column value="{!emp.EmpID__c}"/>
<apex:column value="{!emp.Email__c }"/>
<apex:column value="{!emp.contact__c}"/>
<apex:column value="{!emp.cityy__c}"/>
<apex:column value="{!emp.Address__c}"/>
<apex:column value="{!emp.Department__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:actionFunction name="searchEmpRecs" action="{!searchEmp}" reRender="pgblcktbl"/>
</apex:form>
</apex:page>
class---------
public class Employee {
public Employee() {
empList = new List<Employees__c>();
empList = [select id,First_Name__c,Last_Name__c,EmpID__c,Email__c,Department__c,contact__c,cityy__c,Address__c from Employees__c];
}
Public List<Employees__c> empList{get;set;}
Public string searchString{get;set;}
Public void searchEmp(){
searchString += '%';
empList = new List<Employees__c>();
empList = [select First_Name__c,Last_Name__c,EmpID__c,Email__c,contact__c,cityy__c,Department__c,Address__c from Employees__c where First_Name__c like : searchString limit 10];
}
}
i hav created a vf page to retrive the employee details from my employee object..it working well...but i want do it with "jqgrid" anyone pls help me & how could i do it using jquery...thnx in advance
vfpage-----
<apex:page Controller="Employee" showheader="false">
<apex:form >
<script type='text/javascript'>
function runOnEnter(ev) {
if (window.event && window.event.keyCode == 13 || ev.which == 13) {
searchEmpRecs();
return false;
} else {
return true;
}
}
</script>
<apex:inputText value="{!searchString}" onkeypress="return runOnEnter(event);"/>
<apex:commandButton value="Submit" action="{!searchEmp}" reRender="pgblcktbl"/>
<apex:pageBlock title="Employee Details">
<apex:pageBlockTable value="{!empList}" var="emp" id="pgblcktbl">
<apex:column value="{!emp.First_Name__c}"/>
<apex:column value="{!emp.Last_Name__c}"/>
<apex:column value="{!emp.EmpID__c}"/>
<apex:column value="{!emp.Email__c }"/>
<apex:column value="{!emp.contact__c}"/>
<apex:column value="{!emp.cityy__c}"/>
<apex:column value="{!emp.Address__c}"/>
<apex:column value="{!emp.Department__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:actionFunction name="searchEmpRecs" action="{!searchEmp}" reRender="pgblcktbl"/>
</apex:form>
</apex:page>
class---------
public class Employee {
public Employee() {
empList = new List<Employees__c>();
empList = [select id,First_Name__c,Last_Name__c,EmpID__c,Email__c,Department__c,contact__c,cityy__c,Address__c from Employees__c];
}
Public List<Employees__c> empList{get;set;}
Public string searchString{get;set;}
Public void searchEmp(){
searchString += '%';
empList = new List<Employees__c>();
empList = [select First_Name__c,Last_Name__c,EmpID__c,Email__c,contact__c,cityy__c,Department__c,Address__c from Employees__c where First_Name__c like : searchString limit 10];
}
}
Hi @sk;
I dont know if this will but its worth to shot;
http://www.guriddo.net/demo/guriddojs/
you need to give a set of data. It can be in XML from,JSON from or simple js Array. SFDC provides you a json generator.
Sample JSON Generator;
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_json_jsongenerator.htm
Sample JSON;
AND Sample JQGrid
http://www.guriddo.net/demo/guriddojs/
Please mark the answer as Best Answer if this is the answer you are looking forAll Answers
Hi @sk;
I dont know if this will but its worth to shot;
http://www.guriddo.net/demo/guriddojs/
you need to give a set of data. It can be in XML from,JSON from or simple js Array. SFDC provides you a json generator.
Sample JSON Generator;
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_json_jsongenerator.htm
Sample JSON;
AND Sample JQGrid
http://www.guriddo.net/demo/guriddojs/
Please mark the answer as Best Answer if this is the answer you are looking for