dojox.grid.datagrid - Vertical scroll bar for dojo enhanced grid -


required scroll bar display on grid on first load...it working in chrome, not in ie...

for this, require event when data loaded grid complete.

i tried 'onfetchcomplete' event, called multiple times because uses lazy load approach...

also made changes css of 'dojoxgridcontent' class apply overflow-y: scroll...

but is not working...

can me on issue.

source code:

var mygrid = new enhancedgrid({      id: "grid",      store: gridstore, //data store passed input      structure: gridstructure, //column structure passed input      autoheight: true,      autowidth: true,      initialwidth: width,      cansort : true,      plugins: {          filter: {            //filter operation            isserverside: true,            disabledconditions : {"anycolumn" : ["equal","less","lessequal","larger","largerequal","contains","startswith","endswith","equalto","notcontains","notequalto","notstartswith","notendswith"]},            setupfilterquery: function(commands, request){                if(commands.filter && commands.enable){                    //filter operation                  }                }              }  }, dojo.byid("mydatagrid"));         mygrid.startup();
 #grid {      height: 20em;  }
<div id="container" class="claro">      <div id="mydatagrid" style="height:200px"></div>  </div>

thanks

in grid option you've assign value (number of rows show) autoheight attribute option , example autoheight: 10 show range of 10 rows (with scroll)

you can check working fiddle

or see below snippet (problem of blocked filter iframe )

require(["dojox/grid/enhancedgrid",            "dojo/data/itemfilewritestore",           "dojox/grid/enhanced/plugins/filter",           "dojo/parser",            "dojo/on",            'dojo/domready!'],     function(enhancedgrid, itemfilewritestore, filter, parser, on) {      var data = {        identifier: 'id',        items: []      };        var data_list = [{          col1: "normal",          col2: false,          col3: 'but not followed 2 hexadecimal',          col4: 29.91        },        {          col1: "important",          col2: false,          col3: 'because % sign indicates',          col4: 9.33        },        {          col1: "important",          col2: false,          col3: 'signs can selectively',          col4: 19.34        }      ];        var rows = 60;        (var = 0, l = data_list.length; < rows; i++) {        data.items.push(dojo.mixin({          id: + 1        }, data_list[i % l]));      }          var gridstore = new itemfilewritestore({        data: data      });        var gridstructure = [        [{            'name': 'column 1',            'field': 'id'          },          {            'name': 'column 2',            'field': 'col2'          },          {            'name': 'column 3',            'field': 'col3',            'width': '230px'          },          {            'name': 'column 4',            'field': 'col4',            'width': '230px'          }        ]      ];            var mygrid = new enhancedgrid({        id: "grid",        store: gridstore, //data store passed input        structure: gridstructure, //column structure passed input        autoheight: 10,        autowidth: true,        initialwidth: 100,        cansort: true,        plugins: {          filter: {            //filter operation            isserverside: true,            disabledconditions: {              "anycolumn": ["equal", "less", "lessequal", "larger", "largerequal", "contains", "startswith", "endswith", "equalto", "notcontains", "notequalto", "notstartswith", "notendswith"]            },            setupfilterquery: function(commands, request) {              if (commands.filter && commands.enable) {                //filter operation              }            }          }        }      },"mydatagrid");          mygrid.startup();                                       }  );        
#grid {      height: 20em;  }  html, body {      height: 100%;      padding: 0;	      margin: 0;      font-family: lucida sans,lucida grande,arial !important;      font-size: 13px !important;      background: white;      color: #333;  }
<link href="https://ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojox/grid/enhanced/resources/claro/enhancedgrid.css" rel="stylesheet"/>    <link href="https://ajax.googleapis.com/ajax/libs/dojo/1.8.3/dijit/themes/claro/claro.css" rel="stylesheet"/>  <script src="https://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js"></script>      <div id="container" class="claro">      <div id="mydatagrid" style="height:200px"></div>  </div>


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -