This is a migrated thread and some comments may be shown as answers.

Tabstrip added to the wrong detail?

1 Answer 54 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 30 Mar 2012, 03:09 PM
I have a inserted one tabstrip when I click one detail.

But when I clicked on the next detail, the tabstrip is added to the previous row instead of the current one?

Is there a method to target the tabstrip adding dynamically to the current selected row/detail??

                    var tabstrip = $(".tabstrip").data("kendoTabStrip");
                    var nextItem = tabstrip.select().next();              
                    if (!nextItem.length) {
                        tabstrip.insertAfter({ text: 'metadata', contentUrl: URL }, tabstrip.tabGroup.children("li:last"));                                       
                        tabstrip.select(tabstrip.tabGroup.children().first());       
                    }

1 Answer, 1 is accepted

Sort by
0
George
Top achievements
Rank 1
answered on 02 May 2012, 10:03 AM
found the answer. you have to target the destination div tag. that is connected to the master row with the correct data-uid, in this case treeview.

var SetTreePos = $('#gridLAYER').data("kendoGrid").table.find('tr[data-uid="' + mRowID + '"]').next('tr.k-detail row').find('.tabstrip').find('#treeview');

i wonder if there is a way to shorten this..
Tags
TabStrip
Asked by
George
Top achievements
Rank 1
Answers by
George
Top achievements
Rank 1
Share this question
or