Hi jarry
Thanks. Works fine.
Any way to revert it without reload ??
EasyUI
Home | Help | Search | Login | Register |
91
on: October 16, 2024, 12:07:35 AM
|
||
Started by jega - Last post by jega | ||
Hi jarry
Thanks. Works fine. Any way to revert it without reload ?? |
92
on: October 15, 2024, 07:15:36 PM
|
||
Started by jega - Last post by jarry | ||
Here is the extended method to achieve this functionality.
Code: $.extend($.fn.datagrid.methods, { Code: $('#dg').datagrid('setSameColumnWidth') |
93
on: October 14, 2024, 02:00:18 AM
|
||
Started by jega - Last post by jega | ||
One solution
var colWidth = 0; $.each(scrollCols, function(index, element) { if ($('#'+element.id).width() > colWidth){colWidth = $('#'+element.id).width()} }); $.each(scrollCols, function(index, element) { $('#'+element.id).css('width',colWidth); }); BUT, is there a better way to do it ?? |
94
General Category / EasyUI for jQuery / [SOLVED] Datagrid column same width depending on longest title
on: October 12, 2024, 11:47:47 AM
|
||
Started by jega - Last post by jega | ||
HI.
Can't find anythig about this. Have a datagrid with dynamic columns. How can i set the width to alle columns depending on the longest header title. Jesper |
95
on: October 11, 2024, 07:57:59 PM
|
||
Started by Wojak - Last post by jarry | ||
Please look at this example https://www.jeasyui.com/demo/test/test20.html. It works fine.
|
96
on: October 11, 2024, 03:05:08 PM
|
||
Started by Wojak - Last post by Wojak | ||
I found a code that calls
Code: _83b.ss.clean(); Code: .datagrid-header-rownumber and .datagrid-cell-rownumber After a reload by using Code: $('#dg').datagrid('clearSelections').datagrid('removeFilterRule').datagrid('reload'); Code: _83b.ss.clean(); If i comment it out it works fine, i wonder why ![]() Im using version 1.10.19 |
97
on: October 08, 2024, 06:24:19 AM
|
||
Started by Wojak - Last post by Wojak | ||
Hello,
I have again noticed a problem with the Scrollview in Datagrid. I have two datagrids with scrollview on the site. During the first load up, the rows do not render and after getData it shows any data, but not the “rows” are empty. Checking the item, I see that cells are generated, but they are empty. The POST method to the server renders the variable “rows”. After reload it shows correctly. Code: $(function () { |
98
on: September 23, 2024, 05:10:14 AM
|
||
Started by Wojak - Last post by Wojak | ||
I found that on a working example, you add the CSS code file inline. And then the class is one of.
Code: <div class="datagrid-cell hor-tcerp-zlozenia_datagrid-cell-c8-object_name"><span>Object Name</span><span class="datagrid-sort-icon"></span></div> Code: .datagrid-header-rownumber{width:29px} But in the datagrid that doesn't work, no such file is created and those class names from the columns are not there Code: <div class="datagrid-cell hor-tcerp-pozycje-kompletacja-dg_datagrid-cell-c10-object_name" style="text-align: center;"><span>Object name</span><span class="datagrid-sort-icon"></span></div> I have an inline file with “c9”, but already another one that should be with “c10” is empty, there is only the following in it Code: .datagrid-header-rownumber{width:29px} |
99
General Category / EasyUI for jQuery / Re: Datagrid editing row methonds to save and cancel with enter and escape
on: September 11, 2024, 06:29:15 AM
|
||
Started by Wojak - Last post by Wojak | ||
Works like a charm
![]() |
100
General Category / EasyUI for jQuery / Re: Datagrid editing row methonds to save and cancel with enter and escape
on: September 10, 2024, 06:53:44 PM
|
||
Started by Wojak - Last post by jarry | ||
Please listen to the 'onBeginEdit' event and then bind additional events on each editors.
Code: $('#dg').datagrid({ |