Categories | Question details Back To List | ||
TreeGrid - dynamic smartRendering and dynamic loading, smartXMLParsing We are attempting to implement a v.2.1 (build 90226) TreeGrid with the following options enabled: ... mygrid.setColTypes("ro,tree,ro"); // TreeGrid (with two other columns) mygrid.enableSmartRendering(true,50); // Smart rendering of rows. Dynamic loading when >50 rows exists at one depth mygrid.kidsXmlFile="grid_XML.jsp"; // Dynamic loading when tree node is expanded ... The grid handles everything except the dynamic aspect of the smart rendering (it simply renders the first 50 rows at each level and does not seem to expect nor request more, even when a total_count value >50 is provided.) If we set the "tree" column to be an "ro" column instead, the dynamic smart rendering works as expected, so the data being returned should be correct. I seem to recall from another support post that this was in the works and that a beta version might be available. Is that true? We would also like to add in the following, but have not yet set up a test for it: ... mygrid.enableSmartXMLParsing(true); ... We currently only send one "depth" of tree data at a time; the test will be to send 2+ depths at once with the majority of tree nodes closed - the goal being that the rows which are not to be displayed (under a closed node) should not be parsed until requested by the user. Are our expectations correct? Should we expect any issues with adding this option into the above mix? The tree structures we are attempting to display are both complex and large. They are also based on data beyond our control; so simplifying them is not an option. Any suggestions on quickly presenting complex and large tree structures using a TreeGrid would be appreciated. Thanks! - Dave Answer posted by Support on May 11, 2009 02:57 >>The grid handles everything except the dynamic aspect of the smart rendering Currently treegrid can work only with static smart-rendering ( when all data loaded at once ) >>this was in the works and that a beta version might be available. Is that true? Yes, we have experimental extension of mentioned functionality. ( it limits dynamic smart-rendering only for top level of treegrid ) Code and sample of usage sent by email. >>Are our expectations correct? It will work so, with enableSmartXMLParsing mode, only opened items will be parsed ( actually this mode enabled by default ) >>Should we expect any issues with adding this option into the above mix? It must not cause any side effects , this mode used by default and compatible with all other modes of treegrid ( the only exception - complex math calculations in treegrid, where smart-xml-parsing may need to be disabled ) >>Any suggestions on quickly presenting complex and large tree structures What is total count of rows on all levels and maximum count of items per branch ? If hierarchy contains few thousands of records - static smart-rendering will be enough |