EasyUI Forum
April 29, 2024, 04:00:40 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: Stop the events of pagination on: January 17, 2020, 12:35:50 AM
Good morning,
I tried the example and I understand why I can't solve with my code. The example works in Firefox, IExplorer, but in Chrome it doesn't display the alert.
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.
5  General Category / EasyUI for jQuery / Re: Error during filter in datagrid from keyboard on: May 23, 2017, 08:42:48 AM
Thank you
Stworthy, I seem to have realized I forgot to put: .... options: {precision: 2, decimalSeparator: ','}, ... in filter definition. Now the error has disappeared.
Greetings.

Michele.
6  General Category / EasyUI for jQuery / Error during filter in datagrid from keyboard on: May 22, 2017, 09:48:27 PM

Good morning at all, I entered a ticket a few days ago.

https://www.jeasyui.com/forum/index.php?topic=6706.0

There is no solution.
 
Unfortunately I have not been able to solve this problem yet.

I add an application screen with the error console.


Thank you all.

Michele.


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.
9  General Category / EasyUI for jQuery / Re: combobox filter remote on: April 13, 2017, 10:16:10 AM
Thank you.
This time it works fine.

Greetings.
Lo Monaco Michele.
10  General Category / EasyUI for jQuery / Re: combobox filter remote on: April 12, 2017, 01:15:01 AM
Good morning, I tried to insert the recommended code, but still dominates the event: doFilter default. see Attachment.

Thank you.
Michele.
11  General Category / EasyUI for jQuery / Re: combobox filter remote on: April 11, 2017, 09:11:37 PM
Thanks, now I try and let you know.
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.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!