jQuery UI Widgets Forums Grid initrowdetails function

This topic contains 3 replies, has 4 voices, and was last updated by  Yavor Dashev 3 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • initrowdetails function #48611

    Keshavan
    Participant

    Hi,

    Clarification with respect to initrowdetails function,

    how are the values -> index, parentElement, gridElement, record passed ?

    // create nested grid.
                var initrowdetails = function (index, parentElement, gridElement, record) {
                    var id = record.uid.toString();
                    var grid = $($(parentElement).children()[0]);
                    var filtergroup = new $.jqx.filter();
                    var filter_or_operator = 1;
                    var filtervalue = id;
                    var filtercondition = 'equal';
                    var filter = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
                    var ordersbyid = [];
                    for (var m = 0; m < orders.length; m++) {
                        var result = filter.evaluate(orders[m]["EmployeeID"]);
                        if (result)
                            ordersbyid.push(orders[i]);
                    }

    Thanks,

    Keshavan

    initrowdetails function #48612

    Peter Stoev
    Keymaster

    Hi Keshavan,

    index is the row’s bound index. parentElement is the Details HTML Element. gridElement is the Grid’s HTML Element, record or row is the row with the details that you initialize. For example, if you have a column with datafield=”name”, row.name will give you the cell’s value in the “name” column.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    initrowdetails function #120947

    ebonneauprog
    Participant

    Hi Peter,

    I’m totally new to web development and documentation is my way to learn (with examples).
    I’m using jqwidgets and wanted to figure out how to use the API documentation to figure out what are the parameters you can pass to functions ?

    initrowdetails is a good example, in the API, you see only “index” parameter and nothing is talking about gridElement nor parentElement.
    The only place we can see it is in the example when we click on it..

    I’m sure I’m missing something in order to properly read and go through the API documentation.

    Can you help me figure out where the documentation on those missing parameters are ?
    thanks

    initrowdetails function #120948

    Yavor Dashev
    Participant

    Hi ebonneauprog,

    I completely understand you concern and we are constantly working to improve the API documentation for the more complex components.

    That is why we also in the API documentation when you view the details of the method/property in most of the you will see a link to jsfiddle which showcases how to use it and we have detailed demos for most of the use cases of our components.

    If you need anything more specific you can always share a code example for which we could work on to helping you resolving your issue.

    Let me know what you think!

    Please, do not hesitate to contact us if you have any additional questions.

    Best Regards,
    Yavor Dashev
    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.