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

RadGrid will not activate

6 Answers 75 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 15 Aug 2012, 06:34 PM
I receive the following error when i try to activate the RadGrid Feature

Error

Failed to instantiate file "TelerikSPRadGridWebPart.dwp" from module "TelerikSPRadGridWebPart": Source path "Features\RadGridFeature\RadGridSharePoint\TelerikSPRadGridWebPart\TelerikSPRadGridWebPart.dwp" not found.

6 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 20 Aug 2012, 08:33 AM
Hello,

 Probably the Sharepoint Feature of the web part cannot be found and installed correctly. I suggest you make sure that it is present in the specified location and reinstall the latest version of the Sharepoint Acceleration Kit if needed.

Regards,
Marin
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
Jeff
Top achievements
Rank 1
answered on 19 Sep 2012, 06:00 PM
I am having the same problem with this.
0
Marin
Telerik team
answered on 24 Sep 2012, 07:30 AM
Hello,

 Does the below suggestion help? Remove the features and reinstall them using the latest version of the Sharepoint Acceleration Kit, also make sure that they are present in the specified folder for the feature.

All the best,
Marin
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
Jeff
Top achievements
Rank 1
answered on 24 Sep 2012, 02:59 PM
Yes was able to get it installed now, Seems problem is that the Sharepoint Kit Installer in the public site is out of date.

So once downloaded from the My Products page, Webpart feature does indeed active correctly, However ended up not using it. In testing, I found out that doesn't work with 2010 foundation (my local install) plus I needed a little more control of it.

So I ended out just coding out using the radGrid in VS.

If anybody needs some examples of doing this let me know. there are a few tricks to it :)

- Jeff




0
Michael
Top achievements
Rank 1
answered on 23 Oct 2012, 05:43 PM
Hi Jeff,
I'm running into the same issue you did, and would also like to proceed in the direction you did with VS. Can you elaborate on what you did or upload some code samples here? Anxiously awaiting your reply. Thanks.
Michael
0
Jeff
Top achievements
Rank 1
answered on 23 Oct 2012, 06:41 PM
The Quick and Dirty  is  
Add Grid to the User Control for the Webpart
Add the columns manually to the grid
then use the NeedDataSource event for the grid  with something like this
Note the below is using a CAML Query which isn't really needed but just for example
/////////////////////////////////////////////////////////////////////////////////
protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            SPWeb oWeb = SPContext.Current.Web;
            SPList oList = oWeb.Lists["Custom List Test"];
            System.Data.DataTable dt = null;
            StringBuilder strQuery = new StringBuilder();
            strQuery.Append(@"<ViewFields>");
            strQuery.Append(@"<FieldRef Name='LastName'></FieldRef>");
            strQuery.Append(@"</ViewFields>");
            strQuery.Append(@"<OrderBy>");
            strQuery.Append(@"<FieldRef Name='LastName' Ascending='True' />");
            strQuery.Append(@"</OrderBy>");
            SPQuery objQuery = new SPQuery();
            //objQuery.Query = strQuery.ToString();
            //SPListItemCollection objListItemColl = oList.GetItems();
            SPListItemCollection objListItemColl = oList.GetItems(objQuery);
            if (objListItemColl != null && objListItemColl.Count > 0)
            {
                dt = objListItemColl.GetDataTable();
            }
            else
            {
                dt = oList.Items.GetDataTable();
            }            
            RadGrid1.DataSource = dt;
        }
/////////////////////////////////////////////////////////////////////////////////
if want to insert or update back to the sharepoint list
in CodeBehind can use one of the events to get the values from the grid and write back to the sharepoint list using 
the Sharepoint server(or Client) Object Model)

(How get data from Grid)
GridEditableItem MyItem = e.Item as GridEditableItem;
var LastName= (MyItem["LastName"].Text);
Blah, Blah, Blah, 

Hope Helps



Tags
Sharepoint Integration
Asked by
Greg
Top achievements
Rank 1
Answers by
Marin
Telerik team
Jeff
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Share this question
or