is possible put in the grid and other dialog

Questionsis possible put in the grid and other dialog
Cristian Engelmann asked 8 years ago

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.

5 Answers
Cristian Engelmann answered 8 years ago

I try to say.
is possible execute the grid in the owner dialog?

Abu Ghufran answered 8 years ago

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.

Cristian Engelmann answered 8 years ago

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.

Abu Ghufran answered 8 years ago

For my suggested solution, No iframe required in div.
You need to put php code <?php echo $out ?> inside div.

Cristian Engelmann answered 8 years ago

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!

Your Answer

18 + 14 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?