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

[Solved] extra column at the end of the grid

4 Answers 157 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.
neo e
Top achievements
Rank 1
neo e asked on 12 Jan 2011, 10:16 PM
There is this extra column to fill into the empty space at the end of the grid. is there anyway to get rid of it or set its background to the same color at other columns?

Thanks

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 13 Jan 2011, 07:52 AM
Hello neo e,

You may take a look at this article for a reference.
 

Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
neo e
Top achievements
Rank 1
answered on 13 Jan 2011, 03:25 PM
The problem I am facing is that the last column has a custom cell template which holds a listbox with scrollbar disabled. so the width of the last cell is dynamic. if I set the width of the last column to Width="*" then it will take up the rest of the screen. if the width of the listbox is longer than that, the listbox content will be cut off. if I set its minwidth, then the gridview scrollbar appear which is what I want, but then if there is space after the last column/cell, the extra column will be there. how can I make the gridview horizontal scrollbar appear when the cells content exceed the screen width? if the extra column appear, I think I can style its cell background to be the same as other cells. again, I am not sure how. 
0
neo e
Top achievements
Rank 1
answered on 18 Jan 2011, 05:07 PM
if I use the window 7 theme and also set the NewRowStyle, would the theme manager override the NewRowStyle sepcified?
0
Vanya Pavlova
Telerik team
answered on 19 Jan 2011, 05:41 PM
Hello Neo,

When you edit templates in MS Expression Blend, they are edited against a particular theme. If you need to modify only the style for GridViewNewRow in Windows7 theme you need to use the template for this theme and the resources it uses as well. Just to remind that you may get xaml files for all Telerik themes from the themes folder of your personal installation. You may also take a look at the following online help article "Modifying a Built-In Theme".

Please find attached a sample project that demonstrates the approach above.

All the best,
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
neo e
Top achievements
Rank 1
Answers by
Maya
Telerik team
neo e
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or