|
Title: Datagrid: Can't scroll columns when there are no rows Post by: phunksta on February 23, 2015, 03:14:06 AM Hi,
This issue seems very similar in description to this one (http://www.jeasyui.com/forum/index.php?topic=3746.0). I have a datagrid, with frozen columns, scrollview and filter row extensions. The user makes a filter condition that returns zero rows. The horizontal scrollbar disappears, so they can no longer access filter controls to 'undo' their previous filter action. The solution offered in the thread above seems to tinker with the 'view', where I already have scrollview plugin. It seems based around having at least 1 row in the table, even if a fake one. Is it somehow possible to let overflow in the column headers also affect the scroll? Thanks Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: jarry on February 24, 2015, 01:17:59 AM Please try to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.1-patch.zip and include it to your page.
Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: Opan Mustopah on February 24, 2015, 06:46:49 AM is there patch too for easyui 1.4.0 for this isssue?
Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: Stefan B. on February 24, 2015, 09:01:58 AM The patch is not working correct.
Now we see a datagrid with a dummy row after loading remote data with no datasets! See attachment Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: jarry on February 24, 2015, 05:34:35 PM Please try to download the updated patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.1-patch.zip.
Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: Stefan B. on February 25, 2015, 01:56:41 AM Hi jarry, the patch is not working when the
Code: rownumbers: true See: http://jsfiddle.net/813w8q32/2/ Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: jarry on February 25, 2015, 05:05:39 AM This issue has been fixed. Please re-download the patch again from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.1-patch.zip
Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: Opan Mustopah on February 25, 2015, 10:39:52 AM hey jarry, there is patch for this issue for easyui 1.4.0??
thanks Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: jarry on February 25, 2015, 06:20:29 PM Please use the code below to solve the scrollbar issue.
Code: (function($){Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: Stefan B. on February 26, 2015, 01:10:06 AM This issue has been fixed. Please re-download the patch again from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.1-patch.zip Fine this is better, but now we have the problem that the patch writes one hidden row with index 0. And the styler of each cell is called and also the rowStyler. And when there something is done you can see it in the table. See this exsample: http://jsfiddle.net/s7mpxk4g/ Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: jarry on February 26, 2015, 06:25:26 AM Please try this updated example
http://jsfiddle.net/s7mpxk4g/1/ If your issue continues, try to download the patch again or use the scrollbar fixed code above. The 'renderEmptyRow' function looks like this: Code: renderEmptyRow: function(target){Title: Re: Datagrid: Can't scroll columns when there are no rows Post by: Stefan B. on February 26, 2015, 07:17:10 AM Perfect. Now it works correct. And if now data exists also the styler and formatter not called.
BIG THX |