RadGrid in MOSS

6 posts, 0 answers
  1. Santosh Kannan
    Santosh Kannan avatar
    6 posts
    Member since:
    Jan 2010

    Posted 17 Feb 2010 Link to this post

    Hi,

    I am trying to create a demo of RadGrid in sharepoint. So basically showing some sharepoint data in the grid. I have tried 2 approaches so far and the issues i am facing with are as below:

    1. UserControl with RadSkinManager, RadFormDecor, RadGrid and Skin im using is Windows7. The issue here is that when drag a column to group to the GroupPanel, the display goes haywire as shown in attachment(RadGridGrouping.Jpg) and also since i have more than 15 columns & have enabled scrolling the page when first loading shows the RadGrid with full width first for a few seconds and then shrinks to with the page width and scrollbar.

    2. Programmatically creating the RadGrid as shown in the example here. The issue here is that when drag a column for grouping to the GroupPanel an error is thrown as shown in the screen shot. (RadGridError.jpg)

    Please advice.

    Note:
    The RadScriptManager is placed in the MasterPage and the MOSS site has a custom theme applied. Also do not have <xhtmlConformance /> in webconfig.

  2. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 22 Feb 2010 Link to this post

    Hello Santosh,

    Thanks for the pics.

    1. In the first picture, it seems the browser is running in quirks mode. You may need to modify some RadGrid CSS.  Try the following styles on the page:

    * html .RadGrid .rgGroupHeader td div div
    {
     top:-0.1em;
    }
     
    * html .RadGrid .rgGroupHeader td div div div
    {
     top:0;
    }

    This is for the displaced group headers. As for the initial RadGrid width and RadGrid shrinking after a couple of seconds, try setting RadGrid's Width in pixels and apply the following inline style:

    <telerik:RadGrid style="overflow:hidden" />

    2. This exception probably means that somehow RadGrid is not properly configured in the web part. Make sure you have specified an ID for RadGrid in the web part. Also see if you  are not loading your web part too late in the page lifecycle (PreRender for example).

    All the best,
    Veli
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.

  3. Santosh Kannan
    Santosh Kannan avatar
    6 posts
    Member since:
    Jan 2010

    Posted 25 Feb 2010 Link to this post

    Hi Velli,

    Thanks for the solution. It worked.

    I have another issue now with RadGrid export, the scenario is as below:

    I have a RadGrid and a RadToolBar with button to export. I also have a dropdown in the ToolBar to select different option which programmatically loads the Grid. The issue here is that, everytime i click Export button the Grid after exporting to excel kind of freezes, meaning there is no postback from any of the controls after exporting. I have to refresh the page for postback to occur from any controls.
    I hope the issue is clear.

    Please advice.

    Thanks.
  4. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 25 Feb 2010 Link to this post

    Hi Santosh,

    If you are using AJAX, do you disable AJAX on exporting? (read further...)

    Kind regards,
    Veli
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  5. Santosh Kannan
    Santosh Kannan avatar
    6 posts
    Member since:
    Jan 2010

    Posted 25 Feb 2010 Link to this post

    Hi Veli,

    The grid and the toolbar are not ajax enabled.

    Note: this is in sharepoint environment.

    Thanks
  6. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 25 Feb 2010 Link to this post

    Hello Santosh,

    This issue has long been discussed in our forums and you can refer to this and this form threads to get yourself acquainted with the workaround. Basically, Sharepoint raises a flag after you export. This flag, that is originally meant to prevent double postbacks from a sharepoint page, is the cause of your postbacks getting disabled after export. You will need re-set the flag before exporting.

    Sincerely yours,
    Veli
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top