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

[Solved] Inserting a Space in a Custom GridButtonColumn

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kencox
Top achievements
Rank 1
kencox asked on 03 Aug 2009, 03:54 PM
To create a Linkbutton column that supports filtering and sorting, I'm using the technique shown here:

http://www.telerik.com/community/code-library/aspnet-ajax/grid/filtering-and-sorting-for-gridbuttoncolumn.aspx

Here's my existing markup:

                    <custom:GridButtonColumnWithFilteringSorting HeaderText="Company" UniqueName="Company" 
                        HeaderStyle-Width="150px" ItemStyle-Width="150px" SortExpression="Company" Reorderable="false" 
                        Resizable="false" DataTextField="Company" DataField="Company" CommandName="Edit" 
                        ButtonType="LinkButton">  
                        <HeaderStyle Width="150px"></HeaderStyle> 
                        <ItemStyle Width="150px"></ItemStyle> 
                    </custom:GridButtonColumnWithFilteringSorting> 
 
I  need to know how to substitute a space (&nbsp;) character when there's no data in a column. Otherwise, I'm getting cells with no lines.

How do I add a space character to a custom grid button column?

BTW, if there's a better technique than the GridButtonColumnWithFilteringSorting solution, I'd be glad to see it.

Thanks,

Ken

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Aug 2009, 10:51 AM
Hi Ken,

The issue set forth has been addressed in the support ticket opened on the matter.
To avoid duplicate posts, we can continue our communication there.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
kencox
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or