Format string of radtextbox in GridTemplateColumn

3 posts, 0 answers
  1. Murugavel B
    Murugavel B avatar
    10 posts
    Member since:
    May 2010

    Posted 01 Jun 2010 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Jun 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Murugavel B
    Murugavel B avatar
    10 posts
    Member since:
    May 2010

    Posted 02 Jun 2010 Link to this post

    Hi,

    My request is to format that string like "###-####". Is it possible?
Back to Top