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

RadGrid and Footnote

3 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thaya
Top achievements
Rank 1
Thaya asked on 19 Jul 2010, 09:15 AM
Hi,

I have a RadGrid, and want to create a (dynamically) footnotes at the bottom of the radgrid based on data from database.
How can I do that?
Now It looks like below:


But, I want to look like see below:

Thanks,
Thaya

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Jul 2010, 11:48 AM
Hello Thaya,

You can access the GridFooterItem and set the Text property of the column to display information about the column from code.

C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridFooterItem)
    {
        GridFooterItem footerItem = (GridFooterItem)e.Item; 
        footerItem["Region"].Text = "My text"; // Where Region is ColumnUniqueName
    }
}


[I think you missed to attach the screen shot.]

Regards,
Shinu.
0
Thaya
Top achievements
Rank 1
answered on 19 Jul 2010, 01:57 PM
Hi,
Thanks for your answer.

Attach two files, one with out footnote ( which is looks like now) and another one is with footnote (what I want).

I have still problem to view multiple footnotes that picture, grid-with-footnotes.JPG is showing (these footnotes are dynamically retrieved from database).

Pls, anyone help me.

thanks,
Thaya
0
Maria Ilieva
Telerik team
answered on 22 Jul 2010, 10:02 AM
Hello Thaya,

 In order to achieve the required functionality you could implement template column and apply the footer template in it. Also you could add specific controls in the footer template in the RadGrid ItemCreated event.


Sincerely yours,
Maria Ilieva
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
Tags
Grid
Asked by
Thaya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Thaya
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or