How do I load Grid only when needed?

  1. #1

    How do I load Grid only when needed?

    I'm using the ObjectDataSource to load a grid. But, I only want to load the grid when explicitly called, like through an AjaxMethod. But if I omit the SelectMethod, it complains that a SelectMethod is needed. How do I display a GridPanel without any data initially, but still show the columns and only call the SelectMethod when needed?
  2. #2

    RE: How do I load Grid only when needed?

     Hi,

    Please set AutoLoad="false" for Store and call on client side "store.reload();" when data is required
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    RE: How do I load Grid only when needed?

    This works, but seems to be incomplete solution, as the ObjectDataSource still appears to execute the method identified in SelectMethod. How do I also prevent the ObjectDataSource from running initially?

Similar Threads

  1. Replies: 2
    Last Post: Jun 23, 2011, 12:41 PM
  2. Help Needed
    By pooja in forum 1.x Help
    Replies: 0
    Last Post: Jan 07, 2011, 6:07 AM
  3. how to load data to grid panel in page load
    By andylaiyongsing in forum 1.x Help
    Replies: 1
    Last Post: Apr 16, 2010, 10:27 AM
  4. Load Coolite JS only when needed
    By mj.daly in forum 1.x Help
    Replies: 6
    Last Post: Feb 11, 2010, 1:44 PM
  5. Load Msg Align to Grid?
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Feb 17, 2009, 1:02 PM

Posting Permissions