EasyUI Forum
May 01, 2024, 07:10:39 PM *
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: FinYear Spinner on: April 29, 2017, 12:10:38 PM
what value do you expect back from the spinner? to values e.g. 2017 & 2019 or a text for example? I mean what is going into the database?

From experience financial we save is just the start year since we know it will run into the next year for that matter.

2  General Category / EasyUI for jQuery / Re: color picker on: April 29, 2017, 01:59:56 AM
working! thnx
3  General Category / EasyUI for jQuery / Re: simple drag drop datalist on: April 28, 2017, 02:42:44 PM
ok here is a possible solution, taken/adapted from a previous post for another user's question where stworthy helped - I just replaced the all select and unselect with var rows = $easy('#dg').datagrid('getRows'); and corrected a typo I believe newPosIds.push(rows.id);      

** but I now have 2 new problems ;-)

1) the name column doesnt resize to full width / the hidden field is taking up space still - as you can see I tried 2 different ways of forcing a width refresh - any ideas?

2) I want it to stop highligting selected items e.g that it turns orange or whatever the background color is for a selected item - since I dragged and not selected the item e.g. I want to make all items in list not selectable - more ideas?



  <table class="easyui-datagrid" id="dg" width="100%" title="Workflow Steps" data-options="
    idField: 'id',
    rownumbers:true,
    fitColumns: true,
    fit: true,
    singleSelect: false,
    showHeader: false,
    showFooter: false,
    onLoadSuccess:function(){
      $easy(this).datagrid('enableDnd');
      $easy(this).datagrid('hideColumn','id');
      $easy(this).datagrid('resize');
      $easy(this).datagrid('fixColumnSize','name');
    },
    onDrop:function(destRow,sourceRow,point){ 
      var newPosIds = [];       
      var rows = $easy('#dg').datagrid('getRows');       
      for(var i=0; i<rows.length; i++){        
        newPosIds.push(rows.id);      
      }       
      alert(newPosIds);       
      }">


    <thead>
      <tr>
        <th data-options="field:'id'">Id</th>
        <th data-options="field:'name'" width="100%">Steps</th>
      </tr>
    </thead>
    <tbody>
      <tr>           
        <td>1</td><td>Step 1</td>
      </tr>
      <tr>           
        <td>2</td><td>Step 2</td>
      </tr>
      <tr>           
        <td>3</td><td>Step 3</td>
      </tr>
    </tbody>
  </table>
4  General Category / EasyUI for jQuery / Re: simple drag drop datalist on: April 28, 2017, 09:33:18 AM
I started from the point that the datalist extends from the datagrid - and have a working drag drop for datagrid with the extra dnd JS file. But it doesn't make sense that I cannot drag and drop the datalist or am I missing something?
5  General Category / EasyUI for jQuery / [updated partial solution] simple drag drop datalist on: April 28, 2017, 08:50:08 AM
Hi guys, a bit of advice needed - I need a really simple simple drag drop datalist - since the list has all the info I need key and value - but the datalist has no DnD property do I need to add another JS to add the functionality - I read somewhere in the forum of such a extra - but lost the link now - will search again :-) Or is there another very simple way.

6  General Category / EasyUI for jQuery / Re: [solved] hiding and showing window's footer on: April 28, 2017, 07:51:18 AM
I made this [solved] since I think we have a working solution(s) - thanks again stworthy
7  General Category / EasyUI for jQuery / [solved] color picker on: April 28, 2017, 07:48:37 AM
I was wondering if anybody has used the color picker stworthy mentioned at https://www.jeasyui.com/extension/downloads/jquery-easyui-color.zip ?

I just want to make sure, before I butcher (or try to) the code 1) first time you drop down you have a 8x8 grid and each dropdown after that adds another grid of 8x8 so the second time arround you have a 8x16 then 8x24 - eg the palette repeats. Me, my PC or bug?

then 2) the loaded value once you start is not colored as the selected one is - correct?

thanks
T
8  General Category / EasyUI for jQuery / Re: hiding and showing window's footer on: April 17, 2017, 11:04:39 AM
ok fixed that by forcing a specific resize:

$easy('#windowcandidate').window('resize',{width:1000,height:650});

just 1 strange thing though, the container window's inner border-bottom dissapears?! stranger and stranger

9  General Category / EasyUI for jQuery / Re: hiding and showing window's footer on: April 17, 2017, 10:36:44 AM
that was a great push in the right direction - thnx man - however the footer still showed an odd 10px of stuff when settting the hight to 0px - go figure ;-) anyway this got rid of it and I figure display block will bring it back

$easy('#windowcandidate').window('footer').css('display','none');

but hit another stumble block, the resize works on the semi - after resize the window is almost cut in 1/2 resulting in the container tab & form to be cut-off and a scroll bar being added

any ideas? I'll check the forum for resize issues anyway ;-)
10  General Category / EasyUI for jQuery / [solved] hiding and showing window's footer on: April 16, 2017, 01:12:29 PM
Sorry to bother but it is late and I'm staring at the screen and cant get this to work. I want to hide & show a window's footer. I tried a couple of attacks but lack of sleep is getting at me, any one help?

my window=windowcandidate and footer=windowcandidatefooter

$('#windowcandidate').panel('footer').remove(); //since panel is part window ne?

showing & refreshing is another mission ;-)

any ideas?
11  General Category / EasyUI for jQuery / dependent comboboxes on: February 14, 2017, 01:13:43 PM
Hi there, I have a couple (a lot) of linked select ... option listboxes that is linked already via code - so when the page loads the 1st value is selected, the second list box is populated via that value and the correct value selected, on change the whole thing is redone.

Now I have made the select .. options into comboboxes and i looks great - problem is that once the easyui component is in place it ignores the old components - is there a way to have the easyui lib redo the whole process of taking the relevant select .. option and redrawing it - or will I need to redo the code for all of these?

Thanks

12  General Category / EasyUI for jQuery / Re: firing onSelect on tab select on: February 14, 2017, 01:08:43 PM
I got it figured it out - was just tired when I did this - the problem was the sequence of how I setup the onSelect events - moved them into the correct sequence - and vioila!

Thnx for the reply - it made me look at the problem again from a different angle
13  General Category / EasyUI for jQuery / Re: firing onSelect on tab select on: February 02, 2017, 10:27:26 PM
or is there a way that I can kick of the event by myself - just started playing with easyUI so not up to speed yet ;-)
14  General Category / EasyUI for jQuery / firing onSelect on tab select on: February 02, 2017, 05:01:32 PM
Hi all, I was wondering if I can fire the onSelect event when I select the tab via code, is this possible at all? Thanks
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!