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

[Solved] Set right allignment to export to excelbutton in radgrid

5 Answers 245 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jignesh
Top achievements
Rank 1
Jignesh asked on 10 Feb 2010, 06:08 AM
Hello Friends


 I used functionality of export to excel in my radgrid.

Right now it is display in header center, i want to display it in header right allignment.

How i will do?

Please help me.

Thanks & Reagards
Jigensh Patel

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Feb 2010, 10:41 AM
Hello Jigenesh Patel,

You can set the position of ExportToExcel button by applying margin value from CSS as shown below.

CSS:
 
    <style type="text/css"
        .rgExpXLS 
        { 
            margin-left300px !important; 
            positionabsolute !important; 
        } 
    </style> 
[Set the margin-left value according to your need to reposition the button]

-Shinu.
0
Jignesh
Top achievements
Rank 1
answered on 10 Feb 2010, 12:37 PM
Hello Shinu


Thanks for reply.

But its not working.


Thanks & Regards
Jigensh Patel

0
Daniel
Telerik team
answered on 10 Feb 2010, 04:07 PM
Hello Jigensh,

You could try another approach:
.rgExpXLS
{
    float: right;
}

Regards,
Daniel
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Jignesh
Top achievements
Rank 1
answered on 11 Feb 2010, 05:02 AM
Hello

Thanks for reply.

I had applied it in my grid like below.
.rgExpXLS
{
    float: right;
}

<CommandItemStyle CssClass="rgExpXLS"  />


but it display exporttoexcel icon multiple time in whole header.

What i can do?

Please help me.
Thanks & Regards
Jignesh Patel





0
Daniel
Telerik team
answered on 17 Feb 2010, 12:02 PM
Hello Pintu,

You just need to add the aforementioned snippet to the page header. Please remove this line:
<CommandItemStyle CssClass="rgExpXLS"  />

and make sure you page header looks like this:
...
<head runat="server">
    <title>My header</title>
    <style type="text/css">
        .rgExpXLS
        {
            float: right;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    ...

Regards,
Daniel
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
Jignesh
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jignesh
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or