liferay - How to add SELECT ALL function in Search Container? -


i want have select all function in search container this:

enter image description here

this code of search container :

<liferay-ui:search-container delta="5"> <%-- <c:choose> <c:when test=""> </c:when> <c:otherwise> </c:otherwise> </c:choose> --%> <liferay-ui:search-container-results results="<%= reguseraccountlocalserviceutil.getreguseraccounts(searchcontainer.getstart(), searchcontainer.getend()) %>" total="<%= reguseraccountlocalserviceutil.getreguseraccountscount() %>" />  <liferay-ui:search-container-row classname="com.pmti.bir.triu.model.reguseraccount" keyproperty="acctid" modelvar="areguseraccount" >   <liferay-ui:search-container-column-text> <input name="rowchecker" type="checkbox" value="<%=areguseraccount.getacctid()%>" /> </liferay-ui:search-container-column-text>   <liferay-ui:search-container-column-text  property="acctstatusflag" name="status"  orderable="<%=true %>"/>  <liferay-ui:search-container-column-text property="acctfirstname"  name="full name"  orderable="<%= true %>"/>  <liferay-ui:search-container-column-text property="acctemailadd" name="username" orderable="<%= true %>"/>  <liferay-ui:search-container-column-text property="acctbusinessname" name="position"  orderable="<%= true %>" orderableproperty="acctlevelstatus"/>  <liferay-ui:search-container-column-text property="createdby" name="division" orderable="<%=true %>"/>  <liferay-ui:search-container-column-text property="acctusername" name="user type"  orderable="<%= true %>" orderableproperty="acctusername"/>  <liferay-ui:search-container-column-jsp align="right" path="/html/viewuseraccount/view_user_actions.jsp" /> </liferay-ui:search-container-row>  <liferay-ui:search-iterator /> </liferay-ui:search-container> 

and looks like:

enter image description here

how achieve have select inside search container? don't know how. please me. thank in advance! day!

you have specify rowchecker attribute search-container tag.

e.g. rowchecker=<%=new rowchecker(renderresponse)%>

and can all-selected values example code below.

liferay.util.listcheckedexcept(document.<portlet:namespace />fm, "<portlet:namespace />allrowids"); 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -