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 7577523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:12:35+00:00 2026-05-30T17:12:35+00:00

I have a RadGrid control with template edit form implementation. I need to have

  • 0

I have a RadGrid control with template edit form implementation. I need to have a subset of controls in edit mode template different from the subset of controls in the add mode template. I found a way to do that scenario, but I’m not sure it’s the best way.

I did this by setting the controls in panels. In the code behind, I checked the type of the form and, depending on the condition, these controls are turned on or off by setting the visibility property using this snippet:

protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
   {
       if (e.Item is GridEditFormInsertItem && RadGridConferences.MasterTableView.IsItemInserted)
       {
           Panel UploadConferenceImage = e.Item.FindControl("UploadConferenceImage") as Panel;
           Panel UploadConferenceNewsletter = e.Item.FindControl("UploadConferenceNewsletter") as Panel;
           Panel ConferenceImagePanel = e.Item.FindControl("ConferenceImagePanel") as Panel;
           RadEditor RadEditorConferenceTxtBody = e.Item.FindControl("RadEditorConferenceTxtBody") as RadEditor;
           if (UploadConferenceImage != null && UploadConferenceNewsletter != null && ConferenceImagePanel != null)
           {
               UploadConferenceImage.Visible = true;
               UploadConferenceNewsletter.Visible = true;
               ConferenceImagePanel.Visible = false;
           }
           else
               return;
           if (RadEditorConferenceTxtBody != null)
           {
               RadEditorConferenceTxtBody.Style.Add("margin-top", "55px");
           }
           else
               return;
       }
   }

Another option I found is creating my own custom editor.

  • 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-05-30T17:12:37+00:00Added an answer on May 30, 2026 at 5:12 pm

    Your method is the best way I’ve found to use different sets of controls in a grid item template. You can have any elements you want in the edit template, then freely manipulate them in ItemDataBound().

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

Sidebar

Related Questions

I have a RadGrid control and I'm defining the Edit Form for it. I
I have added a RadControl, RadGrid and I need to add a radComboBox in
I have a RadGrid with a custom edit form ( FormTemplate ). The grid
I'm using a user control in some edit item template (telerik radgrid). But, my
I have a RadGrid bound to SqlDataSource. All items are always in edit mode.
I have Telerik RadGrid with a custom edit form. In my edit form there
I'm trying to add a custom filter to my RadGrid. I have a column,
I have a telerik radgrid-control on my page for showing a list of articles.
I have a problem with the get_selectedItems() function. I use RadGrid from Telerik .
I have radGrid in .ascx page in which I want to find the control

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.