Hi Daniil,
Our scenario is as follows
cshtml has a editable gridpanel. In this user can;
1) Edit some cell values (used CellEditing Plugin)
2) Add new rows (used store.insert() and App.grid.editingPlugin.startEditByPosition()] )
3) Delete rows (here we update the store setting those respective records'
IsDeleted column value to
true )
All the above operation occur at client side.
Screen has a submit button which through direct event sends updated store to controller
de.Click.ExtraParams.Add(new Parameter
{
Name = "data",
Value = "#{Storenm}.getChangedData()",
Mode = ParameterMode.Raw,
Encode = true
});
And then at server side we have function which at one go updates all records to database.
public ActionResult HandleChanges(StoreDataHandler handler)
{
...
...
}
Requirement:
When user clicks a record for delete that respective row should get hiden through client side script.
As the
Hide is to happen as per user operation, we cannot go with
Way 1 - View's GetRowClass
On Trying
Way 2 - filter Store the record got hided but the
StoreDataHandler doesnot get updated record.
We haven't gone with
Way 3 - rebind the Store with the data excluding the record which you don't want to see. Or just remove it.
as
it's not actually a delete instead it is
update and hide
Thus, kindly guide us for a way wherein we, one control's event from the client side hide gridpanel row(s).