Hi,
I am using a web datagrid for the aspx page. I have a update panel in the page. The web data grid is inside the content template of the update panel. There is a link button in a item tempate of the grid. The item command event of the link button is not firing. If I remove the update panel the event is firing.
I have used the ayschronous trigger but that is not working. Also I tried adding the item command event on the pre_int and page load event of the page but to no use.
The strange part here is that in the header templateof the grid there is a imagebutton for sorting. And when i click the image button of the grid the event is fired.
I am missing something basic? Do i have to set any properties for this to work.
Any help will be greatly appreciated.
Hi ssheri,
As far as I understood, the function "lnkAddtoFavorites_Command" specified in "OnCommand" event handler of the linkbutton does not fire, correct?
This might be a problem of event bubbling in the webdatagrid. I am not sure of the exact reason, but you can try adding a small piece of code to manually enable bubbling for the OnCommand event. I don't see the event handler in what you supplied, but basically you have to add in the end of it the following code:
RaiseBubbleEvent(this, e);
Also remove the event from page_load or init.
This was a helpful article: http://msdn.microsoft.com/en-us/library/aa719644%28VS.71%29.aspx
Let me know if it helped.
Deni
Hi ,
I have attached the aspx for the update panel . I added the event handler for the itemcommand event in the pre_int and load events as the event was not firing . I have removed the same as they made no difference. Below is the statement which I wrote :
WebDataGridNursingHomeResults.ItemCommand +=new Infragistics.Web.UI.GridControls.ItemCommandEventHandler(this.WebDataGridNursingHomeResults_OnItemCommand).
Please have a look at the aspx and let me know if i am missing something.
Thanks
Hello ssheri,
Can you provide the aspx for the UpdatePanel with the WebDataGrid inside? I am also not clear what you have included in the page's pre_int or load events.
Thank you