I have an issue, I'm editing a rad grid when I click the edit button I able to edit the complete row (horizontal), but I want to see the edition fields in a vertical order. I attached a couple of pictures. I want so see it in vertical order.
Thanks in advance.
it's throwing the follow exception: Unable to cast object of type 'Telerik.Web.UI.GridEditFormItem' to type
'Telerik.Web.UI.GridHeaderItem'. And it is reasonable since e.Item is a GridEditFormItem. I would appreciate if you can help me with this inconsistency.
Looking forward to your comments.
And I have an additional issue. I get the following exception when I'm trying to Insert a register: Cannot find cell bound to column with unique name 'Active'
And finally the property e.Item isGridDataInsertItem it seems always false which if you click insert or add it would never execute the code inside if(e.Item.OwnerTableView.IsItemInserted && e.Item isGridDataInsertItem)
Then for the second scenario, you have added the CheckBox inside ItemTemplate. So you cannot access it in insert mode. If you want the checkbox in insert/edit mode, add it in EditItemTemplate of GridTemplate column.
And in order to get the Item in insert mode(if EditMode is 'EditForms') , you need to use the following condition.
Thanks a lot for your feedback. It has been very useful. However I have an additional issue.
Let's suppose first I bind a grid and I click on Add New Record option, afterwards I click on the Edit button (without to click on the previous Add New Record's CancelOption ) when I click on Edit option throws the following exception: System.InvalidCastException: Specified cast is not valid. And I'm not casting anything.
it doesn't happen if I try the opposite. (if I click on the edit button and after I click on add new record option ).
You can find this issue in the attached documents.