Need More Info
Last Updated: 26 Nov 2021 10:23 by ADMIN
Anders Mad.
Created on: 22 Nov 2021 16:39
Category: Grid
Type: Bug Report
0
LoadClientState -> Cannot find a column with UniqueName

Hi, 

Heres a simple one: I have a dynamic grid `MasterTableView.EnableColumnsViewState = false;` on page init and all works fine. However, when the client/browser show a dynamic column thats hidden (or vise versa), and the column is gone on postback (being a dynamic grid this can happen), the LoadClientState tries to get the column - and if it fails to, it breaks down hard.. Instead it should just ignore it, as its just a pretty un-important show/hide state.

Your RadGrid code goes something like this:

LoadClientState ->
if (clientState.ContainsKey("showedColumns")) ->
control.GetColumn(columnUniqueName).Display = true; <-- just ignore this if not found - also on the others like hide, resize etc.

 

Thank you!... +1 for making this html editor a MD flavor instead :)

/Anders

1 comment
ADMIN
Attila Antal
Posted on: 26 Nov 2021 10:23

Hello Anders,

Thanks for reporting this problem. In order to investigate the issue, we would need all the details that will help us replicate the described behavior.

Please share the following information with me:

  1. RadGrid Markup from the ASPX/ASCX page if it is not created programmatically.
  2. The C# code for creating RadGrid if it is created programmatically.
  3. Share all JavaScript code that is interacting with RadGrid.
  4. Share all C# Code used for the RadGrid events. 
  5. Most importantly, describe the steps we need to perform to replicate the behavior.

Once we are able to replicate the problem, we will be able to determine whether this is a bug or is due to an incorrect configuration and let you know how to fix it.

I look forward to hearing from you.

Regards,
Attila Antal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.