RadGrid will not activate

7 posts, 0 answers
  1. Greg
    Greg avatar
    1 posts
    Member since:
    Nov 2011

    Posted 15 Aug 2012 Link to this post

    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.
  2. Marin
    Admin
    Marin avatar
    1045 posts

    Posted 20 Aug 2012 Link to this post

    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.

  3. Jeff
    Jeff avatar
    6 posts
    Member since:
    Mar 2012

    Posted 19 Sep 2012 Link to this post

    I am having the same problem with this.
  4. Marin
    Admin
    Marin avatar
    1045 posts

    Posted 24 Sep 2012 Link to this post

    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.
  5. Jeff
    Jeff avatar
    6 posts
    Member since:
    Mar 2012

    Posted 24 Sep 2012 Link to this post

    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




  6. Michael
    Michael avatar
    8 posts
    Member since:
    Jan 2009

    Posted 23 Oct 2012 Link to this post

    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
  7. Jeff
    Jeff avatar
    6 posts
    Member since:
    Mar 2012

    Posted 23 Oct 2012 Link to this post

    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



Back to Top