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

RadGridWebPart property issues

3 Answers 24 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Stan
Top achievements
Rank 1
Stan asked on 27 Mar 2013, 05:23 PM
I want to display, with a scrollbar JUST for the data rows (not for the entire control) so the header and footer stay where they are (no scrolling).

There seems to be no way to set the scrolling area height if one sets EnableScrolling to true (the default setting). So the web part has scroll bars and the user has to scroll down to get to the paging controls. Looks lame.

Grid Height (%) doesn't have any good effect if it's not set to 0 and EnableScrolling is true. One would expect 100% to show the entire page of the grid, but it just collapses the control to only 4-5 pixels or so. Looks lame.

I can't even set the default page size from 30 to 10. This is REALLY lame - why is this property not available?

Help! I simply want to show a sharepoint list, with paging, with header and footer always displayed, and fitting on the web page without scrolling the web page or the grid.

This is with the product downloaded last week, version 2013.1.220.35.

3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 01 Apr 2013, 02:59 PM
Hi Stan,

The grid web part is not as flexible as the RadGrid control itself. The only way to customize it is to inherit the TelerikSPRadGridWebPart and set any desirable properties to the grid within, which is exposed through the Grid property on the TelerikSPRadGridWebPart. Thus, you will have to create a new web part of yours inheriting the telerik ones.

Regards, Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
tomc
Top achievements
Rank 1
answered on 26 Sep 2013, 08:12 PM
Hi

Can you confirm that you can use this approach the set the Freeze Columns property as well as we a SharePoint List with a large number of columns and would like to use the SPRadGrid Web part.

Do you also have any examples of extending the Web Part as we have tried this but get an error after adding our new Web Part to the SharePoint Page:

Exception Details: System.EntryPointNotFoundException: Entry point was not found.
Stack Trace:

[EntryPointNotFoundException: Entry point was not found.]
   Telerik.Web.ILocalizableControl.get_Culture() +0
   Telerik.Web.LocalizationProvider..ctor(String classKey, ILocalizableControl control, String resFileLocation) +139
   Telerik.Web.UI.RadGrid.get_Localization() +92
   Telerik.Web.UI.GridClientMessages.GetLocalizationString(TFunc`2 extractor, String defaultValue) +25

We have basically extended the web part as follows

    public class FrozenGrid2 : TelerikSPRadGridWebPart
    {
        protected override void CreateChildControls()
        {

            this.Grid.ClientSettings.Scrolling.FrozenColumnsCount = 2;
            base.CreateChildControls();

        }

Thanls

Tom



 



0
Marin
Telerik team
answered on 01 Oct 2013, 12:59 PM
Hi,

 Extending the web part may require a lot of additional setup and customization that's why a better option here might be to create a simple visual web part that actually uses RadGrid in the user control. This way you will have complete freedom to customize the grid and set any properties the same way as in a standard ASP.NET page.

Regards,
Marin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Sharepoint Integration
Asked by
Stan
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
tomc
Top achievements
Rank 1
Marin
Telerik team
Share this question
or