Loading ...
Sorry, an error occurred while loading the content.

38521Re: DataTable -- Need Text and Value field.

Expand Messages
  • deepeyes2c
    Oct 1, 2008
      Could you post at least a bit of your code or an example page, it
      would help to get your problem fixed ;)
      --- In ydn-javascript@yahoogroups.com, "soulrevanger"
      <soulrevanger@...> wrote:
      > Hi,
      > I am facing new problem in DataTable. I have colum whose formatter
      > is DropDown.
      > It is the known fact that dropdown control having text and value
      > properties.
      > Assume my dropdown contains the following fields
      > Value Text
      > {"1","One"}
      > {"2","Two"}
      > {"3", "Three"}
      > I have placed this dropdown inside my DataTable cell formatter. It is
      > working very fine. But I am having the following problem.
      > When I changed the dropdown values, assume I change the value from
      > "one" to "Three". This time cell text should display as "Three", But
      > instead of this cell text display as "3". It gets the Value field
      > only. In my scenario, The Text fields should be displayed inside the
      > cell while I need to fetch the corresponding value field for this
      > selected cell. How can I achieve this?
      > Thanks in Advance.
      > Regard
      > A AntonySP
    • Show all 4 messages in this topic