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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:04:15+00:00 2026-05-22T15:04:15+00:00

I have just started using RadControls so this question might be basic for you,

  • 0

I have just started using RadControls so this question might be basic for you, I am using a List View which I am populating using Sql Data Source, I also have insert functionality in that List View but the problem is the insert template just disappear after adding one record and I have to refresh the page to make insert template appear again, am I doing something wrong ?

I have another question regarding Rad List View, is it possible that we use a drop down box instead of a text box inside insert template ? because sometimes you want to restrict the users to pick from predefined values instead of letting them enter anything ? I have tried putting drop down box inside insert template using code view of visual studio and it also appears properly when I run the page but the problem is data binding is not working, I have tried using

SelectedValue=<%# Bind("field_name") %>

as it was used in case of textbox like

Text=<%# Bind("field_name") %)>

but it does not work for some reason.

Please advice,
Thanks.

  • 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-22T15:04:15+00:00Added an answer on May 22, 2026 at 3:04 pm

    Ok I got it, maybe it will help someone.

                            <tr>
                            <td>
                                <asp:Label ID="DEPARTMENTLabel2" runat="server" 
                                    AssociatedControlID="DEPARTMENTTextBox" Text="DEPARTMENT"></asp:Label>
                            </td>
                            <td>
                                 <asp:DropDownList ID="DEPARTMENTTextBox" runat="server" SelectedValue='<%# Bind("DEPARTMENT") %>'>
                                 <asp:ListItem Text="Admin" Value="Admin">Admin</asp:ListItem>
                                 <asp:ListItem Text="Editing" Value="Editing">Editing</asp:ListItem>
                                 <asp:ListItem Text="Sales and Support" Value="Sales and Support">Sales and Support</asp:ListItem>
                                 <asp:ListItem Text="Writing" Value="Writing">Writing</asp:ListItem>
                                 </asp:DropDownList>
                            </td>
                        </tr>
    

    Change the default textbox to a dropdown and assign its ID to AssociatedControlID of label that is representing it, here I used the same ID which was originally assigned to it “DEPARTMENTTextBox” (just to be careful), you can change it to “DEPARTMENTDropDown” or any ID you like but make sure you make these changes everywhere in the RADListView so that it performs normally.

    As for the insert template disappearing after adding one record, I made a workaround and placed a button for “add another record” such that when it is clicked it calls this code.

    protected void btnAddAnother_Click(object sender, EventArgs e)
    {
        RLVUsers.ShowInsertItem(RadListViewInsertItemPosition.LastItem);
    }
    

    This button make insert template reappear and allow the user to add another record.

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

Sidebar

Related Questions

Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have just started using Google Chrome , and noticed in parts of our site,
I have just started using silverlight 2 beta and cannot find how to or
I have just started using Boost 1.36. These libraries would be very useful in
I have just started using NSIS . It works very well but I find
I have just started using OutputCache on some of my controller actions and I
I have just started using OutputCache on some of my controller actions and I
I have just started using jqGrid , and I have some tables that I
I have just started using Linq2sql, it generates all of the Classes after my
I have just started using StructureMap, having previously worked with Spring.Net. I love the

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.