<MasterTableView EnableHierarchyExpandAll="true"DataSourceID="sdsGruppi"DataKeyNames="IDGruppo"HierarchyLoadMode="Client"NoDetailRecordsText="Nessun dato di dettaglio trovato"NoMasterRecordsText="Nessun dato trovato">
SelectCommand="SELECT gr.IDGruppo, r.IDReport, r.Titolo, r.IDTipoReport, r.Pubblicato, r.NumeroVisite, gr.Ordine FROM Report AS r INNER JOIN GruppiReport AS gr ON gr.IDReport = r.IDReport WHERE gr.IDGruppo = @IDGruppo">
To use IScriptControl instances (such as our controls) you must definitely have a script manager - either <telerik:RadScriptManager> or <asp:ScriptManager> at the beginning of the <form>, before any other controls.
A RadAjaxManager is not necessary, it facilitates partial page rendering like <asp:UpdatePanel> the control does, so it is not essential.
I am attaching here another example that also works fine. Could you try comparing that against what you get and see if this helps? If not, I advise that you open a ticket and send us a runnable example that illustrates the problem you have so we can offer a more concrete answer.
now, instead of having empty results, I get the whole table without filters for each parent row
i see your code, but it's quite different in datasources:
in your case you have a big table and you give only a few records on the 1st level and on the 2nd level (detail) yoiu give all the records, is it right?
but I have 2 sets of different records linked by the IDgroup field
SqlDataAdapter daReports = new SqlDataAdapter(comando);
DataTable dtReports = new DataTable();
//gvProdotti.DataSource = dtElenco;
e.DetailTableView.DataSource = dtReports;
Now i've to set the other behaviors. I need to order rows, but only details rows are running, the master rows are fixed: i press the header and the arrow reverses direction, but rows don't change their order. Nothing occurs if i specify a SortExpression properties for a field/column.
Also, since you are using the NeedDataSource event, I advise that you pass the DataSource to the main table programmatically as well, setting the DataSource property to the ID of a declarative data source should not produce proper results.