Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to set key board focus on the current date in Compact calendar ?

    Hi ,



    We are trying to set the default key board focus on the current date cell ( or the chosen date ).
    So user can navigate dates and use Enter action to perform some task,

    1) To set the focus on the month view, right now we are using calendar.getMonthView().focus(); grid receives the focus and tabbing starts from the first cell.
    You can see above behavior in the below link, just press tab until grid receives focus.

    2) To perform some action on the cell we are using following method:
    calendar.addDayBodyClickHandler(new DayBodyClickHandler() {
    public void onDayBodyClick(DayBodyClickEvent event) {

    event.getDate();
    ....
    }
    });

    How can we add key press handler on the day body ? something like calendar.addDayBodyKeyPressHandler()


    we are using Smartgwt version - 5.1

    Please advise. :)
    Thanks,
    Minhaj
    Last edited by Minhaj; 20 Mar 2016, 23:10.

    #2
    Hi Isomorphic,

    Is it possible to achieve above ?

    Thanks,

    Comment

    Working...
    X