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

Is this possible in changing column of showing detail view ?

7 Answers 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phuc
Top achievements
Rank 1
Phuc asked on 03 Aug 2011, 10:44 AM
Hi all,

I am using RadGrid with NestedViewTemplate is another RadGrid for showing Master - Detail data. As the default, when you click on the icon in the first column to show the detail view.

Could I change this by clicking on another column (I don't want to use the first column and of course its icon).
Thank you,
Phuc PHAM

7 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 08 Aug 2011, 01:16 PM
Hello Phuc,

You can find a sample project attached to this post which shows how to setup a GridTemplateColumn in such a way that it acts as an expand/collapse column. It also shows how to hide the default expand/collapse images. It should help you customize your grid control in the desired way.

Best wishes,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Phuc
Top achievements
Rank 1
answered on 09 Aug 2011, 09:50 AM
Thank you,
I'll try it.

Have a nice day,
Phuc PHAM
0
Phuc
Top achievements
Rank 1
answered on 15 Aug 2011, 10:16 AM
I have tried but it's not like your sample project.
In my Grid, the first column still appears which contains an image for expand/collapse. How can I hide this column as your sample?
I am using VS 2010 with "Version Q2 2011".

Thank for your support.
Phuc PHAM
0
Tsvetina
Telerik team
answered on 15 Aug 2011, 12:04 PM
Hello Phuc,

I have hidden the icons using the following CSS, which you can find in the <head> tag of the page:
input.rgExpand
{
    display: none;
}
input.rgCollapse
{
    display: none;
}


Greetings,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Phuc
Top achievements
Rank 1
answered on 17 Aug 2011, 04:26 AM
Hello Tsvetina,

It's right.
But how can we hide the first column as the attached file ?

Regards,
Phuc PHAM
0
Princy
Top achievements
Rank 2
answered on 17 Aug 2011, 05:14 AM
Hello Phuc,

Try the following CSS to achieve your scenario.
CSS:
<style type="text/css">
 td.rgExpandCol
{
  background:transparent !important;
}
 
</style>

Thanks,
Princy.
0
Phuc
Top achievements
Rank 1
answered on 18 Aug 2011, 11:35 AM
Hi Princy,

I use the following  CSS and it's OK:

th.rgExpandCol
        {
            display:none;
        }
        td.rgExpandCol
        {
            display: none;
        }
Tags
Grid
Asked by
Phuc
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Phuc
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or