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
945
Update Panel vs Infragistics Ajax. When do i use which?
posted

Hello,

I'm not looking for an explaination on what AJAX is. I'd like to know under what conditions would I use an Update Panel around Infragistics controls with the infragistics ajax turned off versus not using a update palen and using the Ajax embedded into the Infragistics controls? I appear to be having a disconnect on using the webhierarchicaldatagrid when getting search criteria from other controls on the page.

Thank you...

Parents
  • 29417
    Suggested Answer
    Offline posted

    Hello Shane,

     

    Thank you for posting in our forum.

     

    Generally you should use an IG control’s ajax when you need to update just that particular control due to some operation made on it . For example the WebDataGrid uses the ajax for all CRUD operations, sorting, filtering and other behaviors. The WebDropDown would also use ajax call to the server for example if you have auto filtering on the server.

    The upside to using the ajax is that only information relevant to that operation in that control would be send to the server. This would significantly improve performance if for example you have a big amount of data on the page.

     

    You should use an update panel if you need to update an IG control based on changes made to other controls.

     Like in the scenario you described it would be best to use an update panel and manually trigger its update through a button.

     

    Another possible solution would be to use the filtering behavior of the grid. You could set a filter rule and apply it. This would cause an ajax request to the server to filter your data based on that filter.  Here’s an example from our documentation on how to set the filter on the client side:

    http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebDataGrid_Filtering.html

     

     

    Let me know if you have any further questions.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

Reply Children