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

[Solved] Detail Grid will not go into Edit/Insert mode

2 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neal
Top achievements
Rank 1
Neal asked on 29 May 2009, 12:53 PM
Hi All,

The problem.
When i click on the Insert btn (CommandItemTemplate) of the Detail table, it does not go into "Insert Mode", ie no New Grid Row is provided (inline mode) to capture data into.
Is there a requirement I'm missing??

Scenario:
  • I am not using the <ParentTableRelation> . (I mention it because I don't know if this could cause the issue).  
  • DataBinding occurs in the DetailTableDataBind event.(MainGrid uses OnNeedDataSource).

Thanks
Neal

 

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 30 May 2009, 07:34 AM
Hello Neal,

Could you please share your code with us? I don't know what may be the exact problem in this case. You can attach the files to your previous support ticket.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Neal
Top achievements
Rank 1
answered on 02 Jun 2009, 07:24 AM
Thanks Daniel,
I found the problem.

I was not checking for if the item was or was not a  InsertItem (in the Grids

ItemDataBound

 

 

i.e.    ..... if (e.Item is GridDataInsertItem)

and subsequent code for 

 

e.Item

is GridDataItem && e.Item is GridEditableItem   was executed,.....end denying the put inot edit/insert mode.


So,..problem solved 

Neal

 

Tags
Grid
Asked by
Neal
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Neal
Top achievements
Rank 1
Share this question
or