Hi all,
Getting the grid dataitem from RadGrid.UpdateCommandName is simple enough
(e.CommandName = Telerik.Web.UI.RadGrid.UpdateCommandName) but
As the Grid goes into Edit Mode, (not update mode) I need to retrieve the GridDataItem ( so I can set my Concurrency cache, and "Lock" the record from editing by other users). BUT this is null at Edit entry point (fine at update)
Docs/Help leads me to believe I must use .EditIndexes[0] as opposed to ).EditItems[0]
IS this correct? if so How please.
i.e.
I then use a HT to retrieve the other Values I require.
1) How do I retrieve the dataitem as it enters Edit Mode?
and on Cancel, or& Post Update I then release the Edited Item from the cache, is this (CancelCommand the same, or do I use some other mechanism to determine which DataItem/Recid to release from my Concurrency Cache.
TIA
Neal
I do this from an inherited overridden System.Web.UI.Page, so i only need to do it once.
Getting the grid dataitem from RadGrid.UpdateCommandName is simple enough
(e.CommandName = Telerik.Web.UI.RadGrid.UpdateCommandName) but
As the Grid goes into Edit Mode, (not update mode) I need to retrieve the GridDataItem ( so I can set my Concurrency cache, and "Lock" the record from editing by other users). BUT this is null at Edit entry point (fine at update)
Docs/Help leads me to believe I must use .EditIndexes[0] as opposed to ).EditItems[0]
IS this correct? if so How please.
i.e.
if (e.CommandName == Telerik.Web.UI.
RadGrid.EditCommandName)
{
dataItem = ((Telerik.Web.UI.
GridDataItem)((Telerik.Web.UI.RadGrid)source).EditItems[0];
//Code to retrieve the name of the DatKeys..
//Code to Retrieve their Values
}
I then use a HT to retrieve the other Values I require.
1) How do I retrieve the dataitem as it enters Edit Mode?
and on Cancel, or& Post Update I then release the Edited Item from the cache, is this (CancelCommand the same, or do I use some other mechanism to determine which DataItem/Recid to release from my Concurrency Cache.
TIA
Neal
I do this from an inherited overridden System.Web.UI.Page, so i only need to do it once.