Is it possible to display dtg into a DialogBox?
Wed, 08/31/2011 - 10:25
Hi everybody, i'm new in qcubed community. I introduce myself, i'm laurent, a rookie web developper in France, please excuse my english .
I'm posting here because i'm wondering if there is a way to display datagrids into a QDialogBox and what's the better way to do that?
Otherwise, I think I will need a QPannel to handle what i want to do.
Best regards,
Laurent

Wellcome laurent3,
Hope you like develop with QCubed, and for your question...
"Yes, you can put a QDatagrid on a QDialogBox"
Just remember the QDialogBox is originally a jQuery DialogBox and if a I'm not wrong the QDialogBox is a QPanel where you can add controls an render wherever you want on the tpl.php file.
Look in the examples for QPanel.
Hope this helps, if you need i can make it a little example for you.
JMI
Thank you jmirancid,
I've made some unsuccessful tries but I will retry today and follow your advice to make it like it's done with QPannel.
Regards
Hello everyone, I've succeeded what I wanted to do.
But, I've got still an issue with my dialog box.
Indeed, I've made a form with some text boxs and list boxs
and with a button to summon the dialog box, all works fine
under FF but on IE 6 it renders some listboxs from the form
into the dialogbox and I do not know how can I resolve this
problem.
This is an overview of my problem (There are list boxes from
the form beneath in front of my datagrid..) :
Your help is welcome, best regards.
Laurent
Hello Laurent,
I don't know whether one can help you a lot, but I feel with you. Having to support IE6 can be nightmare-ish.
One thought I just had is that the width of selects might be a bit big in relation to the table. Firefox and other brwosers might correct for this by reducing the size of the select. Try to increase the width of the table and make the selects very small and see what happens.
One other way would be not to support IE6.
<?phpif (QApplication::IsBrowser(QBrowserType::InternetExplorer_6_0)) {
echo "Sorry! IE6 is not supported! <a href=''>Back</a>";
die();
}
?>
If the above does not help than you will have to debug your style sheet. Classical difficulties with IE in general are margins and paddings and positioning.
You might have to create IE6 specific CSS. There is a trick: An underline before the property lets IE6 interprete it but no other browsers:
.yourstyle{
width: 100px; /* All other browsers */
_width: 110px; /* Override for IE6 only*/
}
These seem to be good articles about IE6 style sheets.
http://www.dave-woods.co.uk/index.php/ie6-css-bugs-and-fixes-explained/
http://code.google.com/p/universal-ie6-css/
http://www.visionaustralia.org.au/ais/toolbar/
I honestly hope that helps.
Cheers
Helge
Hi hdzierz,
Thank you very much for such a fast answer. I can't avoid IE 6 support because this browser is hugely used in my corporate..
So, I will try to handle this with your advice and trick on the style sheets, and I'm going to dig it that way.
Please, excuse my english, best regards.
Laurent