Hello All,
I having a RadGrid with Filter enabled. when one search base on some filter and then wants to add record (inline edit) then a row is visible and when add record it will disapper due to filter is not cleared.
when nofilter is applied the filter condition is disappers and adding record is fine.
Is there any way to do when some one click on "Add Row", then filter condition is removed???
Please also check attached screen....
I tried below code, not works for me..
I having a RadGrid with Filter enabled. when one search base on some filter and then wants to add record (inline edit) then a row is visible and when add record it will disapper due to filter is not cleared.
when nofilter is applied the filter condition is disappers and adding record is fine.
Is there any way to do when some one click on "Add Row", then filter condition is removed???
Please also check attached screen....
I tried below code, not works for me..
protected
void grdDelegation_ItemCommand(object source, GridCommandEventArgs e)
{
try
{
hdnDelegationCommandName.Value = e.CommandName;
switch (e.CommandName)
{
case RadGrid.EditCommandName:
hdnDelegationGridAddUpdate.Value =
"2";
if (grdDelegation.MasterTableView.IsItemInserted)
{
e.Canceled =
true;
}
break;
case RadGrid.InitInsertCommandName:
//Pair filterPair = (Pair)e.CommandArgument;
//TextBox filterBox = (e.Item as GridFilteringItem)[filterPair.Second.ToString()].Controls[0] as TextBox;
//filterBox.Text = "";