jQWidgets Forums

jQuery UI Widgets Forums Scheduler context menu movile

This topic contains 9 replies, has 3 voices, and was last updated by  admin 8 years, 3 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • context menu movile #90715

    pablosym
    Participant

    Hi a question, how can I use the contextual menu (right button) in scheduler from the cell phone? Thnx

    context menu movile #90716

    Peter Stoev
    Keymaster

    Hi pablosym,

    There is no right-click on cell phone so you can’t.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    context menu movile #90717

    pablosym
    Participant

    Thanks, there is no way to realize keeping pressed on the appointment for a few seconds and enable the contextual menu?

    context menu movile #90718

    Peter Stoev
    Keymaster

    Hi pablosym,

    There is openMenu method i.e you can open the Scheduler context menu when you want – $(‘#jqxScheduler’).jqxScheduler(‘openMenu’, 50, 100);

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    context menu movile #90720

    pablosym
    Participant

    Good idea, I’m trying now that when you click on the appointment, open the contextual menu, it opens, but when you release the mouse button it closes automatically and I do not understand why, you can help me thanks

    $(“#scheduler”).on(‘appointmentClick’, function (event) {
    // esperar = setTimeout(aver(event), 4000); //Llamamos a settimeout de la manera correcta

    event.preventDefault();

    $(‘#scheduler’).jqxScheduler(‘openMenu’);

    event.preventDefault();

    });

    context menu movile #90721

    Peter Stoev
    Keymaster

    If you want to use “appointmentClick”, do:

    $("#scheduler").on('appointmentClick', function(){
        setTimeout(function(){$("#scheduler").jqxScheduler('openMenu'); },100);
    })
    

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    context menu movile #90722

    pablosym
    Participant

    Well it works Thanks, now I have to see how to cancel the right button, since the 2 are activated, is there any way to identify it?

    context menu movile #90726

    Peter Stoev
    Keymaster

    Hi pablosym,

    Why do you have to do that? There’s no right click on mobile devices.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    context menu movile #90728

    pablosym
    Participant

    Hi Peter,
    If I already know that there is no right button on the mobile, that’s why I want to make it when you click on the contextual menu, with what you said I worked fine, but from the web I can right click and activate the contextual menu 2 times Enter the same event click, so I ask if there is a way to differentiate which button is pressed from the web or directly cancel the right button of the context menu

    context menu movile #90734

    admin
    Keymaster

    Hi pablosym,

    Would not it be easier to use this custom logic only on mobile devices?

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.