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
145
LoadOnDemand Hierarchical Grid
posted

Hello all, I have a hierarchical grid that I have just rewritten to use the infragistics loadondemand technology. Its loads the first level rows fine but the second level is not loaded. During the initialize datasource event on the server I build a relational dataset and set the grids datasource to the dataset. Is this method incorrect? Should I actually be loading the grid one level at a time or can I load all the levels at one time? Any help would be appreciated.

Parents
No Data
Reply
  • 145
    posted

    Ok after looking around a little bit through some of the samples I found the Scroll-On-Demand example that builds the dataset the same way I build by dataset. I am doing a couple of things a little bit differently from that example however and I wanted to ask if there is any way I can get this all to work with my method. Please understand I am not trying to accomplish the scroll on demand behavior. I am merely referencing that example due to the fact that it uses the initialize data source event on the server to build out the entire relational dataset. The differences; however, are as follow:

    1. I load the grid by using the invokeXmlHttpRequest method of the grid object on the client. This is accomplished by adding a parameter to the query string of the request that I can then parse during the callback on the server. This querystring parameter's value is a concatinated string of values that I use during the callback to make data calls to refresh the grid. This bahavior can be seen in your AJAX example named "Explorer" listed under that webtree samples in case you need a reference. The request type I use is the eReqType.Page request.

    2. Using html, I map the columns of the grid with the "BaseColumnName" attribute so the grid knows where to display the data after the request has been completed.

    I have used this method on serveral other controls in my application but have never attempted to do this with multiple bands. In my current control I have defined both bands and the columns and have mapped the grid columns to the source datasets columns using the BaseCoumnName attribute. But once the grid has rendered, I do not get the +/- images to expand or collapse the rows in the grid. I fear that my method only works for flat grids and is not workable for this situation. but to me that answer would symbolize an oversight in the ultrawebgrid control. I would like to refrain from the WARP panels if at all possible as the performance difference is definatly noticeable to the end user compared to the method I have been using.

    I am wondering if maybe the bands are not being linked together properly in the html where I define the columns for each band. Is there any way to link these two bands together as parent/child? Again, any help in this matter is greatly appreciated.

     

Children