search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Desktop app

Related article: DayPilot in a Desktop Application (WinForms)
Asked by Anonymous
6 years ago.

Can the JavaScript version DayPilot be used embedded in an winform app in order to avoid the webserver component?

Answer posted by Dan Letecky [DayPilot]
6 years ago.

Yes, it's possible.

You'll need to replace the browser-server communication with direct API calls.

1. For calling JavaScript functions from the WebForms application use WebBrowser.Document.InvokeScript(). Note that you can only call global JavaScript functions this way so you will need to wrap the method calls in special global functions or use "eval".

You will need InvokeScript to send data (events) to the controls and to invoke specfic actions (switching a date, changing config, reloading data, etc.)

2. For calling C#/VB methods from within the HTML page use ObjectForScipting property and you will be able to access that object using window.external object from JavaScript.

You will need window.external object to handle the JavaScript events (drag and drop, etc.).

See also:

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.