C1InputPanel On New Event?

Posted by: brandonh on 30 September 2017, 11:38 am EST

    • Post Options:
    • Link

    Posted 30 September 2017, 11:38 am EST

    I need to give the user the option to copy some information from the inputpanel onto a new record from the current record. Is there a way to fire an event when you hit the new record button? Or how would I go about accomplishing this?

    Thanks

  • Posted 3 October 2017, 7:10 am EST

    Hi!

    In BeforeButtonClick event of InputDataNavigator, you can check if AddNew button has been clicked.

    private void NavEmployees_BeforeButtonClick(object sender, InputNavigatorClickEventArgs e)
    {
                InputNavigatorButton btn = e.Button;
                if(btn.ToString() == "AddNew")
                {
                    //You can write your code here.
                }
    }
    

    Hope this helps you.

    Regards,

    Meenakshi

Need extra support?

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

Learn More

Forum Channels