EasyUI Forum
May 21, 2024, 02:49:06 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2 3 ... 13
1  General Category / EasyUI for jQuery / Re: Datalist checked rows on: May 17, 2024, 06:59:34 AM
Hi jarry

Didn't have so much time in the past.

Now i had the same in another code. This was a datagrid

Found that my idField of datagrid not had a right idField.

idField="libName" but in the data it was "libID". Changed to that, and everything works.



2  General Category / EasyUI for jQuery / [SOLVED] Datalist checked rows on: February 19, 2024, 05:55:02 AM
Hi.

Having som trouble with the datalist

I have a dialog with a datalist which is loaded with 130 rows. On open list i check the rows that i need. First time it's 36 rows checked. Closing dialog and open again with 46 different rows checked.

If i only open list with first 36 checked and using var rows = $('#dtList').datalist('getChecked'), rows.length is 36.
When open dialog 2nd time and there is 46 rows checked, rows.length is 82.

Why can this happen, when i only see the 36 or 46 rows checked Huh

Jesper

3  General Category / EasyUI for jQuery / re: Validation required show tab on: September 01, 2023, 09:29:54 AM
Ohh, just found it in another topic


$('#ff').form('submit', {
   onSubmit: function(){
      var form = $(this);
      var isValid = form.form('validate');
      if (!isValid){
         var field = form.find('.validatebox-invalid:first');
         var panels = $('#tabs').tabs('tabs');
         for(var i=0; i<panels.length; i++){
            var panel = panels;
            if (panel.has(field).length){
               var index = $('#tabs').tabs('select', i);
               setTimeout(function(){
                  field.focus();
               },0)
               break;
            }
         }
      }
      
      return isValid;
   }
})
4  General Category / EasyUI for jQuery / [SOLVED] Validation required show tab on: September 01, 2023, 09:24:30 AM
Hi.

On validation, how can i show the tab where the required textbox is ??


Jesper
5  General Category / EasyUI for jQuery / Populate datebox from another datebox on: June 26, 2023, 02:42:42 PM
Hi.

Have a datebox1 and want to set datebox2 to same date.

If user do an onClick in the calendar, it's easy, but how to set it if user only writes a date


Jesper
6  General Category / EasyUI for jQuery / Re: attribute form on input element on: May 12, 2023, 01:05:44 PM
Why do you want it this way. ?

7  General Category / EasyUI for jQuery / Re: EasyUI Datagrid Export on: May 08, 2023, 09:34:45 AM
Hi jarry

I know this. Maybe i do something not so smart.

Because i have the script file on every page where it is used, i'll have to add/change ?v=x.x.x on every one of these pages, everytime i'll upgrade, and therefor i dont have ?v= on all pages. Maybe this is stupid. Maybe i just have to load all used script files from index file, and then only add/update ?v= on this page. It should not affect performance, because they are loaded from cache other than first load and after upgrade. What do you think ?

Jesper

 
8  General Category / EasyUI for jQuery / Re: attribute form on input element on: May 08, 2023, 09:10:57 AM
Hi

A textbox can be used anywhere. What do you want ?

Jesper
9  General Category / EasyUI for jQuery / Re: EasyUI Datagrid Export on: May 05, 2023, 05:32:08 AM
argh. Damm

The filter js was in cache, so it did not use the new 1.0.6 but 1.0.2

What is the best way to ensure that it always load the file and not use cache, without disable cache


Thanks for your time.
10  General Category / EasyUI for jQuery / Re: EasyUI Datagrid Export on: May 05, 2023, 01:19:47 AM
Hi jarry

Updated to latest version, still the same.

I have stripped all other code on the site, only the grid is left. Filter is enabled

When do a filter to 1 record, select it and push excel button, then it has a child column. When delete the filter text, it still have the child. After refresh site the child column is gone.

My site is an classic ASP page .asp. I changed it to html before attach it here. Exactly the same site, just changed the .asp to .html and now it works.

Very strange.
11  General Category / EasyUI for jQuery / Re: EasyUI Datagrid Export on: May 04, 2023, 12:54:57 AM
Yes, your code works, also if i tried in on my page beside my dg

However, i found the error.

I have this code and enabled the filter.

    $(function(){
      var dg = $('#dgList').datagrid({
         url: 'getfromdb.asp?st=schedulerlog',
         pageList: [10,20,30,40,50,100],
         rownumbers:false,
         pagination: true,
         clientPaging: false,
         remoteFilter: true,
         fitColumns: false
      });
      dg.datagrid('enableFilter');
    });

the resut is

ID:"74",children: undefined,endTimestamp:"03-05-2023 06:15:19",logText:""..........

And if filter is not enabled i get this

ID:"74",endTimestamp:"03-05-2023 06:15:19",logText:""..........

I need the filter. Have i something wrong ?

12  General Category / EasyUI for jQuery / Re: EasyUI Datagrid Export on: May 02, 2023, 03:19:25 AM
Found it.

BUT. Can you explain this

Loaded data in my datagrid:

ID:"61"
endTimestamp:"01-05-2023 06:25:03"
logText:""
powershellFile:"trigger_06.ps1"
scheduleFile:"scheduled_cleanup.asp"
startTimestamp:"01-05-2023 06:25:00"

When call function to export i do this:

var items = $('#dgList').datagrid('getSelections');

to only export these rows

When look at the items data it has added a children key

ID:"61"
children:undefined
endTimestamp:"01-05-2023 06:25:03"
logText:""
powershellFile:"trigger_06.ps1"
scheduleFile:"scheduled_cleanup.asp"
startTimestamp:"01-05-2023 06:25:00"
13  General Category / EasyUI for jQuery / Re: EasyUI Datagrid Export on: May 02, 2023, 01:00:19 AM
Hi Jarry

Where to find this library ?
14  General Category / EasyUI for jQuery / Re: easyui-menubutton - create a menu with json on: April 24, 2023, 12:30:54 AM
Please mark [SOLVED] in the subect. ;-)
 
15  General Category / EasyUI for jQuery / Re: easyui-menubutton - create a menu with json on: April 22, 2023, 02:17:05 PM

Add an onClick to the functions and in the json data add iconClass, if needed, and additional items to tell what should happen in the onClick



var menuData = [{
        text: 'File',
        iconCls: 'icon-add',
        items: [{
            text: 'Exit',
            iconCls: 'icon-add',
            link: 'test.asp',
            linkType: 'window_blank',
            linkName: 'Testside'
        }]
    }];

    function createMenuBar(data, container){
      $.map(data, function(btn){
         var b = $('<a href="javascript:void(0)"></a>').appendTo(container);
         if (btn.items){
            b.menubutton($.extend({}, btn, {
               menu: createMenu(btn.items)
            }));           
         } else {
            b.linkbutton($.extend({}, btn, {
               plain: true,
               onClick: function(){
                  if (item.link) {
                     if (item.linkType == 'window_blank') {
                        window.open(item.link,item.linkName)
                     }
                  }
               }
            }));
         }
      });
      
      function createMenu(items){
         var m = $('<div></div>').appendTo('body').menu();
         _create(items);
         return m;
      
         function _create(items, p){
            $.map(items, function(item){
               m.menu('appendItem', $.extend({}, item, {
                  parent: (p?p.target:null),
                  onclick: function(){
                     if (item.link) {
                        if (item.linkType == 'window_blank') {
                           window.open(item.link,item.linkName)
                        }
                     }
                  }
               }));
               if (item.items){
                  var p1 = m.menu('findItem', item.text);
                  _create(item.items, p1);
               }
            });
         }
      }
   }
Pages: [1] 2 3 ... 13
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!