{"action":"closed","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/217","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/217/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/217/events","html_url":"https://github.com/primefaces/primefaces/issues/217","id":72601959,"number":217,"title":"columnToggler confict with pagination function","user":{"login":"luongdangdung","id":10636377,"avatar_url":"https://avatars.githubusercontent.com/u/10636377?v=3","gravatar_id":"","url":"https://api.github.com/users/luongdangdung","html_url":"https://github.com/luongdangdung","followers_url":"https://api.github.com/users/luongdangdung/followers","following_url":"https://api.github.com/users/luongdangdung/following{/other_user}","gists_url":"https://api.github.com/users/luongdangdung/gists{/gist_id}","starred_url":"https://api.github.com/users/luongdangdung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luongdangdung/subscriptions","organizations_url":"https://api.github.com/users/luongdangdung/orgs","repos_url":"https://api.github.com/users/luongdangdung/repos","events_url":"https://api.github.com/users/luongdangdung/events{/privacy}","received_events_url":"https://api.github.com/users/luongdangdung/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-02T07:12:27Z","updated_at":"2015-05-02T07:57:14Z","closed_at":"2015-05-02T07:57:14Z","body":"I have datatable with 3 columns.\r\n**Problem**\r\nBy default I want to display 2 columns and hide 1 column (last column in this sample)\r\n\r\nI use columnToggler to mange show or hide last column. If I use pagination feature, the bug appear as follow steps:\r\n1. I click on columnToggler to view last column (everything will be ok)\r\n2.  I click on page 2 of datatable, data of lastcolumn will disappear. (maybe some issues about javascript and backing bean, i guest that)\r\n\r\n**Expectation**\r\nWhen I use columnToggler to show  any column, data of column must be appear when I show any page of datatable.\r\n\r\n**Sample code:**\r\n\r\n```html\r\n\t\t\t\t<p:dataTable id=\"dataTable\" var=\"row\"\r\n\t\t\t\t\tvalue=\"#{datatestBean.lazyEntity}\" paginator=\"true\"\r\n\t\t\t\t\tsortOrder=\"UNSORTED\" rows=\"10\"\r\n\t\t\t\t\tpaginatorTemplate=\"{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}\"\r\n\t\t\t\t\trowsPerPageTemplate=\"5,10,15\" selectionMode=\"single\"\r\n\t\t\t\t\trowKey=\"#{row.id}\" selection=\"#{datatestBean.entityRow}\"\r\n\t\t\t\t\tlazy=\"true\" filterEvent=\"enter\">\r\n\r\n\t\t\t\t\t<p:ajax event=\"rowSelect\" listener=\"#{datatestBean.selectRow()}\"\r\n\t\t\t\t\t\tupdate=\":form:panel\" />\r\n\r\n\r\n\t\t\t\t\t<f:facet name=\"header\">  \r\n                               #{msgs.mn_system_user}\r\n                               <p:commandButton id=\"toggler\"\r\n\t\t\t\t\t\t\ttype=\"button\" styleClass=\"colSelection\" icon=\"ui-icon-calculator\" />\r\n\t\t\t\t\t\t<p:columnToggler datasource=\"dataTable\" trigger=\"toggler\" />\r\n\t\t\t\t\t</f:facet>\r\n\r\n\t\t\t\t\t<p:column headerText=\"#{msgs.system_user_username}\">\r\n\t\t\t\t\t\t<h:outputText value=\"#{row.id}\" />\r\n\t\t\t\t\t</p:column>\r\n\r\n\t\t\t\t\t<p:column headerText=\"#{msgs.system_user_tenantid}\"\r\n\t\t\t\t\t\tfilterBy=\"#{row.tenantid}\" filterMatchMode=\"contains\"\r\n\t\t\t\t\t\tsortBy=\"#{row.tenantid}\">\r\n\t\t\t\t\t\t<h:outputText value=\"#{row.tenantid}\" />\r\n\t\t\t\t\t</p:column>\r\n\r\n\t\t\t\t\t<p:column headerText=\"#{msgs.system_user_playerid}\" visible=\"false\"\r\n\t\t\t\t\t\tfilterBy=\"#{row.playerid}\" filterMatchMode=\"contains\"\r\n\t\t\t\t\t\tsortBy=\"#{row.playerid}\">\r\n\t\t\t\t\t\t<h:outputText value=\"#{row.playerid}\" />\r\n\t\t\t\t\t</p:column>\r\n\r\n\t\t\t\t</p:dataTable>\r\n```"}}