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

Columns width in radGrid

2 Answers 182 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 11 Apr 2008, 03:31 PM
Hello,

I have a radgrid with simple text columns and an email column (link) at the end. The with of the columns is autoset by radgrid but in the last column (email link) gets no with. how can i set the column-with so that it is also auto generated?
At the moment i can't see the email column in IE, because the width is not set.

best reagards

oli

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 14 Apr 2008, 08:41 AM
Hi Oliver,

I've been unable to reproduce the problem locally. How do you setup the email link? I've tried it with both hyperlink column and template column with hyperlink - both work fine:
GridHyperLinkColumn:

<radG:GridHyperLinkColumn FooterText="HyperLinkColumn footer" DataTextFormatString="Send Email to '{0}'"
DataNavigateUrlField="CompanyName" UniqueName="CompanyName" DataNavigateUrlFormatString="mailto:{0}" HeaderText="HyperLink<br/>Column" DataTextField="CompanyName">
</radG:GridHyperLinkColumn>

GridTemplateColumn:

  <rad:GridTemplateColumn UniqueName="Letter" HeaderText="Read">
                        <ItemTemplate>
                            <a href="mailto:youremailaddress">Email Me</a>
                        </ItemTemplate>
   </rad:GridTemplateColumn>

Hope these help.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paul
Top achievements
Rank 1
answered on 06 Jul 2011, 11:23 AM
Steve, these examples help me, but i have one follow up question.
If I use an <ItemTemplate> to show the link, what do I use in the <EditTempate> for editing the same email address?

On a seperate note, is the <EditTemplate> used for both Update and Insert operations?

Thanks

Paul H.
Tags
Grid
Asked by
Oliver
Top achievements
Rank 1
Answers by
Steve
Telerik team
Paul
Top achievements
Rank 1
Share this question
or