jQWidgets Forums

jQuery UI Widgets Forums Grid A Grid in a Tab

This topic contains 2 replies, has 2 voices, and was last updated by  Frogomat 12 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • A Grid in a Tab #9245

    Frogomat
    Participant

    Hi Everyone

    I need a little help to display a grid in a tab.

    Here is my codepart of the problem:

            $(document).ready(function () {
    $("#jqxgrid").jqxGrid(
    {
    width: 1280,
    height: 1024,
    source: dataAdapter,
    theme: theme,
    rowdetails: true,
    rowdetailstemplate: { rowdetails: "<div style='margin: 10px'>SendungenStatushistorie<div></div><div></div></div>", rowdetailsheight: 200 },
    initrowdetails: initAuftragsRowDetails
    columns: [{... }]
    });
    });
    //...............................
    var initAuftragsRowDetails = function (index, parentElement, gridElement, record) {
    var id = record.uid.toString();
    var grid = $($(parentElement).children()[0]);
    sourceSendung['data']['id'] = record['id'];
    if (grid != null) {
    var sendungen = grid.find('.sendungen');
    statusHistorie = grid.find('.statusHistorie');
    sendungen.jqxGrid(
    { source: sourceSendung,
    theme: theme, width: 1200, height: 200,
    columns: [
    { text: 'Id', datafield: 'id', width: 200 }
    ]
    });
    }
    $(grid).jqxTabs({ width: 600, height: 170, theme: theme });
    }

    There are no problems to display the grid when its not in tabs with the same source/sourceadapter. But when i try to put the whole thing into tabs, only the loading circle is displayed. When i use an adapter to load the data only the “downloadComplete”-event is fired.

    Did i miss something?

    A Grid in a Tab #9255

    Peter Stoev
    Keymaster

    Hi Frogomat,

    Please see the jqxTabs demos. There’s already an example which shows how to display a Grid in Tabs widget: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtabs/integration.htm?classic

    Best Regards.
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    A Grid in a Tab #9256

    Frogomat
    Participant

    I will do that. Thank you.

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

You must be logged in to reply to this topic.