jQuery UI Widgets Forums TreeGrid GetCheckedRows + affected Parent Rows

This topic contains 3 replies, has 2 voices, and was last updated by  Klaus H 7 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • GetCheckedRows + affected Parent Rows #94794

    Klaus H
    Participant

    Hi,

    I want to use the jqxTreeGrid exactly like in the example with the hierarchical checkboxes, but I also need to know which of the parent rows are partially included in the collection. The function getCheckedRows gives me all rows which are actually checked, that are the leaf rows that are checked and all the non leafs in which all childs are checked.

    Is there an easy way to get a list of the records which have a subselection checked – that are all rows with the black square in the checkbox field.

    Best Regards
    Klaus


    Stanislav
    Participant

    Hello Klaus,

    records - Array. Returns the row's sub-rows collection. This should be what you are looking for.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    GetCheckedRows + affected Parent Rows #94836

    Klaus H
    Participant

    Hello Stanislav,

    unfortunately, that is not what I am looking for.

    I have a treegrid with several entries and several layers. The users can check on the top layer to select all child entries in all layers below. Then they can uncheck further down the hierarchy, so the upper levels are no longer checked, but still displayed with a square in the checkbox field. These entries, I seem not get a hold of. But for checking several things, I would need to know which rows are all affected.

    Take your example:
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/javascript-tree-grid-hierarchical-checkboxes.htm
    If I only select the Sales Department in Miami, it is the only value I get via getCheckedRows. The TreeGrid knows that Corporate Headquarters and Operation Division in Miami are affected by this selection and displays the checkbox with the square box. Is there any way I can get this information from the grid or the dataadapter, if you store the information there or do I have to figure out a way myself?

    Best Regard
    Klaus


    Klaus H
    Participant

    Nevermind, I found an easy workaround with some lines of code. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.