Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8296463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:00:28+00:00 2026-06-08T15:00:28+00:00

Hi I have a form That accepts all employee details with submit and reset

  • 0

Hi I have a form That accepts all employee details with submit and reset buttons.
When the user clicks on the submit data will be displayed in the telerik grid below the form.

Coming to the telerik grid I only have empid and empname , edit, delete buttons.

When the user clicks on the edit button the requirement is to load the form with original
data they’ve entered and want to edit it in the form and when they clicks the submit button they want the update operation to be done.

When I added radgrid_edicommand when ever I click On edit it is listing 2 text boxes (that I have in the grid) with employee Id and Emp name. How can I load the data in the top screen??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:00:31+00:00Added an answer on June 8, 2026 at 3:00 pm

    Please check below code snippet.

    .aspx

    <div>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button4" runat="server" Text="SAVE" OnClick="Button4_Click" />
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" OnNeedDataSource="RadGrid1_NeedDataSource"
            OnItemCommand="RadGrid1_ItemCommand">
            <MasterTableView DataKeyNames="ID">
                <Columns>
                    <telerik:GridBoundColumn HeaderText="Name" DataField="Name" UniqueName="Name">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="ID" DataField="ID" UniqueName="ID">
                    </telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn>
                    </telerik:GridEditCommandColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings>
            </ClientSettings>
        </telerik:RadGrid>
    </div>
    

    .aspx.cs

    protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        dynamic data = new[] {
                new { ID = 1, Name ="Name1"},
                new { ID = 2, Name = "Name2"},
                new { ID = 3, Name = "Name3"}
            };
    
    
        RadGrid1.DataSource = data;
    }
    protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == RadGrid.EditCommandName)
        {
            GridDataItem item = e.Item as GridDataItem;
            // using DataKey get ID
            Label1.Text = item.GetDataKeyValue("ID").ToString();
            // using Column Get name
            TextBox1.Text = item["Name"].Text;
            e.Canceled = true;
        }
    }
    protected void Button4_Click(object sender, EventArgs e)
    {
        //your logic
    }
    

    if this is not your case then check below link.
    http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx

    Let me know if any concern.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a form that accepts some input from a user that may
I have a form input field that accepts multiple tags from a user, a
I have a form that accepts image file, i want to be able to
I have a HTML form that accepts a comma separated list of tags, which
I have made a form that accepts query and executes it through php. I
I have a form input in my application that accepts dates in the format
I currently have form that checks if a user has unsubmitted changes when they
I have a form that, among other things, accepts an image for upload and
I have an Account model that accepts nested attributes for a user model. An
I do have an html form that accepts textbox input of sha1 hashes per

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.