EasyUI Forum
November 11, 2024, 03:49:22 PM *
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] 4 5 ... 14
31  General Category / EasyUI for jQuery / Re: Filterbuilder more fields with own editor on: December 29, 2022, 09:06:09 AM
Thanks.

Works


Happy New Year
32  General Category / EasyUI for jQuery / [SOLVED]Filterbuilder more fields with own editor on: December 24, 2022, 03:06:29 AM
If i have this code, and change field from status to typeName, the combobox still have the values from status combobox, not the values from typeName

      $('#fb').filterbuilder({
         rules: [{
            op: 'or',
            children: [{
               field: 'status',
               op: 'equal',
               value: '1'
            }]
         }],
         fields: [
            {
               field:'status',
               title:'Status',
               editor:{
                  type:'combobox',
                  options:{
                     editable:false,
                     width: '200px',
                     data:[
                        {value:'0',text:'Under udvikling'},
                        {value:'1',text:'Aktiv'},
                        {value:'2',text:'Afsluttet'},
                        {value:'3',text:'Pause'}
                     ]
                  }
               }
            },{
               field:'typeName',
               title:'Type',
               editor:{
                  type:'combobox',
                  options:{
                     editable:false,
                     width: '200px',
                     data:[
                        {value:'Fagspecialist',text:'Fagspecialist'},
                        {value:'Processejer',text:'Processejer'}
                     ]
                  }
               }
            }
         ],
         operators: opList
      })
33  General Category / EasyUI for jQuery / Re: Filterbuilder on: December 24, 2022, 02:15:56 AM
Hi Jarry.

Perfect. Thanks

Merry Christmas
34  General Category / EasyUI for jQuery / Re: Filterbuilder on: December 23, 2022, 01:27:36 AM
Tried this. The opList works fine, but the combobox is only a textbox

   var opList = [
      { op: 'contains', text: 'Indeholder' },
      { op: 'equal', text: 'Lig med' },
      { op: 'notequal', text: 'Forskellig fra' },
      { op: 'beginwith', text: 'begynder med' },
      { op: 'endwith', text: 'Slutter med' },
      { op: 'less', text: 'Mindre end' },
      { op: 'lessorequal', text: 'Mindre end eller lig med' },
      { op: 'greater', text: 'Større end' },
      { op: 'greaterorequal', text: 'Større end eller lig med' }
   ]

   $(function(){
      $('#fb').filterbuilder({
         rules: [{
            op: 'or',
            children: [{
               field: 'status',
               op: 'contains',
               value: '1'
            }]
         }],
         fields: [{
            field:'status',
            title:'Status',
            operators: opList,
            editor:{
               type:'combobox',
               options:{
                  editable:false,
                  width: '200px',
                  data:[
                     {value:'0',text:'Under udvikling'},
                     {value:'1',text:'Aktiv'},
                     {value:'2',text:'Afsluttet'},
                     {value:'3',text:'Pause'}
                  ]
               }
            }
         }]
      })
   });

35  General Category / EasyUI for jQuery / [SOLVED]Filterbuilder editor on: December 21, 2022, 04:59:55 PM
Hi.

Can't find the right way to get all the operators into the status field. The combobox is fine, but it uses the op: 'equal. text: 'Equal'

Of course i can write all into the field operators, but if i have more fields, i think it's not the way writing all operators over and over again..

   $(function(){
      $('#fb').filterbuilder({
         rules: [{
            op: 'or',
            children: [{
               field: 'status',
               op: 'contains',
               value: '1'
            }]
         }],
         fields: [
            {field:'status',title:'Status',
               operators: [
                  {op:'equal',text:'Equal',editor:{
                     type:'combobox',
                     options:{
                        editable:false,
                        width: '200px',
                        data:[
                           {value:'0',text:'Under udvikling'},
                           {value:'1',text:'Aktiv'},
                           {value:'2',text:'Afsluttet'},
                           {value:'3',text:'Pause'}
                        ]
                     }
                  }}                  
               ]
            }
         ],
         operators: [
            { op: 'contains', text: 'Indeholder' },
            { op: 'equal', text: 'Lig med' },
            { op: 'notequal', text: 'Forskellig fra' },
            { op: 'beginwith', text: 'begynder med' },
            { op: 'endwith', text: 'Slutter med' },
            { op: 'less', text: 'Mindre end' },
            { op: 'lessorequal', text: 'Mindre end eller lig med' },
            { op: 'greater', text: 'Større end' },
            { op: 'greaterorequal', text: 'Større end eller lig med' }
         ]
      })
   });


Jesper
36  General Category / EasyUI for jQuery / Re: Row from variable name on: December 21, 2022, 03:29:00 PM
Hi Jarry

The row = rows was an type error, my code was rows

I did try row[colName] but it didn't work. But now it works.  Roll Eyes

Jesper


37  General Category / EasyUI for jQuery / [SOLVED]Row from variable name on: December 21, 2022, 02:32:34 AM
Hi

Can't find how to use colName with row

function (objID,colName) {
   var rows = $('#'+objID).datagrid('getSelections');
   for(var i=0; i<rows.length; i++){
      var row = rows;
      dconsole.log(row.[colName])
   }
}

Regards Jesper
38  General Category / EasyUI for jQuery / Re: How to solve this ? on: December 07, 2022, 10:26:40 AM
Please use a better subject.

Everyone has to open the post to see what it 's about

Jesper
39  General Category / EasyUI for jQuery / Re: Datagrid onDblClickRow focus text on: November 10, 2022, 03:48:02 AM
Thanks Jarry

Works fine

40  General Category / EasyUI for jQuery / [SOLVED] Datagrid onDblClickRow focus text on: November 09, 2022, 02:33:12 PM
Hi.

Can't find the solution.

When dblclick a row, on the text, the text is highlighted. How to get rid of this.


Regards Jesper
41  General Category / EasyUI for jQuery / Re: JeasyUI Form Submission Enable/Disable Button on: September 27, 2022, 10:12:24 AM
Look at the demo

https://www.jeasyui.com/demo/main/index.php?plugin=Form&theme=material-teal&dir=ltr&pitem=&sort=asc
42  General Category / EasyUI for jQuery / Re: Form check if anything is changed and reversed on: May 30, 2022, 07:08:37 AM
Hi Jarry.

In between i found a solution, and it is similar to yours.

<form id="fmEditProfile" method="post" class="easyui-form" novalidate data-options="
      onLoadSuccess: function() {
         $('#saveButton').linkbutton('disable');
         origForm = $('#fmEditProfile').serialize();
      },
      onChange: function(target){
         if ($(this).serialize() !== origForm) {
            $('#saveButton').linkbutton('enable');
         } else {
            $('#saveButton').linkbutton('disable');
         }
      }">


Thanks anyway
43  General Category / EasyUI for jQuery / Re: Form check if anything is changed and reversed on: May 30, 2022, 01:47:51 AM
Is there anyone that have an solution.



Jesper
44  General Category / EasyUI for jQuery / Re: Form onchange fire on: May 23, 2022, 11:24:16 PM
Thanks Jarry


Is there a reason it does not work that way from the start. Could it then be made so that it could be turned on and off in properties
45  General Category / EasyUI for jQuery / [SOLVED]Form check if anything is changed or not on: May 23, 2022, 12:53:41 AM
Hi.

The onChange event can be fired when an element is changed.

But how to "Unchange" when the user have written something in a textbox, and deleted it again.

What i want is, that when user change something the save button must be enabled, but also when user delete the change, the savebutton must disable again, as no change is done.

Jesper
Pages: 1 2 [3] 4 5 ... 14
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!