Hi Guys,
I have a data table as shown in code pasted . where the first and second column have row category which gives a categorization with a twisty.
When i click on the twisty or item name the level beneath it expands. Eerything works fine.. but i need to have to links
Expand All and Collapse All which when clicked open the entire hierarchy or collapse it. Can anyone suggest a way of doing. Can it be done using javascript, I am not comfortable with java script .If someone has done this before please share the piece of code.Also please suggest the different ways of doing it. I am using RAD 7 and IBM JSF components.
<hx:dataTableEx border="0" cellpadding="2" cellspacing="0"
columnClasses="columnClass1" headerClass="headerClass"
footerClass="footerClass" rowClasses="rowClass1, rowClass2" binding="#{masterPublList.tablebindData}"
id="tableEx1" styleClass="dataTableEx" value="#{masterPublList.lst_publication}" var="varlst_publication">
<hx:columnEx id="columnEx3">
<hx:panelRowCategory id="rowCategory2"
styleClass="panelRowCategory"
value="#{varlst_publication.publCategory}" collapsed="true">
</hx:panelRowCategory>
</hx:columnEx>
<hx:columnEx id="columnEx2">
<hx:panelRowCategory id="rowCategory1"
styleClass="panelRowCategory" value="#{varlst_publication.publSubCategory1}">
<h:outputText id="text5" styleClass="outputText"></h:outputText>
</hx:panelRowCategory>
</hx:columnEx>
<hx:columnEx id="column1">
<hx:outputLinkEx id="linkEx1" styleClass="outputLinkEx" value="#{varlst_publication.publUrl}" target="_blank">
<h:outputText id="text3" styleClass="outputText" value="#{varlst_publication.publName}"></h:outputText>
</hx:outputLinkEx>
</hx:columnEx>
<hx:columnEx id="columnEx1">
<h:selectManyCheckbox disabledClass="selectManyCheckbox_Disabled"
id="checkbox1" styleClass="selectManyCheckbox" value= "#{varlst_publication.publLang}">
<f:selectItems value= "#{masterPublList.lst_lang}"/>
</h:selectManyCheckbox>
</hx:columnEx>
</hx:dataTableEx>
Thanks in anticipation