Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET Master Page and Kendo UI Mobile Views
    primarykey
    data
    text
    <p>Let's say I have to use an ASP master page and setup a Kendo UI Mobile layout in it, while using the <code>&lt;asp:contentplaceholder&gt;</code> to load aspx page content. To have this working properly, I have tried the following(stripping tag attributes here for readability):</p> <p><strong>Master Page File:</strong></p> <pre><code>&lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;form&gt; &lt;asp:contentplaceholder&gt;&lt;/asp:contentplaceholder&gt; &lt;/form&gt; &lt;!-- Master Layout --&gt; &lt;div data-role="layout" data-id="mMasterLayout"&gt; &lt;header data-role="header"&gt; &lt;/header&gt; &lt;footer data-role="footer"&gt; &lt;/footer&gt; &lt;/div&gt; &lt;!-- load scripts here (jquery, kendo, etc.) --&gt; &lt;script&gt; var app; $(document).ready(function () { app = new kendo.mobile.Application(document.forms, { layout: "mMasterLayout" }); }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p><strong>Some other page using the Master Page File:</strong></p> <pre><code>&lt;asp:Content&gt; &lt;!-- View --&gt; &lt;div data-role="view"&gt; &lt;!-- Content --&gt; &lt;div data-role="content"&gt; . . . &lt;/div&gt; &lt;/div&gt; &lt;/asp:Content&gt; </code></pre> <p>So, inspecting the DOM I find no errors and Kendo is rendering appropriately. The problem is, my screen is blank (only see the body background color). In the DOM, the expected view to be shown is infact visible.</p> <p>Anyone have any thoughts to help? I feel like targeting the form container for Kendo to render my views is the culprit, but I'm not sure. I also tried inheriting the width and height of the body tag to see if that might help but it did nothing.</p> <p>Also, please note that I have to make it work this way, as the solution is not setup as MVC so no MVVM or anything like that is a possibility.</p> <p>I am using the latest release of both Kendo UI Mobile and JQuery. Thank you!</p> <p><strong>Update:</strong></p> <p>Hardcoding a fixed height for the <code>form</code> tag in my master page file does yield the desired contents of my view. The question left I suppose is.. what is the best way to expand this form tag to the height of the document body..</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload