Hi-
I have a radgrid which is supposed to always have a new item in edit mode at the bottom of the list. The radgrid uses NeedsDataSource to do databinding, and I'm calling IsItemInserted = true during the OnNeedsDataSource callback. This worked fine until I added a dynamically created Control in my OnItemDataBound call. This inserts a control of some kind into the RadGrid, but it disappears on postback. I figure I have to call Rebind somewhere so I can recreate this control. buy when I call Rebind from PageLoad or my OnInsertCommand, I can't seem to keep IsItemInserted=true---my editable row disappears. My question is, where should I put Rebind() and IsItemInserted=true so that I can keep an Insertable row visible at the bottom of the grid at all times, while still being able to keep my dynamic control around?
Thanks!
-Mike
I have a radgrid which is supposed to always have a new item in edit mode at the bottom of the list. The radgrid uses NeedsDataSource to do databinding, and I'm calling IsItemInserted = true during the OnNeedsDataSource callback. This worked fine until I added a dynamically created Control in my OnItemDataBound call. This inserts a control of some kind into the RadGrid, but it disappears on postback. I figure I have to call Rebind somewhere so I can recreate this control. buy when I call Rebind from PageLoad or my OnInsertCommand, I can't seem to keep IsItemInserted=true---my editable row disappears. My question is, where should I put Rebind() and IsItemInserted=true so that I can keep an Insertable row visible at the bottom of the grid at all times, while still being able to keep my dynamic control around?
Thanks!
-Mike
<telerik:RadGrid AutoGenerateColumns="False" ID="radGrid" runat="server"
Skin="" ...
OnNeedDataSource="radGrid_NeedDataSource" OnItemDataBound="radGrid_ItemDataBound"