I use version 17.2.
I have a misunderstanding about the use of the webhierarchicaldatasource of the webhierarchicaldatagrid.I use it with 2 SqlDataSource with parameters. (parent and child).
I have the property InitialDataBindDepth="-1", so i'm loading all data in one time.
I don't understand why i have N select on the detail select. I should have ONE select for the parent and ONE for the child, right ?
For example, if I have 5 affected rows after SDSFactureEnt_Selecting (parent), the SDSFactureDet_Selecting method(child) is repeating 5 times. Is that normal ?
it penalizes the performance of the web page.
I have upgraded to Version=19.1.20191.115 and I have the same issue.
Here is the test code used in the simplest way. There is no BoundCheckBoxField or UnboundCheckBoxField.
Here is the result with breakpoints when I load the page
Thanks for your help.
You can set the EnableDataViewState property to true, and it will decrease the database calls.
Here is more information about the property: https://www.infragistics.com/help/aspnet/webdatagrid-getting-started-with-webdatagrid-enabledataviewstate-property
Sorry, it doesn't fix the issue.
I have the same behavior like the gif animated above.
Another idea ?
Is this happens first time when you load the grid or when you do a post back (for example form button click).
Also you do not need to call DataBind of the grid, this will be done form the source and is not needed. When the grid is loaded it is dabound from the code and calls the select commands from the data sources when you call DataBind form your code it calls the select commands again.
This happens when the page is loaded.