Afternoon,
The problem I am having is that I have a hierarchical radgrid inside of an updatepanel, with the grid set to HierarchyLoadMode="ServerBind". When I have the grid start out with expanded rows, images that are loaded into the grid are inserted properly as follows:
The grid puts "true" or "false" into the cells, and then in ItemDataBound those values are removed for a checkmark or an x (for true or false, respectively). When the page posts back, some of the grids update to show images, other do not.
The reason that I am doing HierarchyLoadMode=ServerBind is because I need to get a total count of the items that will be in the grid, and I get that count by going across the items in the grid and for each that is a chlid item I increment a count. If there is a handier way to do that, I would also be amenable to switching HierarchyLoadMode to ServerOnDemand or something. I need a count of the items in the grid and it has to be correct regardless of the expand/collapsed state of the items. When I had ServerOnDemand and the rows started collapsed (a requirement), the count of the child items came to 0 each time, even if there were items in the grid. I currently get the count of the items in the Page_PreRender event, when all the grid bindings have been completed.
Any ideas? Can I count the items in the grid in some other way than going across rows in Page_PreRender? If not, is there a way I can set the AJAX to load images in upon expansion of the rows, as is currently not happening?
Thanks very much,
Kaleb
EDIT: The update panel has UseChildrenAsTriggers="true" and UpdateMode="always"
The problem I am having is that I have a hierarchical radgrid inside of an updatepanel, with the grid set to HierarchyLoadMode="ServerBind". When I have the grid start out with expanded rows, images that are loaded into the grid are inserted properly as follows:
The grid puts "true" or "false" into the cells, and then in ItemDataBound those values are removed for a checkmark or an x (for true or false, respectively). When the page posts back, some of the grids update to show images, other do not.
The reason that I am doing HierarchyLoadMode=ServerBind is because I need to get a total count of the items that will be in the grid, and I get that count by going across the items in the grid and for each that is a chlid item I increment a count. If there is a handier way to do that, I would also be amenable to switching HierarchyLoadMode to ServerOnDemand or something. I need a count of the items in the grid and it has to be correct regardless of the expand/collapsed state of the items. When I had ServerOnDemand and the rows started collapsed (a requirement), the count of the child items came to 0 each time, even if there were items in the grid. I currently get the count of the items in the Page_PreRender event, when all the grid bindings have been completed.
Any ideas? Can I count the items in the grid in some other way than going across rows in Page_PreRender? If not, is there a way I can set the AJAX to load images in upon expansion of the rows, as is currently not happening?
Thanks very much,
Kaleb
EDIT: The update panel has UseChildrenAsTriggers="true" and UpdateMode="always"
