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

Rad grid Static headers

12 Answers 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Preethy
Top achievements
Rank 1
Preethy asked on 04 May 2011, 01:26 PM
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

12 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 May 2011, 02:10 PM
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.

0
Preethy
Top achievements
Rank 1
answered on 05 May 2011, 04:49 AM
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
0
Pavlina
Telerik team
answered on 06 May 2011, 03:11 PM
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.

0
Sivan
Top achievements
Rank 1
answered on 25 Jan 2016, 08:20 AM

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;

0
Pavlina
Telerik team
answered on 25 Jan 2016, 09:50 AM
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
0
Sivan
Top achievements
Rank 1
answered on 26 Jan 2016, 09:45 AM
try the code please. I cant attach a url.
0
Pavlina
Telerik team
answered on 26 Jan 2016, 01:41 PM
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
0
Yaniv
Top achievements
Rank 1
answered on 29 Aug 2016, 06:11 AM

Hi,

i'm facing the same issue duplicated header

Regards,

Yaniv

0
Yaniv
Top achievements
Rank 1
answered on 29 Aug 2016, 06:29 AM

Hi,

the duplicated headers appearing when exporting to excel

Yaniv

0
Pavlina
Telerik team
answered on 30 Aug 2016, 08:28 PM
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.
0
Mark
Top achievements
Rank 1
answered on 04 Apr 2017, 07:48 PM

Was this ever resolved? I have the same issue. I am seeing two headers until after a postback. 

I have examined your example project and do not see a difference.

0
Pavlina
Telerik team
answered on 06 Apr 2017, 10:49 AM
Hi Mark,

Do you mean that you managed to replicate the problem with duplicate headers in the project I sent? If yes please record a video while testing our project and send it to us, so we can see what are the steps you follow and what we missed. Once we observe the issue locally we will get back to you with a possible solution/fix.

I am looking forward to your reply. 

Regards,
Pavlina
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Preethy
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Preethy
Top achievements
Rank 1
Sivan
Top achievements
Rank 1
Yaniv
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Share this question
or