Rad grid Static headers

11 posts, 0 answers
  1. Preethy
    Preethy avatar
    2 posts
    Member since:
    May 2011

    Posted 04 May 2011 Link to this post

    Hi,
     I am using Rad grid control for displaying some data and also using command Iterm display property on rad grid.
    There is problem for showing static  headers.Multiple headers and Command Items  are displaying when i set static headers property true .Hoping a favourable solutions for my problem.

    Thanks in advance,
    Preethy
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 04 May 2011 Link to this post

    Hello Preethy,

    Can you please examine the attached project and let me know what is the difference in your case.

    Best wishes,
    Pavlina
    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Preethy
    Preethy avatar
    2 posts
    Member since:
    May 2011

    Posted 04 May 2011 Link to this post

    Hi Pavlina,
                   I need to set dynamic height and scrolling for grid.so i use the following code.


     int gridItems = myTable.Rows.Count;
                if (gridItems > 5)
                {
                    rgList.ClientSettings.Scrolling.AllowScroll = true;
                    rgList.ClientSettings.Scrolling.UseStaticHeaders = true;
                    rgList.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel(155);
                    rgList.Height = Unit.Pixel(155);
                  
                }

    here 'myTable'  is my data table name.This datatable used as datasource of Ragrid.rgList is RadGrid ID.
    Thanks,
    Preethy Kamath
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 06 May 2011 Link to this post

    Hello Preethy,

    Try using only RadGrid.ClientSettings.Scrolling.ScrollHeight to set height of the control's scrollable area. Note that Height and ScrollHeight should not be used at the same time. In this case ScrollHeight will be ignored. 
    http://www.telerik.com/help/aspnet-ajax/height-vs-scrollheight.html

    Greetings,
    Pavlina
    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.

  6. Sivan
    Sivan avatar
    2 posts
    Member since:
    Jan 2016

    Posted 25 Jan Link to this post

    Hello

    I have a problem : the rad grid duplicates my header

    Do you have a solution?

    I am using:

    radDocs.ClientSettings.Scrolling.AllowScroll = true;
    radDocs.ClientSettings.Scrolling.ScrollHeight = 500;
    radDocs.ClientSettings.Scrolling.UseStaticHeaders = true;
    radDocs.ClientSettings.Scrolling.SaveScrollPosition = true;

  7. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 25 Jan Link to this post

    Hello,

    Do you have a live Url which we can use to see the issue with duplicate header? The other way to help you troubleshoot the issue, is to send us a sample showing it in a Support ticket.

    Regards,
    Pavlina
    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
  8. Sivan
    Sivan avatar
    2 posts
    Member since:
    Jan 2016

    Posted 26 Jan Link to this post

    try the code please. I cant attach a url.
  9. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 26 Jan Link to this post

    Hi,

    I have tried the code locally, but the problem with duplicate headers does not exist as you can see from the attached page.

    Regards,
    Pavlina
    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
  10. Yaniv
    Yaniv avatar
    2 posts
    Member since:
    Aug 2016

    Posted 29 Aug in reply to Pavlina Link to this post

    Hi,

    i'm facing the same issue duplicated header

    Regards,

    Yaniv

  11. Yaniv
    Yaniv avatar
    2 posts
    Member since:
    Aug 2016

    Posted 29 Aug in reply to Yaniv Link to this post

    Hi,

    the duplicated headers appearing when exporting to excel

    Yaniv

  12. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 30 Aug Link to this post

    Hi Yaniv,

    Did you compare your project with the one I have attached in the previous post? What is the difference in your case? In order to help you resolve the problem with duplicated headers we need to replicate it locally, otherwise it would be difficult to assists you further. 

    Regards,
    Pavlina
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017