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.
Thank you very much for the help. I saw the code in cshtml but could not figure out the path:
<!--IG Loader--> <script type="text/javascript" src="http://localhost/ig_ui14.1/js/infragistics.loader.js"></script> <script src="js/infragistics.loader.js"></script> <script type="text/javascript"> $.ig.loader({ scriptPath: "http://localhost/ig_ui14.1/js/", cssPath: "http://localhost/ig_ui14.1/css/", resources: 'igGrid.*',
Can you please provide the files? Only then I can check the files, I tried using the files which I have in the samples, but it did not work.
Hi Raghavendra Dinavahi,
Thank you for your patience.
Upon further investigation, the igGrid utilizes the templating engine per cell, thus providing only one data member (object) at a time. The templating engine will not recognize an index in an object as it expects an array in order to do that.
As an alternative, I recommend enabling igGridSelection Activation to obtain the active row when a button is clicked. I have attached a sample that demonstrates this. Please run the sample and let me know if you have any questions regarding this approach.
Thank you for posting on our forums.
I have investigated the issue regarding the template indexing feature not being applied to your buttons. I have asked our Product Development to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 171607. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.
I will be sure to post the resolution onto this thread once more information becomes available.
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?