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

Columns arrangement with child rows

3 Answers 184 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Silvio Silva Junior
Top achievements
Rank 2
Silvio Silva Junior asked on 06 May 2011, 01:45 PM
Hello guys.

I'm using this example with my grid:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx

but my columns are disrupted when you put a child row. I only wish to change the first column and nothing else, as the example.

How can I do this?

My problem today:
 with no child rows:
http://imageshack.us/f/39/griderro1.png/

with child rows:
http://imageshack.us/f/808/griderror.png/

Regards.

3 Answers, 1 is accepted

Sort by
0
Silvio Silva Junior
Top achievements
Rank 2
answered on 10 May 2011, 06:45 PM
anybody?
0
Silvio Silva Junior
Top achievements
Rank 2
answered on 11 May 2011, 01:55 PM
Hey guys, somebody can help me?

Look my grid:

No child rows:
http://imageshack.us/photo/my-images/4/griderror1.png/

With child rows:
http://imageshack.us/photo/my-images/546/griderror2.png/

What can be wrong with my grid?

Regards.
0
Daniel
Telerik team
answered on 12 May 2011, 11:22 AM
Hello Silvio,

Please check whether you have the following code:
protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
    if (e.Column is GridExpandColumn)
    {
        e.Column.Visible = false;
    }
    ....
}

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    ...
    if (e.Item is GridNestedViewItem)
    {
        e.Item.Cells[0].Visible = false;
    }
}

Post your code in this thread if the problem still exists.

Regards,
Daniel
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.

Tags
Grid
Asked by
Silvio Silva Junior
Top achievements
Rank 2
Answers by
Silvio Silva Junior
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or