I am having performance related problems with the WebDataGrid v9.2. I have about 1000 records on a page and they load fine but if I have TemplateDataFields then it just takes ages to load.
The TemplateDataField I have contain ImageButton for things like View, Edit, Delete etc. The CommandArgument of these have this statement:
DataBinder.Eval(CType(Container,Infragistics.Web.UI.TemplateContainer).DataItem, "Id")
Can it be that this is causing the performance problems? How else can I set the CommandArgument so that I can pass it to ItemCommand event?
Regards,
Tahir
I have further investigated this and it comes down to OnClientClick event handlers I am attaching to the ImageButton controls. If I remove them then the grid is fine (although it is even faster without TemplateDataFields).
I need the OnClientClick events in order to ask user a question before they do this operation.
Any suggestion would be helpful.