473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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_getElementById("WebCombo2").value;
or
document.getElementById("WebCombo2").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 3828
document.WebCombo2.options[WebCombo2.selectedIndex].value;

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
<mo****@web.de> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.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_getElementById("WebCombo2").value;
or
document.getElementById("WebCombo2").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.WebCombo2.options[WebCombo2.selectedIndex].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.'WebCombo2'.options['WebCombo2'.selectedIndex].value;

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Oliver Orsteck" <mo****@web.de> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.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").value; 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_input").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.de> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.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").value; 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_input").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
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...
0
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...
8
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...
10
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
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...
2
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?...
7
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
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...
7
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.