Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
How to get row index using 2014.1 igHierarchical Gird
posted

Hi,

How can I get the rowindex in the igHierarchialGrid in controller.

grid.Columns.Add(new GridColumn { HeaderText = "Begin Signing",Key = "SignatureStatus",DataType = "string",Template = "#This comment will be ignored#<p>$i</p>",Width = "10%" });
I am seeing the reference http://help.infragistics.com/Help/Doc/jQuery/2014.1/CLR4.0/html/igTemplating%20Overview.html#_Ref317270135
Your help is much appreciated.
Parents
  • 495
    posted

    Hi,

    I changed the code as below:

    "id=btn_$i"

    grid.Columns.Add(new GridColumn { HeaderText = "Begin Signing",Key = "SignatureStatus",DataType = "string",Template = "<button id=btn_$i class='btn' {{if ${SignatureStatus} }} disabled=disabled {{/if}}  onclick=fanxyboxOpen(${SignerIndex},${eSign})>Start</button>  ",Width = "10%" });
    
     
    But when I see the html, the Id for the btn is btn_0, btn_0 and same for each button in the row. I current test data, I have 3 rows, so it should be btn_0, btn_1,btn_2, right? Why $i is not incrementing?
Reply Children