Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need some creative geniuses on adding items to a grid

Status
Not open for further replies.

sheykc

Programmer
Sep 28, 2001
79
US
I'm stuck on a problem, and I was hoping that someone here might have a good idea for me.

I have sales reps that need to be able to quickly add items the company sells, to a grid. The old cold fusion app had them type in an item number (or several item numbers) into a textbox and then it added the items to the page. But, if item #2 was typed incorrectly, then none of the items added. They were only separated by a space.

I was hoping to have more of a lookup feature. But, there are 29,000 items and loading into a dropdown is too slow for the load of the page.

Does anyone have any ideas of what approach I should consider?

Thanks for your help!
 
Lots of ways really:

1) simply have x number of textboxes that the users can enter seperate id's into (and validate each entry)
2) add them one at a time, with an autopostback that validates the entry
3) client callbacks to populate potential matching items into a listbox/dropdownlist/etc..

The most efficient way, in my opinion, would be #1 coupled with Validator controls (inclusing a summary validator).





____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I've never used the validator controls before, but would like to learn more about them. Do you have any reference sites that would explain how to use them?

I'm assuming javascript is involved with this?

Right now I'm trying to implement the method where after they type in a value in the textbox, they click the "AddItem" button. The AddItem click method validates the itemnumber. This doesn't allow for them to enter several at one time, before adding the items, but still gets the job done.

 
I use google all the time. I was just hoping for some references of sites you already found to save some time of searching thru things that are sometimes irrelevant.

Thanks anyway.
 
The first site, from the search link above, is a good introduction to Validation controls so I suggest you take a look at that site.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top