Solved

Autosuggestion with cfgridcolumn

Posted on 2010-09-08
2
50 Views
Last Modified: 2015-10-01
I have Two tables in a database. One is the ITEM Table containing available Items with Columns (ITEMCode and ITEMDescription) and the other table ITEMSOLD Table which contains sold items with columns (ItemCode, ItemDescription, UnitPrice, Quantity, Amount). Now I have a cfgrid that can insert new sold items into the ItemSold table. And I need the corresponding column for the ITEMSOLD.ItemCode on the cfgrid to autosuggest items in ITEM.ItemCode when you type the first letters of any item. Then when an item is selected in ItemCode Column on the cfgrid, the ItemDescription Column in that row will be updated with corresponding Item.ItemDescription based on the item selected in the ItemCode Column.


Thanks
0
Comment
Question by:Nathltd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Pravin Asar earned 500 total points
ID: 33764123
With cfgridcolumn you can use values and valuesDisplay.

While editing, when cell gains focus, that cell is morphed to combobox.

<cfgridcolumn name="itemID" values="1,2,3,4,5" valuesdisplay="Item 1, Item 2,Item 3,Item 4,Item 5">

Of course in your case the values and valuedisplay will be from some sort db query.

0
 

Author Closing Comment

by:Nathltd
ID: 41020965
Thanks for the solution
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
What You Need to Know when Searching for a Webhost Provider
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question