jQWidgets Forums
Forum Replies Created
-
Author
-
Ooops, works indeed
Thx & cheers,
P.Hello Peter
Here’s an example that works fine on FF & Chrome but not in IE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <link rel="stylesheet" href="./jqx.base.css" type="text/css" /> <script type="text/javascript" src="./jquery-1.8.3.min.js"></script> <script type="text/javascript" src="./jqx-all.js"></script></head><body> <script type="text/javascript"> $(document).ready(function () { var listArray = []; listArray.push('item1'); listArray.push('item2'); listArray.push('item3'); $("#jqxWidget").jqxDropDownList({ width: 270, height: 25, autoDropDownHeight: true, theme: 'classic', source: listArray, autoOpen: false, selectedIndex: 0, selectionRenderer: function (htmlElement) { var htmlString = htmlElement[0].innerHTML; return '<div style="position: relative; margin-left: 3px; margin-top: 2px;">' + htmlString + '</div>'; } }); item = $('#jqxWidget').jqxDropDownList('getSelectedItem').label; alert(item); }); </script> <div id='jqxWidget'></div></body></html>
Thx & cheers,
PeterAugust 29, 2012 at 7:51 am in reply to: Position of Chart Axis Values Position of Chart Axis Values #7233Hi there
I think I found a solution by adding:
padding: { left: 0, top: 0, right: 0, bottom: -10 },
Thx & cheers,
PeterHi Milen
I just did download 2.3.1 -> There it works!!
Thanks & cheers,
PeterThx Milen for the feedback
However this does not seem to work
Pls check the following screenshot that illustrates my problem:
http://www.binf.ch/jqwshot1.pngThx & cheers,
P.Hi Dimitar
I am using 2.3.0.
I can reproduce the issue in FF 14 and Chrome 20.
Pls check the following short video showing the issue when i click somewhere on the page.
http://www.binf.ch/20120731_0809_33.zipThx & cheers,
P.Hi Milen
Thx for the answer. Indeed , this hides the scrollbar.
However the real problem I am having is that the “contactContent” DIV is not shown/rendered 800px height (same size as the window). it is shown only 600px hight (with a scrollbar).Thx & cheers,
PeterHello Milen
Thanks for your feedback. Sorry about that but I still am having some issues with this. The window heigth (800px) itself is OK now but its content is rendered with a scrollbar. I’d like to get rid of the scrollbar:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css" /> <link rel="stylesheet" href="jqwidgets/styles/jqx.classic.css" type="text/css" /> <style type="text/css"> .windowTitle { float: left; } .windowIcon { position: absolute; right: 5px; } .jqx-window-content-classic { padding: 0px; background-color: #e3e3e3; } .jqx-docking-panel-classic { margin: 0px; } #contactContent{ height: 800px; } </style> <script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="jqwidgets/jqxdocking.js"></script> <script type="text/javascript" src="jqwidgets/jqxwindow.js"></script> <script type="text/javascript" src="jqwidgets/jqxtooltip.js"></script></head><body> <div id='content'> <script type="text/javascript"> $(document).ready(function () { var theme = 'classic'; $('#contactContainer').jqxDocking({ theme: theme, width: 450, windowsOffset: 0 }); $('#contactContainer').jqxDocking('hideAllCloseButtons'); $('#contactContainer').jqxDocking('hideAllCollapseButtons'); $('#contactContainer').jqxDocking('pinWindow', 'contactWindow'); $('#contactContainer').jqxDocking('setWindowProperty', 'contactWindow', 'maxHeight', 800);$('#contactContainer').jqxDocking('setWindowProperty', 'contactWindow', 'height', 800); $("#contactTooltip").jqxTooltip({ width: 250, theme: 'classic', showHtml: true }); var element = $('#contactIcon'); $("#contactTooltip").jqxTooltip('add', element, '<b>Contacts</b>'); }); </script> <div id="contactContainer"> <div id="contactPanel"> <div id="contactWindow"> <div> <span class="contactTitle">Contact</span> <img id="contactIcon" class="windowIcon" src="img/info.gif" width="16" height="16"/> <div id='contactTooltip'></div> </div> <div> <div id="contactContent"> </div> </div> </div> </div> </div> </div></body></html>
Thanks and cheers,
PeterGreat, thx!
Great, thanks. I was using an old version
Cheers,
PeterHi there
As a future idea for the theme builder I would propose:
+ An option to select from 5 different predefined default/standard themes to start with.
+ An option to upload an existing theme from disc (avoid need to redo all from scratch).
Thx & cheers,
PeterHi Peter
Thanks for the info -> This works great but I have another question.
The “source” data array looks like:
Right now I filter/extract (in a separate/new array) the 2 columns “DepartmentId” and “DepartmentName” for “CompanyId = 3” before using/assigning these in a jqxComboBox.
This process takes some time and I was wondering if there is a more performant/better way to directly use the “source” data array in the jqxComboBox (without passing through the mentioned extra step)?
Thanks & cheers,
PeterP.S: I can select the first entry in the list using:
$('#cmbImpCompany').jqxComboBox({ selectedIndex: 0 });
So I can insert a fake entry (something like “- EMPTY -“), but is still not that nice…
Thx & cheers,
P.Hi Peter
Thanks for your info. Sorry I still am unable to “un”-select. My code looks like:
var srcCompany = { datatype: "array", localdata: fltCompany };
var datCompany = new $.jqx.dataAdapter(srcCompany, {uniqueDataFields: ["CompanyId"]});
$("#cmbImpCompany").jqxComboBox({ source: datCompany, displayMember: "CompanyName", valueMember: "CompanyId", disabled: false });the combobox is working and I can select an entry. However…
$('#cmbImpCompany').jqxComboBox({ selectedIndex: -1 });
…does not have any effect !? Is there another way to achieve what I need?
Thx & cheers,
P.Thx for the answer
I have a web page with an integrated java applet and 2 jqxButton. The first jqxButton starts an java applet function and the second button stops the java applet function.
Starting is not a problem however once the java applet function has started I can not use the second jqxButton to stop the java applet function (it hangs).
-> With simple html buttons (no jqxButton) this works!?
So it would be nice to know how are events handled?
Thx & cheers,
P. -
AuthorPosts