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

Is it possible to move GridGroupPanel?

3 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Coola
Top achievements
Rank 1
Coola asked on 29 Oct 2012, 02:41 PM
Is it possible to move GridGroupPanel.
For example between Header and GridCommandItem.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Oct 2012, 06:29 AM
Hi,

Please try the following CSS to move the GridGroupPanel in between Header and GridCommandItem.

CSS:
<style type="text/css">
    .rgGroupPanel
    {
        position:absolute !important;
        margin-top:30px !important;
    }
 
    .RadGrid_Default .rgHeader
    {
        height:70px !important;
    }   
</style>

Thanks,
Shinu.
0
Coola
Top achievements
Rank 1
answered on 30 Oct 2012, 08:09 AM
Above CSS code doesn't work with my case because when I've applied your code my group panel went 30px .... below grid :)
0
Coola
Top achievements
Rank 1
answered on 30 Oct 2012, 08:49 AM
The answer is - yes it is possible with above JQuery code :

var colspanValue = $("#{1} > thead > tr.rgCommandRow > td.rgCommandCell").attr('colspan');
$("#{1} > thead > tr.rgCommandRow").after("<tr class='groupRow'><td class='groupCell' colspan='"+colspanValue+"'></td></tr>");
$("#{0}").appendTo( $("#{1} > thead > tr.groupRow > td.groupCell") );

where
{0} is Grid.GroupPanel.ClientID,
{1} is Grid.MasterTableView.ClientID
Tags
Grid
Asked by
Coola
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Coola
Top achievements
Rank 1
Share this question
or