I am working with a grid that I am using an ItemTemplate for the MasterTableView. In addition to the ItemTemplate I have three GridButtonColumns. When the user clicks one of these buttons, I want to get the Index of the record for that row (In my case the Unique Name is: AssetIdx).
Without the ItemTemplate the following code works fine:
With the ItemTemplate the code does not work.
I saw the following note in the demos (http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/cardview/defaultcs.aspx) :
"When you set item template all GridDataItems/GridEditableColumns (auto-generated or declarative) will be replaced with a single cell which will be used as a container for the templated content."
I have looked everywhere, and I can't find an example to get the value when the grid is treated as a single cell.
Can someone point me in the correct direction. Thanks!
Without the ItemTemplate the following code works fine:
GridDataItem item;
String ArticleID;
item = e.Item as GridDataItem;
ArticleID = item["AssetIdx"].Text;
With the ItemTemplate the code does not work.
I saw the following note in the demos (http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/cardview/defaultcs.aspx) :
"When you set item template all GridDataItems/GridEditableColumns (auto-generated or declarative) will be replaced with a single cell which will be used as a container for the templated content."
I have looked everywhere, and I can't find an example to get the value when the grid is treated as a single cell.
Can someone point me in the correct direction. Thanks!