Telerik webparts personalization

6 posts, 0 answers
  1. Parimal Modi
    Parimal Modi avatar
    18 posts
    Member since:
    Aug 2009

    Posted 30 Oct 2009 Link to this post

    The issue which we are facing while working on Telerik web parts personalization is, we are not able to save current position of web parts.

     

    We need to save state of a particular web part in each and every drag drop, for that we have attached “OnDockPositionChanged” to every RadDock control, but this event is not getting fired while moving the web parts.

     

    So please suggest that:

     

    1.     Which event should be used to save state for every movement.

    2.     What  is the ideal approach to implement personalization using database.  

    Thanks in advance.

    Parimal Modi

  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 03 Nov 2009 Link to this post

    Hi Parimal,

    1. You should use the RadDockLayout.LoadDockLayout and RadDockLayout.SaveDockLayout events to manage the states of the dynamically created RadDocks. This following example demonstrates how to create RadDocks dynamically and save their state when they are moved, closed, expanded/collapsed etc.

    2. I am sending you a modification of the above mentioned example which saves the state of the docks in a DataBase. You can modify it to save the state of the docks for different users.


    Regards,
    Pero
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Parimal Modi
    Parimal Modi avatar
    18 posts
    Member since:
    Aug 2009

    Posted 03 Nov 2009 Link to this post

    Thanks for your reply.
    But I'm not creating dock controls dynamically. So will it wok in my case as well.

    I would really appreciate if you can give me an example with static dock controls.

    Parimal
  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 05 Nov 2009 Link to this post

    Hello Parimal,

    Of course it will work. I have attached a project that saves the state of static (created at design time) docks in a DataBase.


    Regards,
    Pero
    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.
  6. Parimal Modi
    Parimal Modi avatar
    18 posts
    Member since:
    Aug 2009

    Posted 05 Nov 2009 Link to this post

    Hi Pero,

    Thanks for your sample, but this is not working properly it doesn't saves the Expand, Collapse & Close state of dock .

    I'm looking for these properties. Please help me out in this.

    Thank you.

     

    Best regards,

    Parimal Modi

  7. Parimal Modi
    Parimal Modi avatar
    18 posts
    Member since:
    Aug 2009

    Posted 05 Nov 2009 Link to this post

    I got this done at my end.

    Thank you.

    Best regards,
    Parimal Modi
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017