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

Grid Title

6 Answers 560 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Orlando
Top achievements
Rank 1
Orlando asked on 08 Sep 2010, 04:50 PM
I noticed that there is a white bar on top of 'Add new record' and 'Refresh', can I put a title of the Grid there? if yes, which property shall I use? I didn't find either 'Caption' or 'Title' in RadGrid.

Thanks!

6 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Sep 2010, 05:19 AM
Hello,


GridTableViw has the Caption property that represents the text to render in an HTML caption element in a GridTableView control.

aspx:
   <MasterTableView Caption="heading" CommandItemDisplay="Top"

-Shinu.
0
Shafees
Top achievements
Rank 2
answered on 09 Nov 2010, 02:23 PM
Is i can add style to this caption? is grid skin style can added to it (some thing like change font color back color etc...)
0
Iana Tsolova
Telerik team
answered on 09 Nov 2010, 02:52 PM
Hi Shafees,

You can add a span to the Caption property and set it inline styles:

Caption="<span style='color:yellow'>heading</span>"

Best wishes,
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
Shafees
Top achievements
Rank 2
answered on 09 Nov 2010, 03:24 PM
I tried that a its working. But width: 100% is not working.
0
Iana Tsolova
Telerik team
answered on 09 Nov 2010, 04:44 PM
Hello Shafees,

To which element are you setting this width?

All the best,
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
Shafees
Top achievements
Rank 2
answered on 10 Nov 2010, 06:04 AM
I have some mistakes........ The abow method working fine.
Thank You.

------------------------------------------------------------------------------------------------------------------------
............. OnItemDataBound="radGridCostCode_ItemDataBound">
    <MasterTableView 
        Caption="<div style='width: 100%; background-color: Black;'><font style='color: White'>Cost Code</font></font></div>">
            <Columns>
                <telerik:Grid
Tags
Grid
Asked by
Orlando
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Shafees
Top achievements
Rank 2
Iana Tsolova
Telerik team
Share this question
or