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

RadGrid does not Show Insert Mode

1 Answer 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 12 Jan 2009, 03:45 PM
I am using the latest and greatest from Telerik.

I have a Hierarchial RadGrid on a form that does not seem to snap into Insert mode.  I can click the Edit link and it shows my MasterEditTemplate form with my controls and everything works fine.  I have built a few projects so far where the grids using this model insert, update and delete records just fine.  The structure uses the NeedsDataSource and OnDetailTableDataBind event to supply the data to the grids and the ItemCommand event handler to act on.  Which is a typical pattern.

For some reason now the grid does not show the MasterEditTemplate in Insert mode when I click the factory "Add new Record" link on the top of the grid after setting the CommandItemDisplay to "Top" the page just refreshes in the normal browse mode.

As mentioned the insert was working, for some reason now I cannot get the grid to show the grid in Insert mode even though I can step into the ItemCommand handler and verify that the grid is firing the event with the RadGrid.InitInsertCommandName constant yet the page refreshes in browse mode.

Can anyone offer any suggestions?

1 Answer, 1 is accepted

Sort by
0
Reid
Top achievements
Rank 2
answered on 12 Jan 2009, 04:22 PM
Please ignore this post everyone.

I realized that the Insert link or CommandItemDisplay property of the primary level MasterView was set to "Top" for the top band of the hiercharchical display.  The actual item that would be inserted or edited is at the third level so as such is the band that should of had its CommandItemDisplay property set to "Top", not any of its parent bands.

Solved

:)
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Reid
Top achievements
Rank 2
Share this question
or