This is a migrated thread and some comments may be shown as answers.

Showfooter of a DetailsTableView dynamically

2 Answers 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 03 Jun 2010, 06:27 PM
Hi,

I want to be able to show the footer of a RadGrid's detailstableview dynamically and populate a RadComboBox on a button click event.

protected void Button_Click(object sender, EventArgs e) 
    GridTableView tblView = (GridTableView)(sender as LinkButton).Parent.Parent.Parent.Parent.Parent; 
    tblView.ShowFooter = true;

    GridItem item = tblView.GetItems[GridItemType.Footer)[0];
    RadComboBox radCombo = (RadComboBox)item.FindControl("RadCombo1");
 
    DataTable dt = GetDataSource();
    radCombo.DataSource = dt;
    radCombo.DataBind();
  
     tblView.Rebind(); <-solution

 
So my problem is the footer of a RadGrid's detailstableview will not display until I collapse and then re expand the parent node. How can this all be done smoothly, to just show the footer on a button click event.

Thanks,
Bill

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 08 Jun 2010, 03:48 PM
Hi Bill,

Try rebinding the GridTableView after altering its ShowFooter property and see if it makes any difference.

Regards,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Bill
Top achievements
Rank 1
answered on 08 Jun 2010, 04:06 PM
Thanks for the reply, the solution that worked was to rebind the GridTableView.
Tags
Grid
Asked by
Bill
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Bill
Top achievements
Rank 1
Share this question
or