EasyUI Forum
October 19, 2025, 10:14:51 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: Combobox editable:false, Select on keypress on: February 05, 2014, 09:28:36 AM
Thanks stworthy you are a life saver!

below in my version that loops in values developed as a plugin

Code:
(function($) {
$.extend($.fn.combobox.methods, {
makeLetterSelectable: function(jq){
return jq.each(function() {
var cc = $(this);  // the combobox object
cc.combobox('textbox').bind('keydown', function(e){
var s = String.fromCharCode(e.keyCode);
var opts = cc.combobox('options');
var data = cc.combobox('getData');
var state = $.data(cc[0],'combobox');

for(var i=0; i<data.length; i++){
var item = data[i];

if (item[opts.textField].toLowerCase().substring(0,1)==s.toLowerCase() ){

if(typeof state.index== 'undefined'  || (typeof state.index!= 'undefined' && i>state.index)){
cc.combobox('select', item[opts.valueField]);
state.index = i;
break;
}
}
if(i==data.length-1 && typeof state.index!='undefined'){
state.index= undefined;
arguments.callee(e);
}
}

});
});

}
});
})(jQuery);
2  General Category / EasyUI for jQuery / Re: Combobox editable:false, Select on keypress on: February 05, 2014, 04:57:19 AM
Thanks for the quick answer stworthy.
Although that is not my case. I want to prevent user from writing in textbox but I want him to be able so select values by pressing letters just like the
link I provided to my original post (when you click on combo and type "A" then Audi is selected)
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select

Do you have a solution for this?


To prevent from typing anything in textbox, please set 'editable' property to false.
Code:
$('#cc').combobox({
  editable:false
});
3  General Category / EasyUI for jQuery / Combobox editable:false, Select on keypress on: February 05, 2014, 02:12:29 AM
Hi all!

Is there any way to select or filter values in an easyui-combobox on key press?
I don't want the user to be able to write in the combo cause he is able to write anything maybe not valid (not included in the dropdown list)

The functionality that we desire is like simple select element
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select

Regards  Smiley
4  General Category / EasyUI for jQuery / About datagrid field and remote sort on: January 17, 2014, 08:43:36 AM
Hi to all!
I just have 2 questions about datagrid

1) About field property of a column
Can I use the dot notation in field property of a column?
It would be nice to to define field like this  "field:'person.name',...  and not having to use a formmater to display name value

2)About remote sorting
Can change the sortName other than the field property without using a loader?

In other words i would like to render in one column the field person.name and send to server sortName:heading.name when sorting in this column

Thanks in advance
5  General Category / EasyUI for jQuery / Re: Question about tabs - Performance problem on: December 09, 2013, 04:47:05 AM
Thanks again,

I'll give it a try and I'll inform the forum about the performance improvement.

By the way when go you plan to release the 1.3.5 version?

6  General Category / EasyUI for jQuery / Re: Question about tabs - Performance problem on: December 02, 2013, 07:42:18 AM
Yes I understand this..

From profiler I figured out that the dateboxes take to much time to render.
Do you have any suggestion for reducing time for datebox rendering?

Thanks again
7  General Category / EasyUI for jQuery / Re: Question about tabs - Performance problem on: December 02, 2013, 05:33:18 AM
Thanks a lot for the quick answer.

The question actually is why one tab loads slower when already other tabs exists in the application.
Is it cause of the rising size of the DOM?




8  General Category / EasyUI for jQuery / Question about tabs - Performance problem on: November 29, 2013, 05:27:48 AM
Hallo all!

In our application we add easyui tabs using the href attribute.

Code:
			
$("#selectorX").tabs("add", {
title: 'title',
         href: 'url'
});

Each tab contains many easy ui components (one layout, grids, forms, dateboxes, etc)

When we add many tabs we have serious performance impact (at Internet Explorer 10).

Below is the time that takes for each tab to load (server will repospond with the same content)

1st tab :  8sec
2nd tab: 10sec
3d tab  : 15sec
7th tab: 30 sec

Question 1
Can you understand what causes this performance impact?

Question 2
When we add tabs using the href attribute the easyui builds the components that are described in the markup although it is an ajax call.
To be more precise when addTab is called and server responds with <input  class="easyui-datebox"> then easy ui creates a datebox.
The same does not happen when we make an ajax call and append markup to dom. Then we have to explicitly make the datebox in javascript.
So is it possible that easyui when we call addTab recreates all the components in all tabs so that causes the performance impact?

Question 3
If I use unique ids for the elements of each tab will this cause a performance imporevement? Now as it is we have many elements with
the same id each of them exists in a separate tab

Regards
Michalis

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