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

How to add Control in Telerik Control

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jaya
Top achievements
Rank 1
Jaya asked on 11 Feb 2015, 06:41 AM
Hi

This is My Telerik Grid Design. How to add Textbox control in my telerik Grid when i click one button i need add new textcontrol Created this grid but client side event firing for add new textbox how will do this

How to add controls to telerik grid using Client Side thats the concept

<telerik:RadGrid ID="Telerik1" runat="server" AutoGenerateColumns="false" Height="300px"   
                    ClientSettings-Scrolling-AllowScroll="true">
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" />
                        <Scrolling AllowScroll="true"   />
                    </ClientSettings>
                    <MasterTableView DataKeyNames="ID">
                        <Columns>
                            <telerik:GridBoundColumn HeaderText="ID" DataField="ID" ReadOnly="true" UniqueName="ID" />
                            <telerik:GridBoundColumn HeaderText="Name" DataField="NAME" ReadOnly="true" UniqueName="NAME">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 13 Feb 2015, 12:45 PM
Hi Jaya,

Note that RadGrid is a server-side control and as such its structure should be defined on the server. If you would like to change the structure of RadGrid dynamically on postback you should create the entire control in the code-behind using the Page_Init event. The approach is illustrated in the following article.


With this said would you elaborate in more detail what is the functionality that you would like to implement? What are the requirements and what should be the expected result?


Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Jaya
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or