Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
New Contributor
josepatience
Posts: 8
Registered: ‎12-18-2012
My Carrier: Mobilicity

QML list with XML datasource and 3 radio buttons per list item.

[ Edited ]

Hello,

 

I'm trying to create a list in QML, that has 3 associated radio buttons per list item and The list source is an xml file.

 

The list item is a text.  The list item would read: " Are all applications processed in a uniform and consistent manner....."

I noticed that The text is too long for BB10 simulator screen and most of it is not displayed.

 

  • How do I wrap The text so that all of it can be displayed on The screen.
  • How do I create a list with 3 radio buttons per list items? ( Background info: The list is a questionnaire where The user is expected to select one of The three radio button as answer -- Yes/Maybe/No)

The radio buttons would be placed to the right hand side of the screen with each list item.

 

Here is what I have so far

 ListView {
            dataModel: XmlDataModel { source: "Chapter1.xml" }
 
            function itemType(data, indexPath) {
            return (indexPath.length == 1 ? 'header' : 'item');
                }
            }

 and

<model>
  <header title="Application Processes and Requirements">
    <item title="Are all applications processed in a uniform and consistent manner throughout " />
    <item title="Are the same standardized application forms always used?" />
    <item title="Are there clear written practices and documentation in place covering all aspects of the application processes for first time applicants and applications for renewal?" />
  </header>

</model>

 

 Thanks for the help

Please use plain text.