I am vey new to this WARP feature..
I have a button1 - calls funcA
I have a button2 - calls funcB
But both of them refresh the same grid
I put the grid within the WARP...
{
//Want to call funcA if the button1 is triggered
//Want to call funcB is button2 is triggered
How can i tell which button has been triggered in this function?
//sender is a WARP..it does not tell us anything
}
any help would greatly be appreciated!
HI
If your buttons are ouside of the warp, then you must add them to the Warp's TriggerControlIDS.
The ContentRefresh event will always fire during asynchronous postback of the warp. However you dont have to put you grid update logic in that event. You can simply put the grid update logic inside the button_click event.
Now if you want to do your upgrade logic in the ContentRefresh event - you could have a global string variable that you update with the button_id during the button click event. Then query this string value in your ContentRefresh event.
Here is a help article for ContentRefresh Event
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Infragistics2.WebUI.Misc.v8.1~Infragistics.WebUI.Misc.WebAsyncRefreshPanel~ContentRefresh_EV.html
Here is a help link to the Warp:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/WebAsyncRefreshPanel.html