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

RadGrid in MOSS

5 Answers 69 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Santosh Kannan
Top achievements
Rank 1
Santosh Kannan asked on 18 Feb 2010, 03:04 AM
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.

5 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 22 Feb 2010, 08:24 AM
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.
0
Santosh Kannan
Top achievements
Rank 1
answered on 25 Feb 2010, 08:21 AM
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.
0
Veli
Telerik team
answered on 25 Feb 2010, 11:42 AM
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.
0
Santosh Kannan
Top achievements
Rank 1
answered on 25 Feb 2010, 01:00 PM
Hi Veli,

The grid and the toolbar are not ajax enabled.

Note: this is in sharepoint environment.

Thanks
0
Veli
Telerik team
answered on 25 Feb 2010, 04:15 PM
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.
Tags
Sharepoint Integration
Asked by
Santosh Kannan
Top achievements
Rank 1
Answers by
Veli
Telerik team
Santosh Kannan
Top achievements
Rank 1
Share this question
or