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

Custom control within grid Template column

2 Answers 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 23 Jul 2009, 10:22 AM
Hi,

I have a custom percentage bar control within a GridTemplateColumn.  In the grid's ItemDataBound event I set the correct % value for the relevant row.

The problem that I am having is that the control is made up of table elements and as such it seems to be somehow contaminated (for want of a better word!) by the grid styling.  This problem is demonstrable when I do a simple table.  How do I get around this?

Shown below is the template column along with the progress bar control and also the basic table.

Regards,

Jon

<telerik:GridTemplateColumn  HeaderText="" UniqueName="percentagePresentImg" ItemStyle-Width="120px" Resizable="False" AllowFiltering="False">   
    <ItemTemplate>   
        <eo:ProgressBar ID="uxPresentPB" runat="server" Width="100px" ControlSkinID="Windows_Vista"  RepeatIndicatorImage="True"></eo:ProgressBar> 
        <table><tr><td>feubfew</td></tr></table> 
    </ItemTemplate>   
    <HeaderStyle Width="120px" /> 
    <ItemStyle Width="120px"></ItemStyle> 
</telerik:GridTemplateColumn>  

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 Jul 2009, 02:25 PM
Hi Jon,

Based on this information, it is hard to determine what is causing this behavior. At this point in order to help you in resolving it you can open a formal support ticket, and send us a small working project, demonstrating your logic, and the unwanted behavior. We will review it locally, and advise you further.

Regards,
Pavlina
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.
0
Jon
Top achievements
Rank 1
answered on 24 Jul 2009, 03:18 PM
Hi Pavlina,

I've managed to dodge the bullet on this for the time being - I created my own custom control and used divs instead of tables.

It seems as though in my app any table that gets put into a TemplateColumn's ItemTemplate ends up with the left and bottom borders showing even though they are not set to show. As mentioned my work around is to use a div element instead.

Regards,

Jon
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Jon
Top achievements
Rank 1
Share this question
or