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

access footer in telerik

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kshitiz
Top achievements
Rank 1
Kshitiz asked on 12 May 2012, 01:45 PM
I want to use footer but i dont want to any  grid events .. How can i access that 


function (){

sum += double.Parse((dataItem[templateColumnName].FindControl("ctl00") as RadNumericTextBox).Value.ToString()); 
this work perfect for dataitem 

 (footer[templateColumnName].FindControl("ctl00") as RadNumericTextBox).Value = Double.Parse(sum.ToString());
}
it does not recongnize footer in current context :(



1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 13 May 2012, 06:22 AM
Hello,

foreach (GridFooterItem footeritem in RadGrid1.MasterTableView.GetItems(GridItemType.Footer))
{
    RadNumericTextBox  RadNumericTextBox1= (RadNumericTextBox)footeritem["Template1"].FindControl("RadNumericTextBox1");
  
// OR
 
    RadNumericTextBox  RadNumericTextBox1= (RadNumericTextBox)footeritem.FindControl("RadNumericTextBox1");
  
 
 
}


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Kshitiz
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or