Extra (unwanted) first column

5 posts, 0 answers
  1. PAULO SERGIO CARNEIRO
    PAULO SERGIO CARNEIRO avatar
    4 posts
    Member since:
    Sep 2009

    Posted 27 Oct 2009 Link to this post

    Hi everybody!

    I have one RadGrid using a DataTable as DataSource.
    Everything works fine, except by the fact there is as extra empty column right in the first place in the grid.

    Can someone tell me how could I remove this "ghost" column?

    Thanks...
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Oct 2009 Link to this post

    Hello Paulo,

    The extra empty column that appears before the set columns is the RowIndicatorColumn which will appear if resizing of rows is enabled in the grid. You can hide it as shown below:
    c#:
     protected void RadGrid1_PreRender(object sender, EventArgs e) 
        { 
            RadGrid1.MasterTableView.GetColumn("RowIndicator").HeaderStyle.Width = Unit.Pixel(1); 
            RadGrid1.MasterTableView.GetColumn("RowIndicator").ItemStyle.Font.Size = FontUnit.Point(1);  
        } 

    Hope this helps..
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. PAULO SERGIO CARNEIRO
    PAULO SERGIO CARNEIRO avatar
    4 posts
    Member since:
    Sep 2009

    Posted 27 Oct 2009 Link to this post

    Thanks a lot!

    It did help !!

    Actually I didn't need the Row Resizing, so I removed it and the grid looks fine now!

    Be well !!
  5. Kamal
    Kamal avatar
    34 posts
    Member since:
    Jan 2013

    Posted 14 May 2015 Link to this post

    Hello Princy
    Your solution works but when I save the grid settings by GridSettingsPersister, that hidden column appears again. However revisiting the page hides that column because of the statements in pre-render.

    I'm facing one more issue Princy. In one of my page I have a TemplateColumn (first column) with a hyperlink that opens a custom edit form. It actually hides when I revisit the page after saving the grid settings by GridSettingsPersister. It does not happen with other pages which use the built in GridEditCommandColumn...

    Please help.

  6. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 19 May 2015 Link to this post

    Hello Kamal,

    I already answered your other forum thread so I would suggest you to continue our conversation there and close this one.

    Regards,
    Kostadin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017