Trying to use SessionDataSource

Cyrus

I am trying to use the SessionDataSource.dll for a project where I do not want to store data. however, I am having difficulties trying to make this work. I can connect to the data source and insert data into the grid but I am not getting an ID to populate. This makes it impossible to reference the row for an update or delete function. Any idea what I am doing wrong? I have an access database which uses a field called ID with a data type auto-increment. The table is blank and has no data, the only thing it has is columns with headers.

Yavor

Basically, this datasource is used for demonstrative purposes only, and we do not want to promote it, or push its usage. On the contrary, in the latest releases we are reducing the usage of this particular datasource, and use standard controls.

Cyrus

How would you create a temporary data source for a demo form? Do you have other suggestions? I need to create a form that doesn't save data but has all the behaviors of a datagrid/radgrid. This seemed to be the answer, but I am finding some bizarre behavior in FireFox. Not entirely sure it is the SessionDataSource....

I would suggest you to try the logic used in the following online demo where the changes during the Insert/Update/Delete operation is being made on the DataTable and it is not affecting the DataBase. Hence all the changes made will be reflected temporarily in the Grid.User control edit form

Thank you. However, I modified the files from that link to use a datatable that is completely in session. There is no SQL Connection going on. My problem is that the RadGrid never leaves Insert mode, even though a row is inserted and the grid displays it. Also, when I update a row, that row stays in Edit mode, and the data DOES get changed, because I can cancel and refresh, things are fine.

I had to add RadGrid1.ReBind() at the end of the Update/Insert/Delete events to get the data refreshed in the grid.

Any ideas? I am NOT using a User Control Edit Form, I modified the code to use the standard in-place editing.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.