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

Add a text box in radgrid

1 Answer 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
t
Top achievements
Rank 1
t asked on 24 Jun 2010, 10:54 PM
Hello ,

I would like to add a textbox to rad grid.the way i would like to do it is that
When I click on add new record I would like to add a textbox to grid and enter a value to the text box and depending on the value that i entered in the textbox i would like to pull the data and populate the grid.


1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Jun 2010, 10:58 AM
Hello,

 One suggestion is using FormTemplate for edit/insert grid item with TextBox placed inside. You can set the TextBox control's Visibile property as shown below, so that the control displayed for insertform only.

ASPX:
 <FormTemplate> 
   <asp:TextBox ID="TextBox3" runat="server" Visible='<%# Convert.ToBoolean( (Container is GridEditFormInsertItem) ? "True" : "False") %>'></asp:TextBox> 
                  . . . . . . . . . . . . . . . . . . . . . . . . 
 

Thanks,
Princy.
Tags
Grid
Asked by
t
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or