Simulate next and previous button action on Calendar header using EXT 1.x

  1. #1

    Simulate next and previous button action on Calendar header using EXT 1.x

    Hi im ahmed,

    i would like to simulate Next and Previous button action from calendar component using JavaScript :

    Click image for larger version. 

Name:	help.png 
Views:	13 
Size:	10.1 KB 
ID:	17732
  2. #2
    Hi,

    What are you trying to do, exactly?

    If you are trying to override some behavior the ViewChange event is fired every time you click on the arrows. Also, you can use the setStartDate method to move the calendar to a particular date. Please, download the source code of the example and take a look.
  3. #3
    Hi Ahmed, if we take this example:
    https://examples1.ext.net/Examples/C...verview/Basic/

    You can emulate next and previous button using this javascript code:

            Ext.getCmp('CalendarPanel1-tb-prev').el.dom.click();
            Ext.getCmp('CalendarPanel1-tb-next').el.dom.click();

Similar Threads

  1. [CLOSED] Combobox with action button possible?
    By tMp in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 23, 2014, 9:38 AM
  2. Replies: 6
    Last Post: Dec 14, 2011, 5:24 AM
  3. [CLOSED] Highlight a Button upon action
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 23, 2011, 2:58 PM
  4. Simulate ext:Button click event?
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Dec 16, 2010, 6:16 PM
  5. Replies: 1
    Last Post: Jun 05, 2009, 1:43 AM

Tags for this Thread

Posting Permissions