how can i saved changed in database when docked i chaned?

2 posts, 0 answers
  1. Farshad heidary
    Farshad heidary avatar
    53 posts
    Member since:
    Oct 2009

    Posted 22 Nov 2009 Link to this post

    hi guys

    how can i save change in database?
    in sample code :
          List<DockState> _currentDockStates = (List<DockState>)Session["CurrentDockStatesMyPortal"];

    but i wanna save change in data base .when i used this code :
                    List<DockState> _currentDockStates = (List<DockState>)ds.Tables[0].Rows[0]["CurrentDockStatesMyPortal"].ToString();

    raised this error:
    Compiler Error Message: CS0030: Cannot convert type 'string' to 'System.Collections.Generic.List<Telerik.Web.UI.DockState>'

    * CurrentDockStatesMyPortal is a field in data base  table.

    how can i do that?how can i convert it?

    tnx guys

  2. Pero
    Pero avatar
    1156 posts

    Posted 23 Nov 2009 Link to this post

    Hi Farshad,

    Here is a sample project that dynamically creates RadDocks and saves their state in a DataBase. I think it will help you solve the problem.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top