Hi,
I have a tabstrip that has a dataSource with an array of items. I also use the dataContentField to specify which property in the dataItem contains the content HTML. The tabs are binding correctly and rendering the correct tab contents dynamically. Now, I need to figure out which tab is selected and which dataItem is bound to the selected tab so that I can add a new dataItem in the dataSource after the selected tab's dataItem. Theoretically, this will trigger the tabstrip to dynamically generate a new tab after the selected tab. I am using tabstrip.select(), but that just gives me the element. I tried to use tabstrip.dataItem(tabstrip.select()), but dataItem doesn't seem to exist on tabstrip, unlike other widgets like Grid etc. How can I get the dataItem from a selected tab element? It would also work if I can get the index of the selected tab element, but that is less elegant.
Thanks,
Michelle