This is a migrated thread and some comments may be shown as answers.

[Solved] Running into querystring size limits

0 Answers 84 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jason
Top achievements
Rank 1
Jason asked on 19 Aug 2010, 05:37 PM
When using the treeview  with many (~100+) nodes I'm finding I hit the wall on my post query string of 2k. It seems the control is sending information about every node (it's state, value, text etc...) and not just the checked ones.

Currently my post method is through jquery and is fairly straight forward - get the form, serialize it and post - with the tree control part of that form.
$(document).ready(function () {
        $("#Context_<%= Model.View %>_Input").click(function () {
 
            var f = $("#context-form");
            var action = "<%= Url.Action("Action", "Controller") %>";
 
            var serialization = f.serialize();
            $.post(action, serialization,
                function (data) {
                    $('#context_frames').html(data);
                });
            return false;
        });


Even if it is only the checked nodes, how do I deal with only posting the "values" of the checked node and not the state or text? I've not dug in too deeply to your javascript but is there a method to get currently checked node values, should I write my own with jquery...

What is the best starting point to solve this issue?

-Jason
Tags
TreeView
Asked by
Jason
Top achievements
Rank 1
Share this question
or