Careful: Datakeynames and Sessions

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    1 posts
    Member since:
    Mar 2016

    Posted 09 Mar Link to this post

    Hey everyone,


    I wasted my entire day with this issue (a very very small issue) and just wanted to give you a warning if you run into the same thing.


    When you are using the RadGrid and creating datakeys, these datakeys seem to go into the session of the program. That means is you have a datakey named "mykey" in your RadGrid and you have a session variable declared in your aspx.cs as Session["mykey"] = "randomstuff", you are going to run into a very annoying problem.


    Mods - possibly add this little snippet to the documentation if it does not exist?



  2. Eyup
    Eyup avatar
    2941 posts

    Posted 11 Mar Link to this post

    Hi Daniel,

    Thank you for sharing your experience with this scenario. I hope this may help other developers as well to raise awareness.

    The documentation will be updated with explanatory information about the DataKeyNames and ClientDataKeyNames collection.

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top