ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
ajaxlist in jquery mobile page
Title:
B
I
{code}
?
I have a ajaxlist in a jquery ui mobile page, A strange problem occour ... on loading the items seem not in mobile style, but if I do a search (with data-filter), the style is ok. You can see also the picture on https://dl.dropboxusercontent.com/u/24349465/ajaxlist.png This is my source ....(the second list is from firebug) <div data-role="content" data-theme="d"> @Html.HiddenFor(x => @Model.Type) @Html.Awe().AjaxList("MobileCompanies").Parent(o => o.Type, "type").MoreText("More").HtmlAttributes(new { data_role = "listview", data_filter = "true", data_filter_placeholder = "Search ...", data_inset = "true" }) @* this is the source from firebug *@ <ul data-role="listview" data-filter="true" data-filter-placeholder="Search ..." data-inset="true" id="MobileCompanies" class="awe-ajaxlist awe-srl ui-listview ui-listview-inset ui-corner-all ui-shadow"> <li> <a href="/Mobile/Company/Details/7302">Distribuzioni Generi</a> </li> <li> <a href="/Mobile/Company/Details/7304">Franco Bianchi</a> </li> <li> <a href="/Mobile/Company/Details/7303">Terzo Franco</a> </li> <li> <a href="/Mobile/Company/Details/7313">xxxx-mod</a> </li> </ul> </div>
Save Changes
Cancel
mtugnoli
asked at 07 Apr 2014
it could be due to the way jquery mobile works, if loading an ajaxlist works as you want it after the page load maybe some scripts are getting executed on document ready
at 07 Apr 2014
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK