Dec 14, 2008, 10:37 AM
[CLOSED] Using Coolite Store without ASP.NET Data Sources
*I was trying to customize the following Coolite example (updating DataSources) to fit my situation:
https://examples1.ext.net/#/GridPane...SqlDataSource/
I was mainly interested in the UI part. I dont normally use ASP.NET data sources because of multi-tier application architectures I work with where those Sources dont fit-in exactly, and also because of their Reflection overhead.
So, basically I was trying to use the cited example's concept to add, modify & delete data on a single page.
As I am not using the data sources, I handled the Store's BeforeRecordInserted & AfterRecordInserted events. I have set the Store's UseIdConfirmation to true.
I am able to insert data successfully in the BeforeRecordInserted event. However, as e.Confirmation parameter is Null.
So, I waited for the AfterRecordInserted event. To my surprise, even there e.Confirmation was null. And eventually I get the following error even after the record was successfully inserted:
"Reason: The confirmation list is absent"
Is Store designed to work only with ASP.NET Data Sources?? Is there any other work-around?? I have seen examples of using Arrays & Lists. But the updation example has been demonstrated only for SqlDataSource.
https://examples1.ext.net/#/GridPane...SqlDataSource/
I was mainly interested in the UI part. I dont normally use ASP.NET data sources because of multi-tier application architectures I work with where those Sources dont fit-in exactly, and also because of their Reflection overhead.
So, basically I was trying to use the cited example's concept to add, modify & delete data on a single page.
As I am not using the data sources, I handled the Store's BeforeRecordInserted & AfterRecordInserted events. I have set the Store's UseIdConfirmation to true.
I am able to insert data successfully in the BeforeRecordInserted event. However, as e.Confirmation parameter is Null.
So, I waited for the AfterRecordInserted event. To my surprise, even there e.Confirmation was null. And eventually I get the following error even after the record was successfully inserted:
"Reason: The confirmation list is absent"
Is Store designed to work only with ASP.NET Data Sources?? Is there any other work-around?? I have seen examples of using Arrays & Lists. But the updation example has been demonstrated only for SqlDataSource.