Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#829065
something like this the contents.... the link i s correct.
Code: Select all
var gridId = 'productsList'; //set to the grid ID
var checkboxId = 'hide';     //set to ID of checkbox in grid to hide a row
var checkboxColNo = 1;       //set to the column number of the checkbox in grid
var hideButtonId = "showAllRows"; //set to ID of button to hide all rows

var formId = $("form").prop("id");
var reHideChecked = new RegExp("^\\["+gridId+"\\]\\[(\\d+)\\]\\["+checkboxId+"\\]$");
$("#"+hideButtonId).closest("div.row").css("float", "right");

$("#"+formId).setOnchange( function(fieldId, newVal, oldVal) {
  //if the "hide" checkbox was changed in the "productsList" grid
  var aMatch = fieldId.match( reHideChecked );
  
  if (aMatch) {
    //get the row number of the changed field
    var rowNo = aMatch[1]; 
    //subtract 1 from row number because starts counting from zero:
    $("#"+gridId).find("div.pmdynaform-grid-row").eq( rowNo - 1 ).hide();
    //uncheck the "hide" checkbox to reset it:
    $("#"+gridId).setValue('0', rowNo, checkboxColNo);
    
    //enable the "Show all rows" button:
    $("#"+hideButtonId).find("button").css('disabled', false);     
  } 
});

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]