Jump to content

UniDBGrid bug enabled/mask


fiorilli

Recommended Posts

Hi,

In some registers that have more than one grid, master / details for example, some grids have problems.

In these master / details registers the user can include several records and only then save the register. Then activated the fields and disabled the grids when it is included a record.

This way the user can not navigate through the records during an insert / append.

But after adding the second record, the frontend grid is disabled (even if the backend is enabled).

I can not understand why this happens. Looking at the HTML, I noticed that in these cases the classes and elements of the mask are not removed.

Is there any way to solve this? UniGui version 1.10.0.1472. Below is the HTML code during registration.

<!--  First

    User opened the registration screen.
    BackEnd Grid Enabled = True
    FrontEnd Grid Enabled = True
    Status: Ok!
 -->
 <div class="x-panel x-abs-layout-item x-panel-default x-grid" style="left: 0px; top: 0px; width: 652px; height: 292px;" role="grid" aria-hidden="false" aria-disabled="false" aria-readonly="false" aria-multiselectable="false" id="O150C_id">
    <div id="O150C_id-bodyWrap" data-ref="bodyWrap" class="x-panel-bodyWrap" role="presentation">...</div>
</div>

<!-- Second

    User clicked on include, fields will be enabled and grids disabled.
    BackEnd Grid Enabled = False
    FrontEnd Grid Enabled = False
    Status: Ok! 
-->
<div class="x-panel x-abs-layout-item x-panel-default x-grid x-item-disabled x-masked-relative x-masked" style="left: 0px; top: 0px; width: 652px; height: 292px;" role="grid" aria-hidden="false" aria-disabled="true" aria-readonly="false" aria-multiselectable="false" id="O150C_id">
    <div id="O150C_id-bodyWrap" data-ref="bodyWrap" class="x-panel-bodyWrap" role="presentation">...</div>
    <div role="presentation" class="x-mask x-border-box" id="ext-element-294">...</div>
</div>

<!--  Third

    User clicked save, fields are disabled and grids are enabled.
    BackEnd Grid Enabled = True
    FrontEnd Grid Enabled = True
    Status: Ok! 
-->
<div class="x-panel x-abs-layout-item x-panel-default x-grid" style="left: 0px; top: 0px; width: 652px; height: 292px;" role="grid" aria-hidden="false" aria-disabled="false" aria-readonly="false" aria-multiselectable="false" id="O150C_id">
    <div id="O150C_id-bodyWrap" data-ref="bodyWrap" class="x-panel-bodyWrap" role="presentation">...</div>
</div>

<!-- Fourth 

    User clicked on include again, fields will be enabled and grids disabled. (class "x-masked" was not added).
    BackEnd Grid Enabled = False
    FrontEnd Grid Enabled = False
    Status: Ok! 
-->
<div class="x-panel x-abs-layout-item x-panel-default x-grid x-item-disabled x-masked-relative" style="left: 0px; top: 0px; width: 652px; height: 292px;" role="grid" aria-hidden="false" aria-disabled="true" aria-readonly="false" aria-multiselectable="false" id="O150C_id">
    <div id="O150C_id-bodyWrap" data-ref="bodyWrap" class="x-panel-bodyWrap" role="presentation">...</div>
    <div role="presentation" class="x-mask x-border-box" id="ext-element-299">...</div>
</div>

<!-- Fifth 

    User clicked save, fields are disabled and grids are enabled.
    BUG! the "x-masked-relative" class and the mask element were not removed. 
    BackEnd Grid Enabled = True
    FrontEnd Grid Enabled = False
    Status: BUG!
-->
<div class="x-panel x-abs-layout-item x-panel-default x-grid x-masked-relative" style="left: 0px; top: 0px; width: 652px; height: 292px;" role="grid" aria-hidden="false" aria-disabled="false" aria-readonly="false" aria-multiselectable="false" id="O150C_id">
    <div id="O150C_id-bodyWrap" data-ref="bodyWrap" class="x-panel-bodyWrap" role="presentation">...</div>
    <div role="presentation" class="x-mask x-border-box" id="ext-element-299">...</div>
</div>


<!-- Sixth 

    User clicked on include again, fields will be enabled and grids disabled. (class "x-masked" was not added).
    BackEnd Grid Enabled = False
    FrontEnd Grid Enabled = False
    Status: Ok! 
-->
<div class="x-panel x-abs-layout-item x-panel-default x-grid x-masked-relative x-item-disabled" style="left: 0px; top: 0px; width: 652px; height: 292px;" role="grid" aria-hidden="false" aria-disabled="true" aria-readonly="false" aria-multiselectable="false" id="O150C_id">
    <div id="O150C_id-bodyWrap" data-ref="bodyWrap" class="x-panel-bodyWrap" role="presentation">...</div>
    <div role="presentation" class="x-mask x-border-box" id="ext-element-303">...</div>
</div>

<!-- Seventh 

    User clicked save, fields are disabled and grids are enabled.
    BUG! the "x-masked-relative" class and the mask element were not removed. 
    BackEnd Grid Enabled = True
    FrontEnd Grid Enabled = False
    Status: BUG!
-->
<div class="x-panel x-abs-layout-item x-panel-default x-grid x-masked-relative" style="left: 0px; top: 0px; width: 652px; height: 292px;" role="grid" aria-hidden="false" aria-disabled="false" aria-readonly="false" aria-multiselectable="false" id="O150C_id">
    <div id="O150C_id-bodyWrap" data-ref="bodyWrap" class="x-panel-bodyWrap" role="presentation">...</div>
    <div role="presentation" class="x-mask x-border-box" id="ext-element-303">...</div>
</div>

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...