Hi
I am using Infragistics 8.2, I am unable to execute serside click event of linkbutton which is a template column at 2 nd band is there event to call from child bands like OnItemcommand(this event is calling when i put the button at 1st band) but according to my requirement i have to add linkbutton at second band level so how to execute click of this linkbutton which is at child band level?
Please Help.....
Thanks, regards
Sivaprasad
I think what Darryl suggested is a good approach - asp:LinkButton has CommandName and CommandArgument properties (string) and you can use those to make sure you get the event correctly in the ItemCommand event of the grid (check if CommandName equals the CommandName property of the LinkButton). This is called event bubbling - all events from all controls inside the template bubble up to the ItemCommand event handler and you can use CommandName/Argument to differentiate from those. This makes programming a little bit easier (common path for all events).
You can also directly subscribe to the Click event of the asp:LinkButton code. If you are using code, this can be done with something similar to:
protected void Page_Load(object sender, EventArgs e) { LinkButton linkButton = new LinkButton(); linkButton.Click += new EventHandler(linkButton_Click); } void linkButton_Click(object sender, EventArgs e) { // click event handler here }
Hi,
I can't think of the name at the moment but there is an event that is returned whenever a template column is clicked.
I think it is itemcommand from the grid. This intercepts all the click events.
From inside that event you can determine which control was pressed and evaluate it from there.