jQWidgets Forums
Forum Replies Created
-
Author
-
June 14, 2013 at 1:21 pm in reply to: Window increase open-events with every new open Window increase open-events with every new open #23162
My problem is that in the event I need context specific information – example: detail information can be updated or should be created. So I need to pass my object to the event since the saving action should take place if the user clicks the “okay” button.
Question: So if I can only setup the events once, how can I pass my object data to the eventhandler? Or override the events every time?
Thanks
June 14, 2013 at 12:55 pm in reply to: Window increase open-events with every new open Window increase open-events with every new open #23160And how can I override the existing event-handler or pass the context-object to the events? I expected that the event-handler will be overwritten automatically every time I create a new one …
Thanks
hanniiJune 13, 2013 at 11:50 am in reply to: Drag&Drop-object is cut off by Splitter Drag&Drop-object is cut off by Splitter #23093Hi Peter,
Thanks for the code but that doesn’t demonstrate my problem since it’s not using Drag&Drop. The example you sent is only using the Docking-Option within one splitter-panel. But I try to achive is drag&drop from one panel to another e.g. from the right to the left. In this case the dragged object is cut off by the splitter …
Do you have any suggestion for this problem?
Thanks,
hanniiJune 13, 2013 at 6:59 am in reply to: Drag&Drop-object is cut off by Splitter Drag&Drop-object is cut off by Splitter #23073Hi Dimitar,
Thanks for you reply. I already tried to set the z-Index for my splitter and drag-objects accordingly but it was not helping either. Any other idea? So I assume it’s a bug? When will this be fixed?
Thanks
hanniiJune 12, 2013 at 3:51 pm in reply to: Drag&Drop-object is cut off by Splitter Drag&Drop-object is cut off by Splitter #23047hello dimitar,
this is my code in an simpler way. buttons should be dragged from right to left (but they are cut off by the splitter and not visible in the left panel during dragging).
many thanks
hannii$(document).ready(function () {
var theme = getDemoTheme();
$(‘#leftSplitter’).jqxSplitter({ height: ‘500’, width: ‘400’, orientation: ‘vertical’, panels: [{ size: ‘200’ }, { size: ‘200’}] });$(‘.dragable-base’).jqxDragDrop({
dropTarget : $(‘#leftSplitter’),
revert : true
});
addBaseEventListeners();
});function addBaseEventListeners() {
$(‘.dragable-base’).bind(‘dropTargetEnter’, function(event) {
added = true;
$(this).jqxDragDrop(‘dropAction’, ‘none’);
});
$(‘.dragable-base’).bind(‘dropTargetLeave’, function(event) {
added = false;
$(this).jqxDragDrop(‘dropAction’, ‘default’);
});
$(‘.dragable-base’).bind(‘dragEnd’, function(event) {
if (added) {
$(“#left”).append(““+event.args.text+”“);
added = false;
}
});
$(‘.dragable-base’).bind(‘dragStart’, function(event) {
var text = $(this).val();
$(this).jqxDragDrop(‘data’, {
text : text
});
});
};West – NorthTest Button to DragTest -
AuthorPosts