Tabbing is not working in spread cell

Posted by: paramaguru21 on 8 September 2017, 3:26 pm EST

  • Posted 8 September 2017, 3:26 pm EST

    Hi,
    I have an issue tabbing from one spread to another spread

    I have two date spread sheet "from date" and "To Date" which will have tab index property in it.When I click the tab it should from the
    "From date cell" to "To date cell" but some how the tabbing is not working can any one give me a solution for this as soon as possible here is
    my sample code with example :

    Code :

    FarPoint.Win.Spread.InputMap inputmap1;
    inputmap1 = spcalendarBatchFromDate.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
    inputmap1.Put(new FarPoint.Win.Spread.Keystroke(Keys.Tab, Keys.None), FarPoint.Win.Spread.SpreadActions.None);
    inputmap1.Put(new FarPoint.Win.Spread.Keystroke(Keys.Tab, Keys.Shift), FarPoint.Win.Spread.SpreadActions.None);

    spcalendarBatchFromDate.FocusRenderer = Focus;
    spcalendarBatchFromDate.SetCursor(FarPoint.Win.Spread.CursorType.Normal, System.Windows.Forms.Cursors.Default);
    spcalendarBatchFromDate.EditModePermanent = true;



    FarPoint.Win.Spread.InputMap inputmap2;
    inputmap2 = spcalendarBatchToDate.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
    inputmap2.Put(new FarPoint.Win.Spread.Keystroke(Keys.Tab, Keys.None), FarPoint.Win.Spread.SpreadActions.None);
    inputmap2.Put(new FarPoint.Win.Spread.Keystroke(Keys.Tab, Keys.Shift), FarPoint.Win.Spread.SpreadActions.None);

    spcalendarBatchToDate.FocusRenderer = Focus;
    spcalendarBatchToDate.SetCursor(FarPoint.Win.Spread.CursorType.Normal, System.Windows.Forms.Cursors.Default);
    spcalendarBatchToDate.EditModePermanent = true;


    Thanks in advance,
    Guru
  • Marked as Answer

    Replied 8 September 2017, 3:26 pm EST

    Hi,

    If you want to make the focus move between the controls using Tab/Shift+Tab, then you will need to create a custom action to set to the input maps.
    To create a custom action, make a new class for the action which inherits from Action and implement PerformAction method to do the action (set active cell and focus to other FpSpread).

    Regards,
    -Sean
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels