jQWidgets Forums
Forum Replies Created
-
Author
-
Hi
I want to change mouse cursor while dragging an object to indicate where the dropping of the object is allowed and where not.
I added a dragging handler to all objects which may be dragged:
dragitems.on (‘dragging’, onDragging);
and a handler routine which just sets the cursor:
function onDragging(event)
{
var myCursor = …;
$(this).jqxDragDrop( {cursor:myCursor} );
}But the cursor definitely does not change when I drag any object.
What do I wrong?Regards Thomas
September 16, 2015 at 9:40 am in reply to: Problems in IE with large HTML inside a Panel Problems in IE with large HTML inside a Panel #75896Hi Ivailo
Thank you for your quick answer. But unfortunately that what you recommend does not work. Even if I create first the <div> with all calendar content and then I convert the div to a jqxPanel the IE takes very long until the result is displayed and hangs up if you scroll. All other browsers work fine.
It seems so that the problem occurs if a jqxPanel with big html content is displayed with IE.
No matter if the jqxPanel is created first and then filled witch content or vice versa.Do you have any mor ideas?
Best Regards
Thomas SchmidtThank you Dimitar
Your comment was very helpful.
Regards
ThomasHi Dimitar
Thank you first for your quick answer. I installed the latest version 3.8.0 as you recommended. The problem is the same. In trying to find out what the problem is, I found the following very strange behaviour:
HTML Code is:
<select id=’abc’>
<option value=’United States’>United States</option>
<option value=’Germany’>Germany</option>
</select>If I write the following JS-Code:
$( ‘#abc’ ).jqxComboBox({ width:200, height:22, selectedIndex:1 });
$( ‘#abc’ ).on(‘change’, rrr);The code runs well. The combobox is created well and the function rrr is called on every item change.
But if I write instead:var x = $( ‘#abc’ ); // Store the result of the selector to a variable x
x.jqxComboBox({ width:200, height:22, selectedIndex:1 });
x.on(‘change’, rrr);The combobox is created well.
But the function rrr is NOT CALLED on item change.I like it to store the result of selectors $(…) to variables if I need selector in the following code more than once because every call of the selector scans the DOM and that results a bad performance.
I do this with all my JQX objects and it works fine in any context except the combobox. It even runs with the combobox if I create it from a <div> and load the item list via ajax call. But it does not work with the combobox if I create it from a <SELECT> like in the example above.
I really do not understand that.
Something seems to be strange here.
Can you help me?Regards
ThomasThank you so much
Thomas
-
AuthorPosts