This is a migrated thread and some comments may be shown as answers.

Careful: Datakeynames and Sessions

1 Answer 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 09 Mar 2016, 06:53 PM

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?

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 11 Mar 2016, 08:09 AM
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.

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or