1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sitefinity and RadControls

Sitefinity and RadControls

19 posts, 0 answered
  1. Andy
    Andy avatar
    4 posts
    Registered:
    17 Mar 2009
    20 Apr 2009
    Link to this post
    Does anyone know for certain whether or not the latest release of the RadControls are included in Sitefinity 3.6 SP1?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Apr 2009
    Link to this post
    Hi Andy,

    Sitefinity 3.6 SP 1 comes with Telerik.Web.UI version 2009.1.410.20 ( for .net framework 2.0) and 2009.1.410.35( for .net framework 3.5).

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Andy
    Andy avatar
    4 posts
    Registered:
    17 Mar 2009
    21 Apr 2009
    Link to this post
    I have heard rumor...  Is it true that the Telerik controls have been updated in the latest 2009 Q1 release that have made a paradigm shift in skin/style handling that will cause previous Sitefinity development to break and therefore need to be updated for use under 3.6 SP1 when upgraded?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    21 Apr 2009
    Link to this post
    Hello Andy,

    Here is a link to Changes and backwards compatibility in RadControls latest release. If you have some custom implemenations using Radcontrols you may face some problems witht the styling.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Carrie
    Carrie avatar
    6 posts
    Registered:
    06 Aug 2009
    06 Aug 2009
    Link to this post
    Ivan, I am trying to use the new 2009 Q2 RadControls for ASP.NET AJAX in a Sitefinity 3.6 project--with nothing but a headache and still no success! I've tried the rebinding in web.config as well as a few other things to no avail. Any advice?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    06 Aug 2009
    Link to this post
    Hi Carrie Yarbrough,

    We do not recommend upgrading the controls because of dependency between our almost 52 assemblies and build version of Telerik.Web.UI.dll. You may have some parts not working or get dependency assembly errors.
    What is the exact problem at your end? Any errors, you cannot compile o something else?

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Carrie
    Carrie avatar
    6 posts
    Registered:
    06 Aug 2009
    06 Aug 2009
    Link to this post
    I am using Sitefinity 3.6 to build an online shopping site. I've used Telerik RadControls for ASP.NET AJAX 2009 Q2 to build my user controls. Once I upload the controls to the Sitefinity site and drop them on a page, I recieve error: Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    I've used the binding redirect, as well as swapping Telerik.Web.UI.dll versions in the GAC and bin folders. That gets me further, but then three pages in the Sitefinity folder that reference Dummy.master complain. The reason I need Q2 is because I need to be able to use the GridBinaryImageColumn to display images stored in SQL database. If there is another way to accomplish that with Q1 controls, please let me know. Entire site is relying on this working...

    Thanks

    Carrie
  8. Brian
    Brian avatar
    14 posts
    Registered:
    01 Dec 2007
    07 Aug 2009
    Link to this post
    This is easy to accomplish.

    Add a asp.net image to a template column on the grid.

    Then use the OnItemDatabound event on the grid. 

    You can then set the image url from there by searching for the image control by name.

    If you are loading from binary, just create an HTTP Handler to spit the image out.  I can post some code that uses the HTTP Handler later on when I have some time if you need it.

  9. Carrie
    Carrie avatar
    6 posts
    Registered:
    06 Aug 2009
    09 Aug 2009
    Link to this post
    Ok. I've installed 2009 Q1 and removed the GridBinaryImageColumn. I've used GridTemplateColumn with ItemTemplate <asp:image>

    Some code would be nice. I understand HTTP handler, but not in use with grid. I will never know url or index of image as it is all dynamic based on what is in database. Just for example I have:
     

    Protected Sub rgImage_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgImage.NeedDataSource  

    Dim ImageData() As Byte 

    Dim ds As DataSet    

    ds = ws.GetImages() 

    For i = 0 To ds.Tables(0).Rows.Count - 1  

    ImageData = ds.Tables(0).Rows(i)("ItemImg")

     Response.Buffer = True

    Response.ContentType = "Image/JPEG"

    Response.BinaryWrite(ImageData) 

    Next

    rgImage.DataSource = ds

    End Sub


    This displays a single image on the page in top left corner (Not really image--red X)

     

     

     

     

     

  10. Carrie
    Carrie avatar
    6 posts
    Registered:
    06 Aug 2009
    17 Aug 2009
    Link to this post
    Hello? Is anyone there? If this isn't the support forum that comes with the purchase of your controls and SiteFinity, please point me to the proper url. Otherwise, could you please post some code as requested?
  11. Sean
    Sean avatar
    271 posts
    Registered:
    31 May 2006
    18 Aug 2009
    Link to this post
    Hi Carrie,

    I think that what you are trying to achieve just isn't possible in ASP.Net maybe in a windows environment to render the images in a grid without the help of an HttpHandler.  Even the .Net RadBinaryImage uses a built in Handler.

    I personally think that HttpHandlers are still your best option as you can do image caching etc plus a few more performance benefits over how you are trying to do it,  I also find them easier to debug because you can put into your browser the exact address of image in the browser and see the actual error instead of the red X.  Is there really absolutely no way to identify those images uniquely that you could pass a Primary Key or name or something to the handler, surely the images need to be related to the row in some way?

    Sorry this probably isn't the answer you are looking for but I haven't to date found a way to achieve what you are trying to do in an ASP.Net environment, please let me know if you do find a way.

    Thanks
    Sean


  12. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Aug 2009
    Link to this post
    Hello,

    Sean, you are right. That is the reason why we use handlers for our Images and Documents module items as well.

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  13. Carrie
    Carrie avatar
    6 posts
    Registered:
    06 Aug 2009
    18 Aug 2009
    Link to this post
    Hey! Thanks for the response. I am pulling back a pk along with the image. The images just aren't stored in a folder with a url. Also, yes, bound to grid row as well. So you're saying that, in that case, it can be done with handlers? I know you guys built the GridBinaryImageColumn in Q2. I built this entire site using that and it worked beautifully! Just can't use Q2 with Sitefinity...
  14. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Aug 2009
    Link to this post
    Hi Carrie,

    We have updated the RadControls to Q2 2009 in Sitefinity 3.7, which was released last week. Perhaps you can upgrade your Sitefinity version to that version as well?

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  15. Carrie
    Carrie avatar
    6 posts
    Registered:
    06 Aug 2009
    18 Aug 2009
    Link to this post
    Cool! Exeactly what I needed! I've upgraded project, but now get this error when hitting page that will display image:





    [ArgumentException: Parameter is not valid.]
    System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) +1062843
    System.Drawing.Image.FromStream(Stream stream) +8 Telerik.Web.UI.ImageFilterHelper.CreateImgFromBytes(Byte[] image) +62
    Telerik.Web.UI.BinaryImageTransformationFilter.ProcessImageInternal(Byte[] image) +17
    Telerik.Web.UI.BinaryImageTransformationFilter.ProcessImage(Byte[] image) +17
    Telerik.Web.UI.BinaryImageFilterProcessor.ProcessFilters(Byte[] imageData) +101
    Telerik.Web.UI.RadBinaryImage.ProcessImageData() +34
    Telerik.Web.UI.RadBinaryImage.OnPreRender(EventArgs e) +16
    System.Web.UI.Control.PreRenderRecursiveInternal() +80
  16. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Aug 2009
    Link to this post
    Hi Carrie,

    Thank you for the follow up.

    Looking at stack trace, we see that the error is occuring in the .net Image class, and FromStream method. It looks like the image is either not valid, or has a broken header. Could you please try with another image?

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  17. jas4on
    jas4on avatar
    11 posts
    Registered:
    07 Aug 2009
    22 Oct 2009
    Link to this post
    I have a similar issue in that I've inherited several SF3.5 sites and I've used Telerik RadControls for ASP.NET AJAX 2009 Q2 to build my user controls.  On this project I'm using only the RadDatePicker. Once I upload the controls to the Sitefinity site and drop them on a page, I recieve error: Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

    What are my options?  Can I obtain a set of RadControls compatible with SF3.5?  I need to get these usercontrols up and we don't have time to update the whole site to the latest SF....we don't plan to upgrade until v4.0 release.  I've tried replacing the Telerik.Web.UI dll in the web site bin folder but that just breaks the rest of the site.

    Thanks,

    -Jason


  18. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    22 Oct 2009
    Link to this post
    Hi jas4on,

    Sitefinity 3.5 uses an old version of Telerik.Web.UI controls - 2008.2.1001.20 or 2008.2.1001.35. To use your controls with Sitefinity 3.5 you need to recompile your controls with the assemble version that is used in your current project or add reference to the assemble you have used to compile your controls. Another option is addding the old assemble to your GAC where you can have two different versions of the same asseble, but this will not do the trick if you are not working on a dedicated server.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  19. jas4on
    jas4on avatar
    11 posts
    Registered:
    07 Aug 2009
    22 Oct 2009
    Link to this post
    Thanks....I recompiled with the old assembly and that did the trick.

    Also, thanks for the speedy reply!!!
Register for webinar
19 posts, 0 answered