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

[Solved] overwriting columns when removing columns

3 Answers 115 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dave
Top achievements
Rank 1
Dave asked on 22 Aug 2011, 01:34 AM
I've got a customer requirement to allow the user to select which columns to display from the complete list being returned from the webservice.

I'm handling this ok, and *almost* everything is working, but I've hit a point I can't seem to get past.

I'm doing the column selection in a 'flip panel', the user presses "Save", I get the information down to to the grid and manipulate it into the desired format, then the panel flips back to the grid.

The problem is, I believe, a visual one...let's say for example that the first three columns have header names One, Two, and Three.

I delete the 2nd column, and what I get when I flip back I've got column headers One and Three, however under that 2nd column header, I have an extraneous small column showing, and column Three contains information from the original column Two and column Three one overwritten on the other.

I've found that if I scroll to the right, then back, it's cleared up and it's correct. I tried to do a scroll all the way to the right and then all the way to the left programmatically after setting the fields, but again, I believe it is a visual thing, and that change isn't going to happen while it is not on-screen.

Has anyone dealt with this, or have any ideas on how to get rid of it?

I know the question is going to arise, so how I do my rearrangement is to send to the View an Observable Collection of what I want to display. I spin through the grid setting every column to not visible, then I rearrange the columns according to my Observable Collection and set the ones the user wants to see visible.

-Dave

3 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 22 Aug 2011, 08:00 AM
Hello Dave,

 

May you post more info about the grid version you used? 
Indeed we had a similar issue, which has been immediately fixed. 
Will you please try with our latest internal build or even the latest official release (Q2 2011) and let us know whether the issue still persists? 



Best wishes,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Dave
Top achievements
Rank 1
answered on 22 Aug 2011, 02:10 PM
Thanks Vanya...

I still have a couple RadWindow issues that are keeping me from running the Q2 build. I guess I need to fix those and get the latest build running to see if it resolves my problem

I'll let you know

-Dave
0
Dave
Top achievements
Rank 1
answered on 24 Aug 2011, 11:55 PM
Vanya...

The 2011 Q2 bits took care of that problem... took me a while to get the other things in order to be able to update, but wow... glad that works!

Thanks!

-Dave
Tags
GridView
Asked by
Dave
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Dave
Top achievements
Rank 1
Share this question
or