function getSelectedIndex (xwidget){

                var pan = xwidget.getPane();
                var mgr = pan.getManager();

                if (mgr.getSelectedItem() == null){
                         return -1;
                }

                var items = mgr.getItems();
                var i;
                for (i = 0; i < items.length; i++){

                         if (items[i] == mgr.getSelectedItem()){
                                 return i;
                         }
                }
                return -1;
  }

-- 
View this message in context: 
http://www.nabble.com/rownum-listview-tf1290995.html#a6505922
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to