I have the following set up in markup, which is inside a multi level hierarchy:
In JS I have this:
What I want to do is get the gridrow so I can expand/collapse the hierarchy when the combobox index is changed on the client. I've tested that my client hierarchy is looping and expanding all levels correctly. I did this by adding the RowClick handler on the grid. Now all I want to do is find the current rowindex when the combobox value is changed on the client. It feels like it should be simple, but I've been trying to do it for hours.
thanks,
Steve
| <rad:GridTemplateColumn HeaderText="Permission"> |
| <ItemTemplate> |
| <rad:RadComboBox ID="rcbParentCategoryPermission" runat="server" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"></rad:RadComboBox> |
| </ItemTemplate> |
| </rad:GridTemplateColumn> |
In JS I have this:
| function OnClientSelectedIndexChanged(sender, eventArgs) { |
| var row = sender.get_element().parentNode.parentNode; |
| // how to get the rowindex from this? |
| } |
What I want to do is get the gridrow so I can expand/collapse the hierarchy when the combobox index is changed on the client. I've tested that my client hierarchy is looping and expanding all levels correctly. I did this by adding the RowClick handler on the grid. Now all I want to do is find the current rowindex when the combobox value is changed on the client. It feels like it should be simple, but I've been trying to do it for hours.
thanks,
Steve