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

Grid Column Display Issues

6 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 02 Feb 2009, 04:36 PM
Ok, I am still trying to evaluate your product.  I am binding to a business object list.  I don't want automatic generation of columns at runtime because I want the headers named something more reader friendly.

I turn off the checkbox which will auto-generate the columns. 
I then add the three columns to the collection

I see the columns that I generate in the collection editor while looking at design view, but when I run the app I don't see one of the columns I created.  I look at the "Source View" and the column that I can't see when the app runs is not in the source code...but I can still see it in "Design View".

Why is the changes not tranferring into "Source"?  Once I made the changes manually in source, I was able to see the column in runtime.

This also happens with all other settings.  For example "HeaderStyle-Width", "HeaderStyle-Font-Size" etc... Everytime I make a change in the designer it does not transfer into "Source".  I always have to go into "Source" and change it manually.
Michael

6 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 03 Feb 2009, 03:59 PM
Can someone please tell me "What on Earth" I am doing wrong.  Why won't the designer work???  It won't accept my changes. Ahggg!
0
Michael
Top achievements
Rank 1
answered on 04 Feb 2009, 02:58 PM
Was able to get some technical help from a Developer Support Consultant.

He acknowledged the same problem. 

The problem is when my Grid was embedded within a RadSplitter/RadPane.  When I would make changes to my grid in this situation, I would see the changes in "Design View", but the changes would NOT transfer to "Source".  Keep in mind on the "Initial" build of the page everything works fine.  It's only when you try to edit an "Existing" file that the problem starts to occur.

He found a workaround that if you click around the designer a couple of times you will finally get the "Asterisks" to appear on the file tab which shows that visual studio recognizes the change to that particular file.  Once this happens the change is transferred into "Source".

So far this only seems to be an issue when the Grid is embedded within other controls.

More to come....
0
Pavlina
Telerik team
answered on 05 Feb 2009, 11:05 AM

Hi Michael,

We do not think the problem is related to any of the Telerik controls.
I was able to reproduce the issue by using two ASP.NET controls (as we share a similar designer class) - asp:Panel and asp:GridView.

<asp:Panel ID="Panel1" runat="server" Height="136px">  
        <asp:GridView ID="GridView1" runat="server">  
        </asp:GridView> 
    </asp:Panel>  

If you are using VS 2008 SP1, with .NET 3.5 SP1, try to  modify the Columns collection (using the designer) and the result will be the same. Therefore I assume that this is a general issue with MS Visual Studio 2008.

Sincerely yours,

Pavlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael
Top achievements
Rank 1
answered on 05 Feb 2009, 02:27 PM
You are correct.  I have tested your sample code and it is also an issue.
0
Michael
Top achievements
Rank 1
answered on 05 Feb 2009, 02:33 PM
Just did a VS Studio Bug lookup.  Apparently this is a known issue.

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=349998


Read the community discussion at the bottom. Although Microsoft says its fixed, people are still having problems.  Other 3rd party controls are also mentioned as being affected.
0
Accepted
Pavlina
Telerik team
answered on 09 Feb 2009, 07:17 AM
Hi Michael,

Thank you for your feedback. I read over the community discussion and I agree with you.

Best regards,
Pavlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or