Hi -
I often call functions to generate content in my grids and lists. When I do I always use the DataBinder.Eval() function to get specific fields from the data item and then I send those to my code behind function. Is there a way to just send the entire data item?
For example below is what I put in my HTML and then the signature of the function in my code behind that takes that data and then generates what I'd like. If possible I would like to just call CustomerListActions(DataItem As ObjectType). Thanks!
Ken
HTML CODE
Function Signature in Code Behind
I often call functions to generate content in my grids and lists. When I do I always use the DataBinder.Eval() function to get specific fields from the data item and then I send those to my code behind function. Is there a way to just send the entire data item?
For example below is what I put in my HTML and then the signature of the function in my code behind that takes that data and then generates what I'd like. If possible I would like to just call CustomerListActions(DataItem As ObjectType). Thanks!
Ken
HTML CODE
<telerik:GridTemplateColumn><br><%# CustomerListActions(DataBinder.Eval(Container.DataItem, "ID"), DataBinder.Eval(Container.DataItem, "IsDeleted"), DataBinder.Eval(Container.DataItem, "CompanyName"))%><br></telerik:GridTemplateColumn><br>Function Signature in Code Behind
Public Function CustomerListActions(lngID As Long, intIsDeleted As Integer, strCompanyName As String) As String<br>End Function