PDA

View Full Version : [CLOSED] How to pass DataTable to Ext.Net Event Store and Calendar Store



Suntico
Jun 26, 2012, 1:00 PM
We are facing some troubles in passing a datatable to the ext.net calendar and event store. We already are aware of how to pass the calendar store in aspx pages and its code behind (we are aware of the principle) but the area where we are stuck right now is EXT.NET's syntax in Razor engine. It will be of greater benefit if you can send us an example of Calendar control implemented in MVC3 Razor Engine(cshtml Views and controllers) using Data Table as its Datasource.

We also want to know that is it necessary to create a web service for passing and retrieving the information from Calendar control or we can utilize the Controllers web methods for this purpose.

Regards

Daniil
Jun 26, 2012, 1:40 PM
Hi,

Unfortunately, we have no such example on Razor.

You should:

1. Set up

IgnoreExtraFields="false"
for the EventStore.

2. Ensure the DataTable columns match the default EventStore ModelFields or set up respective mappings.

There are two ways to bind the DataTable.

1. Via Model, something like this:
http://forums.ext.net/showthread.php?18729&p=80909&viewfull=1#post80909

2. Via the EventStore AjaxProxy referring a respective controller action. It answers your question:

We also want to know that is it necessary to create a web service for passing and retrieving the information from Calendar control or we can utilize the Controllers web methods for this purpose.

Hope this helps.