Question : jQuery AutoComplete Problem

Hello,

I am trying to get the jQuery UI Autocomplete working with my website and datasource. I have it successfully querying the database with every keystroke, returning a JSON string, but on the front end the list only shows one element when there are many more. When comparing to the JSONP remote example, it appears that my JSON string may be formatted incorrectly. I'm not too sure. I will attach the JSON string as well as the jQuery code.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
script type="text/javascript">
    $(function() {
        function log(message) {
            $("<div/>").text(message).prependTo("#log");
            $("#log").attr("scrollTop", 0);
        }
        
        $("#query").autocomplete({
            source: function(request, response) {
                $.ajax({
                    url: "/ManualEntry/login/dataJson",
                    dataType: "json",
                    data: {
                        featureClass: "P",
                        style: "full",
                        maxRows: 12,
                        name_startsWith: request.term
                    },
                    success: function(data) {
                        response($.map(data.datasources, function(item) {
                            return {
                                label: item.name,
                                value: item.name
                            }
                        }))
                    }
                })
            },
            minLength: 2,
            select: function(event, ui) {
                log(ui.item ? ("Selected: " + ui.item.label) : "Nothing selected, input was " + this.value);
            },
            open: function() {
                $(this).removeClass("ui-corner-all").addClass("ui-corner-top");
            },
            close: function() {
                $(this).removeClass("ui-corner-top").addClass("ui-corner-all");
            }
        });
    });
    </script>
1:
{"totalResultsCount":null,"datasources":[[{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"},{"name":"HIERARCHY","class":"manualentry.Datasource","datasourceCd":"HIERARCHY"}]]}

Answer : jQuery AutoComplete Problem

This should be as

For Each dgi As GridView In myGridView.Rows

Correct
For Each dgi As GridViewRow In myGridView.Rows
Random Solutions  
 
programming4us programming4us