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

[Solved] RadGrid ClientSide ShowColumn Giving Error.Unable to get value of the property 'position': object is null or undefined

3 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Umer Hayat
Top achievements
Rank 1
Umer Hayat asked on 28 Jul 2013, 07:49 AM
Hi,
i have a grid which renders four columns to the client and  i am binding it on clientside by calling a service.This grid is actually inside a dynamic search control that can show 1,2,3 or 4 columns.i am hiding columns based on the response from the service by calling 
tableView.hideColumn(cindex);  

without postback i will use this grid to show different searches.
Suppose the reponse from service will have 2 column i will hide
column at index 2 and 3, and if response have 1 column then i will 
hide column at index 1,2,3. this is working fine.Problem occurs
when i use this control witout posting back to the server. In
that case scenario is suppose first time i loaded data having column
count 1 it will display one column on the grid. then i again loaded
data from different method having column count 2 i need to actually
show all the columns i have set to hidden by calling hideColumn(index)
for this i am calling showColumn(index) this is giving me 

SCRIPT5007: Unable to get value of the property 'position': object is 
null 
or undefined 

Error Image is attached. Please help.

              

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 01 Aug 2013, 08:46 AM
Hi Umer,

I have prepared a sample RadGrid web site to test the described behavior. Can you please run the attached application and instruct me the exact steps to reproduce the issue?

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Umer Hayat
Top achievements
Rank 1
answered on 01 Aug 2013, 09:45 AM
Hi Eyup 
Thanks,i have checked your sample and its working fine. i could not figure out the problem so far with my case.

Regards
Umer Hayat
0
Eyup
Telerik team
answered on 02 Aug 2013, 07:58 AM
Hi Umer,

I am glad that the provided sample was helpful.
Looking forward to your reply when you figure out the cause of the issue.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Umer Hayat
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Umer Hayat
Top achievements
Rank 1
Share this question
or