jQWidgets Forums

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Notification behind grid row #64272

    elbnacht
    Participant

    I made a simple combination from two samples. Both put into jsfiddle.
    jqxGrid API / height
    http://jsfiddle.net/jqwidgets/35kU5/

    jqxNotification / Getting Started

    The notification opens in front of the table except the table header row.
    Any ideas to overcome this behavior? I found this as well in my application.

    This is the fiddle code.

    
     var data = generatedata(500);
     var source = {
         localdata: data,
         datafields: [{
             name: 'firstname',
             type: 'string'
         }, {
             name: 'lastname',
             type: 'string'
         }, {
             name: 'productname',
             type: 'string'
         }, {
             name: 'date',
             type: 'date'
         }, {
             name: 'quantity',
             type: 'number'
         }, {
             name: 'price',
             type: 'number'
         }],
         datatype: "array"
     };
    
     var adapter = new $.jqx.dataAdapter(source);
     $("#jqxgrid").jqxGrid({
         width: 500,
         theme: 'energyblue',
         height: 300,
         source: adapter,
         sortable: true,
         columns: [{
             text: 'First Name',
             datafield: 'firstname',
             width: 90
         }, {
             text: 'Last Name',
             datafield: 'lastname',
             width: 90
         }, {
             text: 'Product',
             datafield: 'productname',
             width: 170
         }, {
             text: 'Order Date',
             datafield: 'date',
             width: 160,
             cellsformat: 'dd-MMMM-yyyy'
         }, {
             text: 'Quantity',
             datafield: 'quantity',
             width: 80,
             cellsalign: 'right'
         }, {
             text: 'Unit Price',
             datafield: 'price',
             cellsalign: 'right',
             cellsformat: 'c2'
         }]
     });
    
        $(document).ready(function () {
            $("#jqxNotification").jqxNotification({ width: "auto", position: "top-left",
                opacity: 0.9, autoOpen: true, autoClose: false, template: "info"
            });
        });
    
    <div id="jqxgrid"></div>
    
    <div id="jqxNotification">
        Welcome to our website!</div>
    
    
    Notification behind grid row #64288

    Peter Stoev
    Keymaster

    Here’s updated fiddle: http://jsfiddle.net/s4jLnxx3/. If you want to display notification above a widget, you’ll have to set its “z-index”.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.