function calculateGridNewDimensions(gridId, gridContainerId) {
  var availableHeight = $(window).height() - $('#' + gridId).offset().top - DATAGRID_BOTTOM_PADDING;
  var availableWidth = $('#' + gridContainerId).width();
  var newHeight = availableHeight;
  var newWidth = availableWidth;
  // we want to keep a minimum datagrid size, apply these minimum if required
  if (newHeight < DATAGRID_MIN_HEIGHT) {
    newHeight = DATAGRID_MIN_HEIGHT;
  }
  if (newWidth < DATAGRID_MIN_WIDTH) {
    newWidth = DATAGRID_MIN_WIDTH;
  }
  return {
    height: newHeight,
    width: newWidth
  };
}
/**
* Private function, calculate the datagrid new height/width from the available space, also consider that a % factor might be applied to calculation
* object gridOptions
*/
Private function, calculate the datagrid new height/width from the available space, also consider that a % factor might be applied to calculation
object gridOptions
Private function calculate the datagrid new height / width from the available space also consider that a % factor might be applied to calculation object gridOptions
function calculateGridNewDimensions(gridId, gridContainerId) {
  var availableHeight = $(window).height() - $('#' + gridId).offset().top - DATAGRID_BOTTOM_PADDING;
  var availableWidth = $('#' + gridContainerId).width();
  var newHeight = availableHeight;
  var newWidth = availableWidth;
  if (newHeight < DATAGRID_MIN_HEIGHT) {
    newHeight = DATAGRID_MIN_HEIGHT;
  }
  if (newWidth < DATAGRID_MIN_WIDTH) {
    newWidth = DATAGRID_MIN_WIDTH;
  }
  return {
    height: newHeight,
    width: newWidth
  };
}
function calculateGridNewDimensions ( gridId , gridContainerId ) { var availableHeight = $ ( window ) . height ( ) - $ ( '#' + gridId ) . offset ( ) . top - DATAGRID_BOTTOM_PADDING ; var availableWidth = $ ( '#' + gridContainerId ) . width ( ) ; var newHeight = availableHeight ; var newWidth = availableWidth ; if ( newHeight < DATAGRID_MIN_HEIGHT ) { newHeight = DATAGRID_MIN_HEIGHT ; } if ( newWidth < DATAGRID_MIN_WIDTH ) { newWidth = DATAGRID_MIN_WIDTH ; } return { height : newHeight , width : newWidth } ; }
Private function, calculate the datagrid new height/width from the available space, also consider that a % factor might be applied to calculation
object gridOptions
Private function calculate the datagrid new height / width from the available space also consider that a % factor might be applied to calculation object gridOptions
// we want to keep a minimum datagrid size, apply these minimum if required