Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
760
Performance
posted

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

Parents
No Data
Reply
  • 760
    posted

    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.

    Regards,

    Tahir

Children
No Data