Can I use command buttons on WHDG rows? I don't see any support for that in the tags or docs.
Hi again,
I decided to try it out again with a new WHDG and the link button does seem to work in the parent band too. I'm going to look into the difference between my original sample which didn't work. That sample is my real data. If it is working, things are pretty much worked out here since the handler above seems to work.
That was close...
Ed
Hi,
This is some cool stuff from Aaron at dev support. Here is how to add the handler in VB (that's what I use):
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init AddHandler WebHierarchicalDataGrid1.GridView.ItemCommand, AddressOf WebHierarchicalDataGrid1_ItemCommandEnd Sub
Then your hanlder is simply:
Protected Sub WebHierarchicalDataGrid1_ItemCommand(ByVal sender As Object, ByVal e As Infragistics.Web.UI.GridControls.HandleCommandEventArgs)
End Sub
He is looking into the issue of the parent band not showing the linkbutton. That's a big part of the picture here.
Thanks, at least now I know it's not just me, missing it somehow.
Is the WHDG useful at all without an item command event? not to me
What a mess. Even the template column that I inserted in the parent band was only visible in the designer but not at runtime. In the child band it was visible even at runtime.
Uggh. I just went to test it and saw that you're right that although the buttons may be placed, there doesn't seem to be an itemcommand event. I have been using it in the webdatagrid but not in the WHDG yet and I need it pretty soon. I assumed it had to work there. I hope there's a workaround for this.