function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lovecrmlovecrm 

Editable grid

Hi ,

 

I need help in creating editable grid.

 

Iam having a multi button menu with value1 , value2 options.

 

When i click Value1 then an editable grid with data from Products object should be displayed in the lbelow section of the visualforce page.

 

This grid contains picklist values, textbox and action buttons delete and edit.

 

Can you please give me any idea to move on this.

 

Thankyou,

Carol.

Pradeep_NavatarPradeep_Navatar

You can edit grid cell through Active Widget Grid Concept. Try out the sample code given below :

 

           var myCells = [

                       ["MSFT","Microsoft Corporation", "314,571.156"],

                       ["ORCL", "Oracle Corporation", "62,615.266"]

                          ];

            var myHeaders = ["Ticker", "Company Name", "Market Cap."];

            // create grid object

           var obj = new AW.UI.Grid;

           var value = obj.getCellEditable();

           obj.setCellEditable(value);

 

           Enables or disables editing of the cell text by the end user. The default value is false (editing is disabled).

 

           obj.setCellEditable(true); // all cells editable

 

Hope this helps.