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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:37:02+00:00 2026-05-16T00:37:02+00:00

I need to get the client-side instance of a RadComboBox (or the newly-selected value

  • 0

I need to get the client-side instance of a RadComboBox (or the newly-selected value of a RadComboBox) when my RadGrid is leaving edit mode so I can post back the changed value to the server.

The problem is, the client-side id of the object always changes. Also, the RadComboBoxes aren’t created at runtime — they’re only created after the user double-clicks a specific row of my RadGrid. Therefore, syntax such as

var SundayLoc = $find("<%= FieldOpsScheduler_ctl00_ctl05_RCB_SunLocale.ClientID %>");

equals FAIL. Until I started getting changing values, I was able to get away with this:

var SundayLoc = $find("FieldOpsScheduler_ctl00_ctl05_RCB_SunLocale");

This worked perfectly every time until I added some row separator objects which now cause the “ctl05” of the ids to always change depending on what row the user puts into edit mode. I’ve tried using all matters of getting this object and its value, but to no avail.

I was going to try using regular expressions until after reading a community wiki answer by bobince at RegEx match open tags except XHTML self-contained tags has brought me to the realization that the temptation to parse HTML with regular expressions is the work of unholy Satan-spawn (that and after further research I’ve come to the conclusion that regular expressions probably won’t help me).

Anyway if someone could throw some ideas my way I’d greatly appreciate it. Thank you in advance.

  • 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-16T00:37:03+00:00Added an answer on May 16, 2026 at 12:37 am

    Okay so the answer I ended-up coming up with isn’t really eloquent, but it’s 100% reliable and all on the client-side (which is good because my company has IE7 as its standard web browser x_x).

    I was able to get rid of a bunch of $find commands and if-statements because I no longer have to search for the specific HTML ids.

            function SelectedIndexChanged(sender,eventArgs)
            {
                var rcbID = sender.get_id();
                var LocID = rcbID.substring(0,37) + "Locale";
                pastCombo = currentCombo;
                currentCombo = eventArgs.get_item().get_text();
    
                if(editedRow != null)
                {
                    var Location = $find(LocID);
    

    Since the ids weren’t being generated server-side (as far as I could tell, although admittedly I didn’t try Roatin’s solution because I had thought of mine before I saw his answer + mine seemed simpler since I’m already doing a bunch of stuff client-side inside JavaScript), I looked around to see what I was already getting, and realized that var rcbID = sender.get_id(); was already getting me an extremely similar value to what I was already looking for (only instead of it saying SunLocale, it said SunActivity).

    So I figured hey, I can substring() out everything in rcbID and then append “Locale” to it, and then run a $find() command on that in order to get me the proper RadComboBox. Turns out it works. Anyway though I do thank you guys for looking into my problem even though I ended-up finding my own solution. 🙂

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

Sidebar

Related Questions

I have a web application. On the client side I basically need to get
I can't seem to get any client side validation working on a MVC 2
I have two tables with a weak relation. I need get a text value
I need to get a listing of a server-side directory inside SAP. How do
I need to build a Twitter module entirely on the client side. I intended
I am trying to replace postbacks with javascript client side processing whenever I can
Using the client-side ASP.NET AJAX library, I have created an instance of a client
I'm working on a simple plug-in framework. WCF client need to create an instance
I have a DateEdit control from DexExpress and need to get the date value
I need help figuring out how to succeed in implementing unobtrusive client-side validation of

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.