OnRenderGridInit()

void OnRenderGridInit(inChapterIndex, ioParams)

Description

This callback function is called when a chapter is set as compound grid and there is a need to change/update some of the parameters, please click here to learn more on compound grid.

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
inCahpterIndex Int32 the chapter index 
ioParams   The different parameters to set

 

Return Type

void

 

Example

This example below will check if the compound grid is chapter 3 and if true it will do the following:

  • Align the grid center 
  • Align the Column headers to top
  • Align the Row headers to bottom
  • Set the column width percentage accordingly 

function OnRenderGridInit(inChapterIndex, ioParams){
if (inChapterIndex == 3){ 
ioParams.CellAlignment = eRenderGridAlignment.Center;
ioParams.ColumnHeaderAlignment = eRenderGridAlignment.Top;
ioParams.RowHeaderAlignment = eRenderGridAlignment.Bottom;

ioParams.Columns[0].WidthPercentage = 10;
ioParams.Columns[1].WidthPercentage = 70;
ioParams.Columns[2].WidthPercentage = 20;
}
}

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.