Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Row index issue with multiple item template

$
0
0

@sjcatch wrote:

I have two tables based out on two different itemTemplates, When I get try to row index of second table it gives always 0 instead of actual index. Can you please throw light what is the best way to find out index when we have more than one tables

 $("ScrollingTable",
                {
                  desiredSize: new go.Size(NaN, 75),  // fixed width
                  stretch: go.GraphObject.Fill,       // but stretches vertically
                  margin: new go.Margin(0, 0, 0, 5), name: 'CommentsPanel'
                },
                new go.Binding("TABLE.itemArray", "comments"),
                {
                  defaultAlignment: go.Spot.Left,
                  "TABLE.itemTemplate":
                    $(go.Panel, "TableRow",
                      {
.
.
.

 $(go.Panel, "Horizontal",
                          { width: 329 },
                          $(go.TextBlock,
                            {                          
                              mouseEnter: function (e, obj) {                            
                                var itempanel = obj.panel;
                                console.log(itempanel);
                                console.log(itempanel.row);
..
..

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles