Show Posts
|
Pages: [1]
|
2
|
General Category / EasyUI for jQuery / Re: Stop the events of pagination
|
on: January 16, 2020, 03:31:11 AM
|
Thank you for your suggestion. I downloaded version 1.9.3, but the onBeforeSelectPage event handler seems not to be handled. Below the code that I tested that does not display the alert.
.... .... var pager = dd.datagrid('getPager'); var popts = pager.pagination('options'); var onBeforeSelectPage = popts.onBeforeSelectPage;
popts.onBeforeSelectPage = function(pageNumber, pageSize){ alert('ok'); return false; }
|
|
|
3
|
General Category / EasyUI for jQuery / Re: Stop the events of pagination
|
on: January 15, 2020, 02:24:02 AM
|
Thanks for the reply. I solved the problem this way (see code below) but I would have preferred to block the event: onSelectPage. It can be done ?
Michele.
... ... var pager = dd.datagrid('getPager'); var popts = pager.pagination('options'); var onSelectPage = popts.onSelectPage; popts.onSelectPage = function(pageNumber, pageSize){ var rows = $('#tt').datagrid('getChanges'); alert(rows.length+' rows are changed!'); if(rows.length > 0) { var rc = confirm('Ci sono records da salvare. Confermi ?'); if(rc) { var dataString = JSON.stringify(rows) ; var url = 'save.php'; $.ajax(url, { type:'POST', data: {myData: dataString}, success: function(data){ alert($.trim(data) ); }, error: function(){ alert('Errore'); } }); } onSelectPage.call(this, pageNumber, pageSize);
} else { onSelectPage.call(this, pageNumber, pageSize); }
|
|
|
4
|
General Category / EasyUI for jQuery / Stop the events of pagination
|
on: January 14, 2020, 02:25:18 AM
|
Hello, sorry if I use an automatic translator, but I don't speak English well. I would need to stop paging when there is still data to save in datagrid remote. Is it possible to stop the event and stay on the modified data page? Thank you.
|
|
|
7
|
General Category / EasyUI for jQuery / jquery-easyui-edatagrid
|
on: May 21, 2017, 10:45:53 AM
|
Good evening, I'm using the example found in the demo that works fine, but when typing something in the filter: listprice or unitcost, a console error is sent even if the video response is correct.
datagrid-filter.js:480 Uncaught TypeError: Cannot read property 'target' of null at addFilterRule (datagrid-filter.js:480) at HTMLDivElement.<anonymous> (datagrid-filter.js:1012) at Function.each (jquery.min.js:2) at m.fn.init.each (jquery.min.js:2) at Object.addFilterRule (datagrid-filter.js:1011) at m.fn.init.$.fn.datagrid (jquery.easyui.min.js:10648) at _doFilter (datagrid-filter.js:268) at datagrid-filter.js:259
Why ? Attached all the code I'm using. Thank you for your response.
Michele.
|
|
|
8
|
General Category / EasyUI for jQuery / datagrid detailview
|
on: April 16, 2017, 12:15:22 AM
|
Good morning, I have a little problem. I defined a datagrid with the property view: detailView, when I open another datagrid where I do not need detailView, I still see it active.
see Annex (loadAziende (), loadParticelle (), loadProdotti ()
How can I forgive view: default?
Michele.
|
|
|
12
|
General Category / EasyUI for jQuery / combobox filter remote
|
on: April 11, 2017, 10:24:17 AM
|
Good evening, I apologize for my poor English, use a translator. I defined a combobox with a remote datasource, but when I type something in the input box called the server to each character by slowing down the operation. You can call the server unless I have written at least 3-4 characters?
my code attached.
Thank you.
|
|
|
|