Jul 09, 2021, 5:50 PM
[CLOSED] Grid with Paging Toolbar Dirty flag
Hi , I am using using Version 4.7.1, but I can see same issue on version 5.3.0.0
I have bind Grid with few records on loading page, While checking Grid has any Dirty (without doing any changes)
on Paging Toolbar number Field showing isDirty True.
How to make by default it is false ?
after refresh or load Grid, it should be isDirty false flag
for Eg : I have use the code from Web Forms Examples 5.3 -> Grid Panel -> ArrayGrid -> ArrayWithPaging
and added a new button for check has any Dirty Child.
my button
I have bind Grid with few records on loading page, While checking Grid has any Dirty (without doing any changes)
on Paging Toolbar number Field showing isDirty True.
How to make by default it is false ?
after refresh or load Grid, it should be isDirty false flag
for Eg : I have use the code from Web Forms Examples 5.3 -> Grid Panel -> ArrayGrid -> ArrayWithPaging
and added a new button for check has any Dirty Child.
my button
<ext:Button runat="server" Text="CheckDirty" ItemID="btnCheckDirty">
<Listeners>
<Click Handler="hasDirtyChild()"></Click>
</Listeners>
</ext:Button>
I have used this function for check any dirty
var hasDirtyChild = function() {
var grid = App.GridPanel1;
Ext.each(grid.query('*'), function (item) {
if (item.isDirty && item.isDirty()) {
ret = true;
}
});
}
it is returning true because of Paging Toolbar number Field is dirty
Last edited by fabricio.murta; Jul 19, 2021 at 1:15 PM.
Reason: Resolved.