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

Format string of radtextbox in GridTemplateColumn

2 Answers 119 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Murugavel B
Top achievements
Rank 1
Murugavel B asked on 01 Jun 2010, 12:50 PM
Hi,

 How to format the string of radtextbox within GridTemplateColumn.

Below my code

<

 

telerik:GridTemplateColumn ItemStyle-Width="46px" UniqueName="extension">

 

 

<ItemTemplate>

 

 

<telerik:RadTextBox runat="server" ID="ttxtExtension" Width="44px" Text='<%# Bind("extension") %>'

 

 

Height="13px">

 

 

</telerik:RadTextBox>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<telerik:RadTextBox runat="server" ID="ttxtExtension" Width="44px" Text='<%# Bind("extension") %>'

 

 

Height="13px">

 

 

</telerik:RadTextBox>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 


How to format?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jun 2010, 11:35 AM
Hi Murugavel,

Here is one method to format the text shown in textbox.

ASPX:
 
    <telerik:RadTextBox runat="server" ID="ttxtExtension" Width="44px" 
        Text='<%# Bind("extension","Extension: {0}") %>' Height="13px"
    </telerik:RadTextBox> 


-Shinu.
0
Murugavel B
Top achievements
Rank 1
answered on 02 Jun 2010, 01:28 PM
Hi,

My request is to format that string like "###-####". Is it possible?
Tags
Grid
Asked by
Murugavel B
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Murugavel B
Top achievements
Rank 1
Share this question
or