jQWidgets Forums
Forum Replies Created
-
Author
-
February 8, 2012 at 2:51 am in reply to: Only 1 item shows in listbox Only 1 item shows in listbox #2054
Peter,
Due to time resources, I decided to just use a standarD UL – LI list instead of JQXListbox. The code is part of a biger project so not easily broken up.
If I have some time in near feature I will revist this as I do want to use the JQXListbox..thanks,
MikeFebruary 1, 2012 at 4:53 pm in reply to: Arrow keys don't work in text input elements contained within Tab panels Arrow keys don't work in text input elements contained within Tab panels #1970Peter,
Once I disabled the keyboard navigation the keys worked in the input field. After rename I then enable the key again. Works great.
Thanks for your help.Mike
January 31, 2012 at 4:14 pm in reply to: How to dynamically insert HTML LI items How to dynamically insert HTML LI items #1956Peter,
I downloaded the 1.5 version. I was in the process of trying the new Tree options out, but I have run into a strange thing.
I am using IE9, when I have a tree which has a vertical scrollbar, I can click on the vertical scroll bar (middle section Tab) and scroll the items fine, but it does not detect the mouseup event when i am done scrolling. It continues to scroll the content even though my mouse-left button is not down anymore. I tested the SAME tree/app on Chrome and it works properly.
Can you check and see if IE9 and the new version of the tree has an issue with exiting scroll mode?Thanks,
Mike
January 24, 2012 at 10:24 pm in reply to: How to dynamically insert HTML LI items How to dynamically insert HTML LI items #1877Ok thanks Peter for your help on this.
– MikeJanuary 24, 2012 at 3:40 pm in reply to: How to dynamically insert HTML LI items How to dynamically insert HTML LI items #1871Forgot to show the code .. here it is
$('#DashboardTree').jqxTree('addTo', { label: "<img style='width:24px;' src = '../images/folder.png'/> <span><b>Item</b></span> " });
– Mike
January 24, 2012 at 3:36 pm in reply to: How to dynamically insert HTML LI items How to dynamically insert HTML LI items #1870Hi Peter,
Ah yes, I was using the ‘html:’ keyword instead of ‘label:’ (I had carried that over from the JQXListBox code, but I see it’s different for the tree ..)I have the HTML inserted into a tree leaf now, I have an image in the leaf, i want that image to be 24px in size. I can style it in CSS to be 24px fine, but when the tree is shown the Tree item is offset. (See Pic)
Tree Item is Offset
Do you support changing the height of a Tree item? Or a way where a Tree item lines up properly when an image is bigger than the default height of a tree item?
Thanks,
MikeJanuary 22, 2012 at 9:04 pm in reply to: How to Dynamically add HTML as a list item How to Dynamically add HTML as a list item #1843Thanks Peter,
I understand your suggestion, I tried to change the width of a Listbox right AFTER the initial init as a test. (through jqwidgets api) However the width of listbox does not change. See these 2 lines of code. I would expect the final width of the Listbox to be 400, but it stays at 100. It seems that after the initial init of the Listbox, the width cannot be changed ?
Feed.find('.FeedItemList').jqxListBox({ source: source, height: Feed.height() - 30, width:100 }); - This does set the width to 100 fine...
Feed.find('.FeedItemList').jqxListBox({ width: 400 }); - This does not change the width of the listboxAs mentioned my scenario is a table with cells, in each cell is a div with a listbox, i want the listboxes to take 100% width of the cell as more cells are added/removed. (thus cell width automatically changes)
Thanks,
MikeJanuary 22, 2012 at 7:28 pm in reply to: How to Dynamically add HTML as a list item How to Dynamically add HTML as a list item #1841Thanks Peter,
I was able to get the HTML into the listbox by using your example. Great!.
One final issue I am having with this, simply trying to get the Listbox always be 100% width of it’s parent div.
I have a table, and in each cell of a table I have a ‘Div’, within each ‘div’ i have a jqxListBox. I want the listbox to always take 100% width of its parent div. I tried the code below but it does not work. Because dynamically adding table cells (TD’s), the width of each cell changes automatically which is what I want.
Here is what I am trying to always make the listbox 100% of its parent div.
Feed.find('.FeedItemList').jqxListBox({ source: source, width: '100%', height: 300 });
Any suggestions?
Thanks,
Mike -
AuthorPosts