EasyUI Forum
May 07, 2024, 09:15:41 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 / Bug Report / [edatagrid] 1.5.4, 1.5.5, editRow not working after updateRow call while editing on: April 24, 2018, 03:32:14 AM
"updateRow", called on row being edited after "editRow" call, deactivates the editors and all subsequent "editRow" calls does not work.

Code:
$("#foo").edatagrid('editRow', 0); // works
$("#foo").datagrid('updateRow', {index: 0, row: {'field': 1}}); // row deactivated
$("#foo").edatagrid('editRow', 0); // doesn't work

Test case https://jsfiddle.net/a64x52nq/

For v1.5.4 this sequence completely breaks editRow
For v1.5.5 editRow stays broken for updated row only, and activating another row for edit can fix it (not sure)
2  General Category / Bug Report / Re: Bug with initially disabled combobox after calling combobox('enable') on: April 13, 2017, 02:03:43 AM
Thanks a lot Smiley
3  General Category / Bug Report / [SOLVED] Bug with initially disabled combobox after calling combobox('enable') on: April 11, 2017, 03:20:32 AM
Given there's disabled combobox

Code:
<select id="test" name="test" class="easyui-combobox" data-options="disabled:true">
    <option value="1">foo</option>
    <option value="2">bar</option>
</select>

which "compiles" to

Quote
<span class="textbox textbox-disabled combo" style="width: 40px; height: 20px;">
    <span class="textbox-addon textbox-addon-right" data-vivaldi-spatnav-clickable="1" style="right: 0px;">
        <a href="javascript:void(0)" class="textbox-icon combo-arrow textbox-icon-disabled" icon-index="0" tabindex="-1" style="width: 18px; height: 20px;"></a>
    </span>
    <input type="text" class="textbox-text validatebox-text" autocomplete="off" disabled="disabled" placeholder="" style="margin-left: 0px; margin-right: 23px; padding-top: 3px; padding-bottom: 3px; width: 14px;">
    <input type="hidden" class="textbox-value" name="test" disabled="disabled" value="1">
</span>

When you call $("#test").combobox("enable"), everything works as expected (textbox-disabled class removed, hidden value field enabled):

Quote
<span class="textbox combo" style="width: 40px; height: 20px;">
    <span class="textbox-addon textbox-addon-right" data-vivaldi-spatnav-clickable="1" style="right: 0px;">
        <a href="javascript:void(0)" class="textbox-icon combo-arrow" icon-index="0" tabindex="-1" style="width: 18px; height: 20px;"></a>
    </span>
    <input type="text" class="textbox-text validatebox-text" autocomplete="off" placeholder="" style="margin-left: 0px; margin-right: 23px; padding-top: 3px; padding-bottom: 3px; width: 14px;">
    <input type="hidden" class="textbox-value" name="test" value="1">
</span>

Now set combobox value with $("#test").combobox('setValue', 2). Hidden value field disabled again:

Quote
<span class="textbox combo" style="width: 40px; height: 20px;">
    <span class="textbox-addon textbox-addon-right" data-vivaldi-spatnav-clickable="1" style="right: 0px;">
        <a href="javascript:void(0)" class="textbox-icon combo-arrow" icon-index="0" tabindex="-1" style="width: 18px; height: 20px;"></a>
    </span>
    <input type="text" class="textbox-text validatebox-text" autocomplete="off" placeholder="" style="margin-left: 0px; margin-right: 23px; padding-top: 3px; padding-bottom: 3px; width: 14px;">
    <input type="hidden" class="textbox-value" name="test" disabled="disabled" value="2">
</span>

Now in order to submit form you have to show/hide panel - this enables hidden field.

Here's test case https://jsfiddle.net/jbastotp/
(Tested on 1.4.4 and 1.5.1)
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!