I open my dialog and this execute the grid.
when I opened the dialog show the grid for litte second.
I want to open the dialog and saw the grid.
thank you.
If the dialog loads new page and grid is inside that page, then it's not doable without loading new page.
If you can generate grid on same page in a div and make div hidden <div id='dialog_div' style='display:none'> …. grid here …. </div>
and on displaying dialog show that div in dialog, then it will show grid in ready mode.
Work out side Dialog but in side NOT.
Doesn't work!
I send the code.
File principal.html
<div id="lospodria" title="Lo que puedes hacer" hidden="true" style="font-size:12px; font-family:'Open Sans Semibold';">
<p class="validateTips">Selecciona y luego agrega.</p>
<div id="grillagp_pn" style="position:absolute;left:16px;top:95px;width:452px;height:220px;">
<iframe id="formulariocentro" name="formulariocentro" scrolling="no" style="position:absolute;left:5px;top:6px;width:442px;height:182px;overflow:hidden;"></iframe>
</div>
File pressbuton.js
$(document).ready(function ()
{
$( "#lospodria" ).dialog( "open" );
});
File dialogfunction.js
$(function()
{
$( "#lospodria" ).dialog
({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
},
height: 600,
width: 580,
modal: false,
buttons:
{
"Cerrar": function()
{
$( this ).dialog( "close" );
}
}
});
});
thank you for yuor time!
show the grid one second. that's all and hide it.
For my suggested solution, No iframe required in div.
You need to put php code <?php echo $out ?> inside div.
Thank you for suggest solution.
But I would change anything line code.
I thought if I use to delay 1 or 2 second, eureka!
my solution is:
$( "#buton_bn" ).click(function()
{
$( "#lospodria" ).dialog( "open" );
//the dialog function show and refresh itself function and I wait 1 second and show frame.
timeoutIDP = window.setTimeout(function()
{
call fuctionFrame();
clearTimeout(timeoutIDP);
}, 1000);
thank you again for yuor time!