Quantcast
Channel: SCN : Popular Discussions - Code Exchange
Viewing all articles
Browse latest Browse all 1399

ListView is not getting refresh in HWC SUP

$
0
0

Hello Experts

 

For the first time the List is Working fine.But When I go to Home Page and again go to the required page the List is not working in HWC SUP 2.1.3.

 

 

I am using the below code to refresh

 

 

if (destScreenKey == "Relocation_Service_Status") {

 

 

  var listview = $('div[id="mainServiceStatusList"]');

  //Try to remove it first if already added

  if (listview.length > 0) {

  var ul = $(listview[0]).find('ul[data-role="listview"]');

  if (ul.length > 0) {

  htmlOutput = htmlOutput.replace('<div id="mainServiceStatusList"><ul data-role="listview">');

  ul.html(htmlOutput);

  //alert("1");

  ul.listview("refresh");

  //alert("2");

  }

  } else {

  $('#Relocation_Service_StatusForm').children().eq(2).hide();

  $('#Relocation_Service_StatusForm').children().eq(1).after(htmlOutput);

  }

  }

 

 

But Still it is not working.

 

 

Can any body share some idea to fix the issue.

 

 

 

Thanks to all.


Viewing all articles
Browse latest Browse all 1399

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>