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

RadGrid postback issues in SharePoint 2010 Visual WebPart

4 Answers 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JR
Top achievements
Rank 1
JR asked on 27 Aug 2011, 09:51 PM
I've run into a number of issues with a RadGrid control (containing a nested grid) which is used in a Visual Web Part for SharePoint 2010.  We are using the 2011.2.712.35 of the ASP.Net AJAX controls.

1) When a user clicks to either add a new grid item, or edit an existing one; the page posts-back and wipes out the left-hand navigation on the page. (see attached image)

2) When editing or inserting items; any button triggering a grid command (performinsert, update, cancel, refresh) does not refresh the grid and the user must browse away from the page and then back again.  It does appear that data is correctly updated or saved; but the form does not close or and the grid does not refresh.  Not sure if this may be related to the first item or not...

The code files are quite long; can they be attached rather than copy / pasted?

3) I also have a RadUploadAsync control in the the EditForm of the grid which does not appear to upload images properly. I'm sure this an RadUploadAsync + SharePoint + web.config issue; so I'd like to get the first two items sorted out first.


4 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 01 Sep 2011, 07:16 AM
Hello,

 Do you use ajax on this page and if so is it configured properly as shown here. All the three issue seem to be related to the same problem that the postback does not happen properly which might be caused by incorrect ajax configuration. I will appreciate if you could also attach the code files for the problematic web part so we can check them on our side.

Regards,
Marin
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
JR
Top achievements
Rank 1
answered on 01 Sep 2011, 03:13 PM
The link you provided appears to be for SharePoint 2007.  Is the configuation the same for 2010 or does it differ in any way?
0
Marin
Telerik team
answered on 01 Sep 2011, 03:36 PM
Hi,

 The settings are pretty much the same. You can use the attached sample web part as a starting point. It is configured to run and use RadAjaxManager in Sharepoint 2010.

Kind regards,
Marin
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
JR
Top achievements
Rank 1
answered on 07 Sep 2011, 09:14 PM
Still didn't quite solve the problem; but due to time constaints we've had to implement a work around.  We removed the AJAX code and now the upload works properly; but the RadEditor tool still doesn't quite work so we just have a multi-line text box.

I'll do some addtional testing in a few weeks.
Tags
Grid
Asked by
JR
Top achievements
Rank 1
Answers by
Marin
Telerik team
JR
Top achievements
Rank 1
Share this question
or