| Page 1 of 1 | [ 1 post ] |
|
Specifically: 2.8.0r4 to 2.9.0.
I have a datatable which uses a context sensitive right-click menu, conditioned by the addition of a custom class via a custom row formatter. I'm in the process of converting to 2.9. My right click menus on my datatable failed. I discovered a behavior difference for which I have been unable to locate doc or reasoning for that I believe caused my trouble. It's easy to fix, once you know. In 2.8, if you have a custom row formatter and you added your own class, it became the first class in the list [0]. (Example: Schedule,group-first-row,yui-dt-last,yui-dt-even,yui-dt-highlighted) In 2.9, same situation, the class you add becomes the second class in the list [1]. (Example: yui-dt-rec,Schedule,group-first-row,yui-dt-last,yui-dt-even,yui-dt-highlighted Good to know if you are relying on the fact that the custom class you just added is in position [0], arguably not a good practice to rely on but, following the http://developer.yahoo.com/yui/examples/menu/tablecontextmenu.html example just the same. It seems a new class yui-dt-rec, is now there prior to the custom row formatter firing. Not sure if that is a 'new' class, or perhaps the timing of when it is added to the datatable changed. Carrying on with what I needed to fix to get my right-click menu fixed, if you follow the example in http://developer.yahoo.com/yui/examples/menu/tablecontextmenu.html you'll need to change aClasses[0] to aClasses[1] and all will be well. Hope this helps someone and if anyone knows the 'why', I am curious. Regards, Jim |
| Page 1 of 1 | [ 1 post ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group