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

Title for Radgrid

2 Answers 220 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 29 Oct 2010, 07:36 AM
Hi,

I need Title between Add new record and refresh button. i attached image for identify. please give me a tips for how to add title in this point.


Thanks,
Dhamu.

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 29 Oct 2010, 09:06 AM
Hello Dhamu,

One suggestion is you can use CommandItemTemplate to customize the CommandItem area. Following is the sample code that I have tried in my application to achieve the same requirement.

ASPX:
<CommandItemTemplate>
    <div>
        <div style="float: left">
            <asp:Button runat="server" ID="buttonAddNewRecord" CommandName="InitInsert" CssClass="rgAdd" Text=" " />
            <asp:LinkButton runat="server" ID="linkbuttionInitInsert" CommandName="InitInsert"
                Text="Add New User"></asp:LinkButton></div>
        <div style="float: left; width: 900px; text-align: center">
            <asp:Label ID="Label2" runat="server" Text="TITLE"></asp:Label></div>
        <div style="float: left">
            <asp:Button runat="server" ID="buttonRefresh" CommandName="Rebind" CssClass="rgRefresh"
                Text=" " />
            <asp:LinkButton runat="server" ID="linkbuttionRefresh" CommandName="Rebind" Text="Refresh"></asp:LinkButton></div>
    </div>
</CommandItemTemplate>

Please refer the following documentation for more details on CommandItemTemplate.
Command item template

Thanks,
Princy.
0
Dhamodharan
Top achievements
Rank 1
answered on 29 Oct 2010, 09:54 AM
Hi Princy,

Great. Wonderful help for me. It is working fine. This code what i needed.


Thanks,
Dhamu.
Tags
Grid
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dhamodharan
Top achievements
Rank 1
Share this question
or