Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3327

Aggregation binding content display problem in Dialog

$
0
0

Hi Experts,

 

My requirement is as shown below,

 

dialog.png

I am trying this way but text beside the radio button is not being displayed,

 

  I am using below code:

 

  var dialog = new Dialog({

  title: "Available Timings",

  contentWidth: "550px",

  contentHeight: "300px",

  content: new sap.m.RadioButton({

  items: {

  path: "/timings",

  template:

  new StandardListItem({

  title: "{slot1}"

  })

  }

  })

  });

 

Data file:

{

  "timings": [{

  "slot1": "11:30 AM to 12:30 PM",

  "slot2": "02:30 PM TO 03:30 PM"

 

  }, {

  "slot1": "10:30 AM to 12:30 PM",

  "slot2": "03:30 PM TO 05:30 PM"

  }]

}

 

Output :

 

dialog2.png

If I use List in place of RadioButton (as shown below), only List data appears but without radio button. I need both to  be displayed.

 

 

var dialog = new Dialog({

  title: "Available Timings",

  contentWidth: "550px",

  contentHeight: "300px",

  content: new List({

  items: {

  path: "/timings",

  template:

  new StandardListItem({

  title: "{slot1}"

  })

  }

  })

  });

 

 

Please correct me.


Viewing all articles
Browse latest Browse all 3327

Trending Articles



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