This is a migrated thread and some comments may be shown as answers.

When update nested/details table not come from edit mode

1 Answer 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Akhil Raj
Top achievements
Rank 1
Akhil Raj asked on 05 Feb 2010, 07:20 AM
hi all,
  I created self refernceing heirarchy with edit functionality. When edit and update update functions work nicely for all levels. But after update i bind the grid again to sshow with all values. But in the first level / master table only came out from edit mode and bind. In the nested tables after pdate also exist in the edit mode itself. but new values updated successfulyl. Can i manually hard code to come out from edit mode ?

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 10 Feb 2010, 02:14 PM
Hello Akhil,

Are you performing the Update/insert operation manually or automatically? If you are performing the operation in code behind(manually), then set the AllowAutomaticInserts/Updates to false and check if it helps to close the edit form.

Also could you please double-check that after insert/update the record is added/updated in the grid source and you do not have e.Canceled = true somewhere in your InsertCommand/UpdateCommand handlers?

Also could you try the following code snippet and let me know if the issue still persists.

protected void RadGridCardDetails_PreRender(object sender, EventArgs e)          {            
  if (Session["ItemInserted"] != null && Session["ItemInserted"] ==
     "True")            
  {                 
     RadGridCardDetails.EditIndexes.Clear();                     
     RadGridCardDetails.MasterTableView.IsItemInserted = false;                 
      RadGridCardDetails.MasterTableView.Rebind();           
 }        
}

Additionally could you please post your grid definition along with the InsertCommand/UpdateCommand handlers in this forum thread? I will inspect the code and will do my best to advice you further.

Regards,
Radoslav
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
Akhil Raj
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or