RadGridWebPart property issues

4 posts, 0 answers
  1. Stan
    Stan avatar
    3 posts
    Member since:
    Feb 2013

    Posted 27 Mar 2013 Link to this post

    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.

  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 01 Apr 2013 Link to this post

    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.

  3. tomc
    tomc avatar
    1 posts
    Member since:
    Jul 2007

    Posted 26 Sep 2013 Link to this post

    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



     



  4. Marin
    Admin
    Marin avatar
    1043 posts

    Posted 01 Oct 2013 Link to this post

    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.
Back to Top