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

Error sorting/filtering/etc, after hide column on clientside

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gian Carlo Zamboni
Top achievements
Rank 1
Gian Carlo Zamboni asked on 17 Jul 2008, 08:36 PM
Hi,

I'm using 2008 Q1 Grid and I'm creating it programmatically at OnInit event in a web user control.
I implemented the context menu for hide columns, that's working fine, but after hide a column if I sort, filter, change the page size, it returns an error "Object reference not set to an instance of an object" in a js alert.

Any ideas?


1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 21 Jul 2008, 12:02 PM
Hi Gian,

I assume that you use the solution for show/hide of grid columns through a context menu presented here:

http://www.telerik.com/community/code-library/submission/b311D-tkhat.aspx

Basically, if you generate your grid instance dynamically in par with the conventions depicted in this documentation topic (see the PageInit creation), the control should function normally since its viewstate and lifecycle will remain consistent.

If the issue persists, I will appreciate if you modify the sample web site from the code library entry and post it back enclosed to a formal support ticket. I will examine your complete code logic and will get around to you with more info on the matter.

Kind regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Gian Carlo Zamboni
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or