EasyUI Forum
October 03, 2022, 06:04:17 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
1  General Category / EasyUI for jQuery / Re: Width attribute of textbox doesn't work on: August 10, 2022, 01:49:24 PM
The issue is that every other property listed in the docs can be set using an attribute but these can't. So maybe not exactly a bug, but inconsistent behavior.
2  General Category / EasyUI for jQuery / Re: Width attribute of textbox doesn't work on: August 08, 2022, 04:09:48 PM
Can you please respond to my last question about why this doesn't work? Thanks.
3  General Category / EasyUI for jQuery / Re: Width attribute of textbox doesn't work on: August 05, 2022, 06:41:44 AM
I don't want to use data-options since I already have a page with over 100 textboxes defined as in the code I posted. Why do the other properties work and width doesn't? They should all behave consistently. This is a bug!
4  General Category / EasyUI for jQuery / Width attribute of textbox doesn't work on: August 04, 2022, 11:48:34 AM
It seems that setting the width attribute of a textbox doesn't work and it has to be done in a style tag.

This doesn't work - the width is ignored:
Code:
<INPUT class='easyui-textbox' ID='txtPatient' label='Patient' labelWidth=70 width=350>

This does work:
Code:
<INPUT class='easyui-textbox' ID='txtPatient' label='Patient' labelWidth=70 style='width: 350px'>

Am I missing something here or is this a bug?
5  General Category / EasyUI for jQuery / Re: Blur event of combobox on: July 17, 2022, 10:47:37 AM
I don't understand why a timeout would make a difference. Can you please explain that? I tried your code and it doesn't work. You didn't answer my question about whether it's possible to trigger the blur only on selection.
6  General Category / EasyUI for jQuery / Blur event of combobox on: July 15, 2022, 08:46:55 AM
I'm having a problem binding to the blur event of the combobox. I need the event to be triggered only when the user leaves the combobox, not when the dropdown arrow is clicked. Using the following code, the blur event is triggered just by clicking the arrow.
Code:
 
// selCategory is a combobox
$('#selCategory').textbox('textbox').bind('blur', (function(e){ GetNextOrderNumber() } ));

I tried this but then it doesn't trigger at all.
Code:
 
$('#selCategory').combobox.bind('blur', (function(e){ GetNextOrderNumber() } ));

Is there a way to trigger the blur only on selection? I certainly hope so otherwise I can't use this component.
7  General Category / EasyUI for jQuery / Combobox width attribute on: April 15, 2022, 08:58:08 AM
On the combobox, the width property doesn't seem to work. If I use this code:
Code:
<SELECT class='easyui-combobox' panelHeight='auto' label='Category' editable=false labelWidth=90 width=320>
the combo looks like this:

http://galcott.com/combo1.jpg

I have to use a style tag to get the width to work.
Code:
<SELECT class='easyui-combobox' panelHeight='auto' label='Category' editable=false labelWidth=90 style='width: 320px'>
Then it works properly like this:

http://galcott.com/combo2.jpg


That doesn't seem like the way it's supposed to work. Is there an issue with the width property?


8  General Category / EasyUI for jQuery / Re: Datebox accepts alphabetic characters, which it shouldn't on: April 03, 2022, 09:52:16 AM
That works but why isn't that the normal behavior? A datebox should only accept digits and separators. This is definitely a bug.
9  General Category / EasyUI for jQuery / Datebox accepts alphabetic characters, which it shouldn't on: April 02, 2022, 04:01:43 PM
I have just found that the datebox component accepts alphabetic characters (a-z) which it definitely should not. Obviously it should only accept digits and date separators. I have tried to fix this by binding the keypress event to a function that checks the character typed and returns false if it's not a digit or separator but that doesn't work. How can this be fixed?
10  General Category / EasyUI for jQuery / Validation in editable datagrid on: March 06, 2022, 12:29:25 PM
I am using the datagrid with the cell editing extension. Initially the grid is empty and I append a bunch of blank rows for the user to enter data. There are 2 columns, and when the user enters data in the first column I need to validate it against a database. The problem is that I can't find any event that's triggered when the user leaves a cell. The extension has an onCellEdit event but that is triggered while the cell is being edited. I need an event that's triggered when the edit is done and returns the value entered. Is there a way to do that?
11  General Category / EasyUI for jQuery / Re: Blank line on combobox when loaded from remote data on: February 09, 2022, 06:38:17 PM
I checked my code again and it turns out that the PHP code to retrieve the records was inadverdently adding a blank record at the beginning. But the line being half height definitely is a bug, which can be fixed by using min-height in the CSS.
12  General Category / EasyUI for jQuery / Re: Blank line on combobox when loaded from remote data on: February 09, 2022, 04:24:28 PM
Actually I have found a workaround for this. If you look in the debugger you can see that EasyUI creates IDs for each individual item in the combobox, as shown here.

The ID I used for the combobox is selShipMethod. So it takes this and adds on the rest of what you see here. I don't know what the "i4" part means, but the last digit is sequential so the first (blank) item will always be _0.
Code:
<div id="selShipMethod_easyui_combobox_i4_0" class="combobox-item combobox-item-selected"></div>
<div id="selShipMethod_easyui_combobox_i4_1" class="combobox-item">Next Day Priority</div>
<div id="selShipMethod_easyui_combobox_i4_2" class="combobox-item">Next Day Standard</div>

So in my style section I just add this CSS and that eliminates the blank line. Strangely, using display: none instead of visibility: hidden doesn't work.

Code:
#selShipMethod_easyui_combobox_i4_0 {visibility: hidden}

13  General Category / EasyUI for jQuery / Re: Blank line on combobox when loaded from remote data on: February 09, 2022, 09:01:32 AM
Even if there is a blank record, it is a bug because the line is only half height which makes no sense. But in this case the table has no blank records, and I don't want an option for the field to be blank.
14  General Category / EasyUI for jQuery / Blank line on combobox when loaded from remote data on: February 08, 2022, 04:35:15 PM
When populating a combobox from a URL, I've noticed that the combobox has a blank item at the top even though the data doesn't have any blank records. This line is only about half the height of the data lines, as seen in this screen shot:
http://galcott.com/comfitdemo/combobox.jpg.

I don't want this line to appear at all so how can I get rid of it? This seems like a bug.
15  General Category / EasyUI for jQuery / Re: Filter function on numberbox on: June 25, 2021, 07:28:19 AM
This is what I was looking for. That sample code should be in the documentation, since it doesn't currently include any explanation of how to use the filter function.
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!