Does anyone have a good example to implement this control using the data access layer using database instead of the session? Thanks!
1 Answer, 1 is accepted
0
T. Tsonev
Telerik team
answered on 26 May 2008, 01:11 PM
Hello,
All of the examples (with the exception of those using custom providers) use a database as storage. What might have mislead you is that we are using a SessionDataSource control throughout our examples. This is basically a SqlDataSource modified to store the changes only in the session for the purpose of the demos. This way each user gets to experiment with the controls on the site without permanently modifying the example data.
All you need to do in order to directly modify the database is to replace the sds:SessionDataSource tags with asp:SqlDataSource. Also, remove the SessionDataSource specific attributes - DisplayWarning, PrimaryKeyFields and RevertToOriginalDataSource.