Select to view content in your preferred language

dojo accordion seleted pan

1330
3
Jump to solution
05-17-2012 07:04 AM
ZahidChaudhry
Deactivated User
I have accordion pan and I want to get the ID of the selected panel(contentpane) on click or change or whatever event it has. After Reading/googling the wonderful dojo documentation, i reached the conclusion that this is probably the only place i can get answer...DOJO sucks but Dojo documentation sucks even more....

so please help me here....onClick event is listed on dojo's documentation but cant find implementation to get the selected child or any child....
0 Kudos
1 Solution

Accepted Solutions
ZahidChaudhry
Deactivated User
Accordion pane's have a selectedChildWidget property. You could do something like:
dijit.byId("accordionId").selectedChildWidget.id


To get the ID of the selected content pane inside an accordion dijit.


Thanks for the help....I was trying dojo.byId instead of dijit.byId..


Thanks again

View solution in original post

0 Kudos
3 Replies
derekswingley1
Deactivated User
Accordion pane's have a selectedChildWidget property. You could do something like:
dijit.byId("accordionId").selectedChildWidget.id


To get the ID of the selected content pane inside an accordion dijit.
0 Kudos
ZahidChaudhry
Deactivated User
Accordion pane's have a selectedChildWidget property. You could do something like:
dijit.byId("accordionId").selectedChildWidget.id


To get the ID of the selected content pane inside an accordion dijit.


Thanks for the help....I was trying dojo.byId instead of dijit.byId..


Thanks again
0 Kudos
derekswingley1
Deactivated User
Thanks for the help....I was trying dojo.byId instead of dijit.byId..


This could cause problems if you're expecting to be working with the actual content pane�?? dojo.byId returns a DOM node while dijit.byId returns a dojo dijit.
0 Kudos