Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9180235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:59:44+00:00 2026-06-17T17:59:44+00:00

I am developing our mobile application in jQuery Mobile and PhoneGap. Each of our

  • 0

I am developing our mobile application in jQuery Mobile and PhoneGap. Each of our main pages will have a listview for displaying various types of data. If the app is running on a tablet, or in a landscape view where the screen is larger than certain width, I’d like the listviews to have the data-inset property set to true, and be rendered with rounded corners and borders. If it’s on a smaller screen that is under the predefined width, I’d like it to not have the inset property.

In my function, I do something like this to set the data-inset property:

var list = $("#testlist");
list.data("inset", true);
list.listview("refresh",true);

However, this doesn’t update the list. It stays formatted to fit the full width of the screen. How should I accomplish this goal? I thought about manually adding the styles, but I’d have to not only add it to the list, but each list item. Is there a way I can just toggle the data-inset property and trigger the framework to restyle it?

Here’s a semi-working jsFiddle that mimics what I am trying to do: http://jsfiddle.net/GQgV9/12/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:59:46+00:00Added an answer on June 17, 2026 at 5:59 pm

    There is no civilized way to do that. Refreshing will only update widget’s internals. In order to make the list inset, you have to:

    1. Set inset classes on the <ul>, .i.e. ui-listview-inset and ui-corner-all.
    2. Set inset option via .listview('option', 'inset', true).
    3. Refresh widget because otherwise list items won’t have round corners.

    Here is the modified version of your jsFiddle:
    http://jsfiddle.net/GQgV9/13/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At our company we are developing an application that will consists of several modules.
I'm in early (pre-coding) stages of developing a mobile web application using jQuery Mobile
Our team is developing a framework. In a different solution, we have a mobile
We are developing our new application in .Net 3.5 and we have started using
We're developing a jQuery Mobile application using ASP.NET 3.5, and we've run into a
we are developing a platform with web and one iphone application. We have our
In our application through the process of developing a lot of JAR files has
I am developing a PHP application using our XAMPP setup as a test server.
we are developing a J2SE application and we are using Hibernate for our persistence
We are developing .net applications and using Clearcase for our SCM needs. We have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.