Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Check out working with PageManagerRequests: <a href="http://msdn.microsoft.com/en-us/library/bb398976%28v=VS.90%29.aspx" rel="nofollow" title="MSDN Working With PageRequestManager">MSDN Working With PageRequestManager</a></p> <ol> <li><a href="http://msdn.microsoft.com/en-us/library/bb310960%28v=VS.90%29.aspx" rel="nofollow" title="Sys.WebForms.PageLoadingEventArgs Class">Sys.WebForms.PageLoadingEventArgs Class</a></li> <li><p><a href="http://msdn.microsoft.com/en-us/library/bb383832%28v=VS.90%29.aspx" rel="nofollow" title="Sys.WebForms.PageRequestManager pageLoading Event">Sys.WebForms.PageRequestManager pageLoading Event</a></p> <pre><code>$(function() { Sys.WebForms.PageRequestManager.getInstance().add_pageLoading(beautify); }); function beautify(sender, eventArgs) { // If we have event args if (eventArgs != null) { // for each panel that is being updated, update the html by adding color red // to select, span, input elements // must remember to call .html() to put html back into the panelsUpdating[i], otherwise it puts in the jQuery Object for (var i = 0; i &lt; eventArgs.get_panelsUpdating().length; i++) { //My test code //var content = eventArgs._panelsUpdating[i].outerHTML; //var jContent = $(content); //$("input", jContent).css("color", "red"); //jContent = $('&lt;div&gt;').append(jContent) //var jContentToContent = jContent.html(); //alert(jContentToContent); //eventArgs._panelsUpdating[i].outerHTML = jContentToContent; <pre><code> //Cleaned up var jContent = $(eventArgs._panelsUpdating[i].outerHTML); $("select, span, input", jContent).uniform(); jContent = $('&amp;lt;div&amp;gt;').append(jContent); eventArgs._panelsUpdating[i].outerHTML = jContent.html(); } } </code></pre> } </code></pre></li> </ol> <p><strong>Edit:</strong> I think you understood that the issue was the elements were being placed into the DOM (and therefore painted) before your javascript had a chance to make them uniform(). This intercepts the UpdatePanel and uniform()'s the code prior to it inserted into the DOM</p> <p><strong>Edit 2</strong> Alright, I've updated it a bunch, I tested this with my test code there and then included the code you're likely to add. Also, I took a short cut in eventArgs._panelsUpdating - i should really be using the get and set functions, but this works.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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