Angular Datatable Search Filter and Show Entries was getting hidden when i cliked the link twice

Angular Datatable Search Filter and Show Entries was getting hidden when i cliked the link twice

meenatchi.smeenatchi.s Posts: 1Questions: 1Answers: 0

when i click Some link in left hand side menu,I have an Static table like this shown Below to add datatable features:

Source Reference Report

Search Search Search Search Search Search Search
Object Type 1 Object Name 1 Relationship Object Type 2 Object Name 2 SourcePath Source 2
ASM I53551.ASM Includes ASMCOPY PEMSGLB.acpy MACRO SOURCES\MACRO\PEMSGLB.ACPY
ASM U48000.ASM Includes ASMCOPY PEMSGLB.acpy MACRO SOURCES\MACRO\PEMSGLB.ACPY
ASM F38051.ASM UsesMacro MACRO F38051E.mac MACRO SOURCES\MACRO\F38051E.MAC
ASM I54200.ASM UsesMacro MACRO H50001E.mac MACRO SOURCES\MACRO\H50001E.MAC

And in controller when i clicked the link,am using following code as blow to include the page in ng-include main page

if(htmlFile == 'ddalocaccountfunding-sourcereferencereport.html'){
$scope.columnFilter = [];
//$scope.dtColumnDefs = [];
$scope.columnFilterObj = {};
$scope.colDetSFHtml = ['Object Type 1','Object Name 1','Relationship','Object Type 2','Object Name 2','SourcePath','Source 2'];
for(var i=0;i<$scope.colDetSFHtml.length;i++){
$scope.dtColumnDefs.push(DTColumnDefBuilder.newColumnDef(i));
$scope.columnFilterObj["type"]='text';
$scope.columnFilterObj["bRegex"]=false;
$scope.columnFilterObj["bSmart"]=true;
$scope.columnFilter.push($scope.columnFilterObj);
}

            $scope.dtOptions = DTOptionsBuilder.newOptions().withOption('order', []).withOption('bDestroy',true).withOption('deferRender',true)
              .withPaginationType('full_numbers')
              .withDisplayLength(10)
              .withColumnFilter({
                sPlaceHolder: "head:before",
                aoColumns:$scope.columnFilter
              }).withDOM('<lf<t>ip>');


        }

                 $scope.cont_html = htmlFile;

And in Main Page(index.html),am including this file in ng-include

Now the real problem is when i cliked the link first time,every thing is displaying perfectly with search filters,ShowEntres menu and pagination.
But when i clicked Second time the link,Search filter and show Entries is hidden.

Am really struck on this and done lot of research but nothing useful.
Any hep on this would be really appreciated

This discussion has been closed.