jQuery EasyUI Forum
February 20, 2017, 05:47:33 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1] 2 3 ... 10
 1 
 on: Today at 05:39:21 PM 
Started by Darrel - Last post by stworthy
You should call 'appendRow' or 'insertRow' methods to insert new rows and call 'deleteRow' method to delete a row.
Code:
function onCheck(index,row)
{
var dl = $('#chosenList_0');
dl.datalist('appendRow', $.extend(true,{},row));
}

function onUncheck(index,row)
{
var dl = $('#chosenList_0');
var index = dl.datalist('getRowIndex', row.value);
dl.datalist('deleteRow', index);
}

Please look at this updated example http://code.reloado.com/osadug4/4/edit

 2 
 on: Today at 05:22:04 PM 
Started by jgautier - Last post by stworthy
Call the 'textbox' to get the textbox object, turn on the autocomplete feature and bind 'keyup' event on it, you will be able to get the real inputing values. Please try this code:
Code:
$('#t1').textbox('textbox').attr('autocomplete','on').attr('name','myname').bind('keyup',function(e){
var v = $(this).val();
//...
})

 3 
 on: Today at 08:31:59 AM 
Started by jgautier - Last post by jgautier
Add a searchbox component to the page. When typing on the searchbox and press ENTER key, search new dataset and call 'loadData' method to load new data into the datalist.

Thanks for your answer : it's a good way.

I should have precised something else : I'd like something like an autocomplete behavior.
Type "a", then "ar", then "are" - without press ENTER -, and datalist actualize itself in real time.

I did'nt find this function using searchbox.
Could it be possible with a simple textbox ?

Thanks again

JG

 4 
 on: Today at 08:06:02 AM 
Started by jgautier - Last post by stworthy
Add a searchbox component to the page. When typing on the searchbox and press ENTER key, search new dataset and call 'loadData' method to load new data into the datalist.

Code:
<input class="easyui-searchbox" data-options="
        searcher: function(value){
            var data = ...  // search the data
            $('#dl').datalist('loadData', data);
        }
        ">

 5 
 on: Today at 07:54:17 AM 
Started by gordis gmbh - Last post by stworthy
You have to set the 'url' property before submitting a form.
Code:
$('#filesUploadWinForm').form({
  url: ...
  //...
});

 6 
 on: Today at 05:28:00 AM 
Started by xarn - Last post by xarn
Hi,

here is a small enhancement for the "mobile.css" theme.
Since the nodes have a greater height in mobile, the input box when editing it was on top rather than centered, which looks odd. Here's a "basic" fix.

Code:
/* editted tree node: input centered */
.tree-editor {
top: 5px;
}

 7 
 on: Today at 05:06:11 AM 
Started by Darrel - Last post by Darrel
Hello stworthy,

Firstly thank you for your fast response. The up/down movement of the datalist elements is working fine.

However I did see that when unchecking the checkbox in the first datalist, the second datalist isn't getting it's elements properly removed due to the fact that the index and row data are coming wrong from the first datalist.

For example on load of the page, the datalist has all the checkboxes checked causing the second datalist to have the same elements as well. But when I start unchecking the checkboxes in a sequential order, the unCheck logic fails, due to the index and row data that are incorrectly passed. I've added console debugs to try to solve the same but however, I wasn't able to figure out this weird behaviour. Sad

The reloado code for the same is:     http://code.reloado.com/osadug4/3/edit

I also have one more question, can the width of the datalist be set to auto depending on the width of the element it contains?

Please could you help me out with these. Smiley

Regards,
Darrel.

 8 
 on: Today at 04:40:53 AM 
Started by gordis gmbh - Last post by gordis gmbh
The form submission in EasyUI 1.5.1 is problematic. On submitting the form I get redirected to the home page. There is no request received on the server-side. I am trying to upload a file (selected by using filebox) on submitting the form.

I define the form and filebox objects as follows:
Code:
<script type="text/javascript">
$(function(){
$('#fileToUpload').filebox({
    prompt:'select file to upload',
    buttonText: 'Select File',
    buttonAlign: 'left',
    width:'250',
    accept:'text/*'
});

$('#filesUploadWinForm').form({
    ajax: false,
    success: function(serverResponse) {
handleUploadFileDoResponse(serverResponse);
    }
});
});
function handleUploadFileDoResponse(resp) { ... }

</script>
<div>
<form method="POST" id="filesUploadWinForm" enctype="multipart/form-data" accept-charset="UTF-8">
<input id="fileToUpload" name="fileToUpload">
</form>
</div>

If I include the form plugin "jquery.form.js" of Version 1.4.5 it works normal.

Could you please check what the problem is? Thanks!

 9 
 on: Today at 03:09:36 AM 
Started by saurabh - Last post by saurabh
how to display all option in pagelist option as shown below

 pageSize: 10,
 pageList: [10,20,50,'All']

 10 
 on: Today at 02:09:07 AM 
Started by Darrel - Last post by stworthy
Please refer to this updated example http://code.reloado.com/osadug4/2/edit#preview

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