[CLOSED] Search Records From Database

  1. #1

    [CLOSED] Search Records From Database

    I am trying to search record from the database in this manner that, We have a table "Item" in the database, if user wants to search the record of any item then user can search the item from two or more fields.
    We have a drop down of "Item Category" and second field is "Item" in "North Portion". The criteria of search is, when user select "Item Category" and press submit it fetches all the record from the database on the basis of "Item Category" and show in the grid panel at center portion, if user only chooses the "Item" Text field and write the complete or partial name of the Item then all the record should be fetch from the database on the basis of Item text field. Third criteria is that If user wants to choose both option means "Item Category and Item Name" then the record will search through both options.

    Kindly help me in resolving this issue.
    Last edited by Daniil; Oct 15, 2013 at 7:41 AM. Reason: [CLOSED]
  2. #2
    Hi @hidaextnet,

    Listen to a respective event of a search field. If it is a ComboBox's you could listen for its Select event.

    On the event you can initiate a request to server (DirectEvent/DirectMethod) and populate a GridPanel's Store with the data retrieved according the filter conditions.
    store.DataSource = filteredData;
    store.DataBind();

Similar Threads

  1. Replies: 2
    Last Post: Nov 11, 2011, 4:02 AM
  2. Replies: 5
    Last Post: Jul 30, 2011, 7:40 PM
  3. Replies: 2
    Last Post: Apr 14, 2011, 10:03 AM
  4. Search Grid for records in Code behind.
    By vivekrane1986 in forum 1.x Help
    Replies: 0
    Last Post: Aug 27, 2010, 10:15 AM
  5. Replies: 1
    Last Post: Dec 25, 2008, 7:32 AM

Tags for this Thread

Posting Permissions