I would like to retrieve the Text property of the textbox on postback but I am unable to find a way to do so.
I created a template column with a textbox in the FooterTemplate. Let's say it has an id of "txtInputInFooter".
I have tried to handle the ItemCommand event and using the following code:
Dim text As String = DirectCast(e.Item.FindControl("txtInputInFooter"), TextBox).Text
--OR--
Dim text As String = DirectCast(Me.radGrid.MasterTableView.GetItems(GridItemType.Footer)(0), GridFooterItem)("InputInFooter").Text
I get a blank value every time.
This seems like it should be a no brainer, is there something I am doing wrong?
Thanks in advance.
I created a template column with a textbox in the FooterTemplate. Let's say it has an id of "txtInputInFooter".
I have tried to handle the ItemCommand event and using the following code:
Dim text As String = DirectCast(e.Item.FindControl("txtInputInFooter"), TextBox).Text
--OR--
Dim text As String = DirectCast(Me.radGrid.MasterTableView.GetItems(GridItemType.Footer)(0), GridFooterItem)("InputInFooter").Text
I get a blank value every time.
This seems like it should be a no brainer, is there something I am doing wrong?
Thanks in advance.