Skip to Content
author's profile photo Former Member
Former Member

Search button Data display Table

Hey friends,

Ihave implemented a table with Jason data with some search filters like combo box etc, and a search text field. When i enter certain Text relating the data in the table it Gives me the search Result of the text, My Problem is that it displays correctly more than one Row , If i refine my search by putting A data which is only visible in only one Row , then the table does not display single data containing that single Row data 😔

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 31, 2013 at 02:53 PM

    Hi Vishnu,

    On click of Search button you are binding JSON data to Result table right?

    In that case you need to take care when the result data length is 1. If it is greater than 1 it will take it as an array object. If it is equal to 1 it will not take it as an array object it will take it as normal object(you can't use array[0]). So same code will not work in both the cases.

    Regards

    Trimurthulu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.