473,779 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to read ComboBox (Infragistics) DisplayValue

Hi!

I have a Problem with reading a value from an Infragistics WebCombo.
Actually this is a Javascript problem but i hope posting in this NG is
more promising.

I try to ready a value from an ComboBox with one of these Functions:

igcmbo_getEleme ntById("WebComb o2").value;
or
document.getEle mentById("WebCo mbo2").value; (both have the same
effect)

As result i got: Select-1Valuetest
(test is what i wrote in the ComboBox)
How can i read the display value from the ComboBow without the
DropDownList information (Select-1Value)?

Gruß
Oliver

Nov 19 '05 #1
6 3854
document.WebCom bo2.options[WebCombo2.selec tedIndex].value;

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
<mo****@web.d e> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Hi!

I have a Problem with reading a value from an Infragistics WebCombo.
Actually this is a Javascript problem but i hope posting in this NG is
more promising.

I try to ready a value from an ComboBox with one of these Functions:

igcmbo_getEleme ntById("WebComb o2").value;
or
document.getEle mentById("WebCo mbo2").value; (both have the same
effect)

As result i got: Select-1Valuetest
(test is what i wrote in the ComboBox)
How can i read the display value from the ComboBow without the
DropDownList information (Select-1Value)?

Gruß
Oliver
Nov 19 '05 #2
Hi!
Thank you for the answer but it doesnt seem to work.

document.WebCom bo2.options[WebCombo2.selec tedIndex].value;
It looks like the WebCombo2 Control cant be found. Do you have another
idea?

Gruß
Oliver

Nov 19 '05 #3
Hi!

No more ideas?

Nov 20 '05 #4
Oliver,

Depending on how your combobox id is assigned you may need to put its name
in single quotes.

document.'WebCo mbo2'.options['WebCombo2'.sel ectedIndex].value;

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Oliver Orsteck" <mo****@web.d e> wrote in message
news:11******** *************@g 47g2000cwa.goog legroups.com...
Hi!

No more ideas?

Nov 21 '05 #5
Hi Justin!

Thanks for your patience. I got the answer myself. I told you I only
need the WebCombo value wihtout the DowpDownList information. My falut
was I thought getElementById( "WebCombo2").va lue; would give me value
of the textfield of the WebCombo but it returns the entire WebCombo2
data (including DropDownList infos).

The Infragistics WebCombo generates while compiling an WebCombo2_input
control where i found what i was searching for.
-> getElementById( "WebCombo2_inpu t").value;
Bathetic but i overlooked that fault.

Gruß
Oliver

Nov 21 '05 #6
Oliver,

I'm glad you found it!

:-)

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Oliver Orsteck" <mo****@web.d e> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Hi Justin!

Thanks for your patience. I got the answer myself. I told you I only
need the WebCombo value wihtout the DowpDownList information. My falut
was I thought getElementById( "WebCombo2").va lue; would give me value
of the textfield of the WebCombo but it returns the entire WebCombo2
data (including DropDownList infos).

The Infragistics WebCombo generates while compiling an WebCombo2_input
control where i found what i was searching for.
-> getElementById( "WebCombo2_inpu t").value;
Bathetic but i overlooked that fault.

Gruß
Oliver
Nov 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1486
by: Craig Kenniston | last post by:
Hi, I don't know if this is the proper place to ask this. I'm looking for components from 3rd parties that has a nice and powerfull dbgrid component as well as combobox, etc. I just don't know which products are available. From my Delphi background, I just know about devexpress.com, because I used their products in Delphi, I know they have
0
1209
by: Oliver Orsteck | last post by:
Hi! I have a Problem with reading a value from an Infragistics WebCombo. Actually this is a Javascript problem but i hope posting in this NG is more promising. I try to ready a value from an ComboBox with one of these Functions: igcmbo_getElementById("WebCombo2").value; or
8
328
by: Bernie Yaeger | last post by:
As much as 10 years ago we had a combobox that would display, in a dropdownlist (not a dropdown where you can enter code in a textbox element of the cbox), a series of items that would be accessible by striking keys in sequence. So you would strike 'b', 'e', 'r', 'n' and you would get to 'bernie' not 'norman', and not 'bat' if 'bat' were followed by 'bernie' in the list. I have yet to find this simple functionality in vb .net, not in...
10
4702
by: | last post by:
Hi all, Any one know that how to add combobox in datagrid or any 3rd party datagrid can do that.. Thanks
8
3520
by: mongphong28 | last post by:
Hi, I'm populating a ComboBox with objects which contain two properties - IntegerValue and StringValue. I display StringValue in the ComboBox form and can retrieve IntegerValue from the SelectItem.IntegerValue property. This is all good but now I want to get a little bit more complicated. I want to be able to set the ComboBox's SelectedItem property by setting IntegerValue, so for instance if I have the following items in
2
6623
by: Pieter | last post by:
Hi, I'm looking for a multiline combobox. The only way I found was this one: http://www.vbcity.com/forums/faq.asp?fid=15&cat=ListBox%2FComboBox#TID58434 Does anybody has any other suggestions? Thanks a lot in advance, Pieter
7
26202
by: hung tran | last post by:
Hi, I'd like to drop down a combobox after validating the Leave() event, how can I do that ? Thanks
2
2972
by: tshad | last post by:
In my VS 2003 Windows Forms page, when I initially fill my ComboBox (SystemList), it goes to the SelectedIndexChanged event which calls the Loademails() function. I then call it again in the Form1Load function. How do I get it not to call it in the SelectedIndexChanged from the Form1Load function? Normally, I want it to call it but not when I initally fill the ComboBox. *********************************************************...
7
13531
by: JTC^..^ | last post by:
When i attempt to bind to the "Text" and "Value" property of a combobox on a windows form the value is reset when I leave the combobox. The comboboxes contain the correct Text and Values. I know this as the Value property binds correctly on it own. It is only when I bind the "Text" and "Value" that the issue occurs. The following sample code includes my custom classes and the Form Clode. I have several comboboxes and customer classes...
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10139
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9931
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.