HI There,
i am just curious to know
1. is telerik RadGrid supporting the single data source for hierarchical grid ? i mean to say my data or list is in hierarchical format and i just input the list as a data source to the grid and automatically it recognizes the list structure and paint the Hierarchical grid. hence in this way i dont need to mention two different data sources for the grid, one at materTable level and second at childTable level.
2. (In Context Of MVC) when providing the data source for the Hierarchical grid then it paints the grid in the collapsed mode. okay this is fine till here. now when i click on the expand button, again it paints the whole grid at parent level along with details at child level, which is again a server call. hence server (Controller class in MVC Context) returns the list at the MaterTable level and list at the ChildTable level, which is additional burden to the server.
why it is not possible to return only the contents at the child level without returing the parent level list ?
why is it not possible to return the set of child records related only to the master record selected (Not the full list of child records ) ?, is it possible to employ Ajax in this context ?
i want it goes to server or controller only for the required child control and does not return the full parent level list.
please give your input on this.
ex:
i am just curious to know
1. is telerik RadGrid supporting the single data source for hierarchical grid ? i mean to say my data or list is in hierarchical format and i just input the list as a data source to the grid and automatically it recognizes the list structure and paint the Hierarchical grid. hence in this way i dont need to mention two different data sources for the grid, one at materTable level and second at childTable level.
2. (In Context Of MVC) when providing the data source for the Hierarchical grid then it paints the grid in the collapsed mode. okay this is fine till here. now when i click on the expand button, again it paints the whole grid at parent level along with details at child level, which is again a server call. hence server (Controller class in MVC Context) returns the list at the MaterTable level and list at the ChildTable level, which is additional burden to the server.
why it is not possible to return only the contents at the child level without returing the parent level list ?
why is it not possible to return the set of child records related only to the master record selected (Not the full list of child records ) ?, is it possible to employ Ajax in this context ?
i want it goes to server or controller only for the required child control and does not return the full parent level list.
please give your input on this.
ex:
protected
void Page_Load(object sender, EventArgs e)
{
currentActivity = (CMSTracking.Data.
Activity)ViewData.Model;
RadGrid1.MasterTableView.DataSource = ViewData[
"Statuses"];
}
protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
{
GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
e.DetailTableView.DataSource = ViewData[
"Followups"];
}