Ok...I'm Lost!

4 posts, 0 answers
  1. M
    M avatar
    2 posts
    Member since:
    Sep 2010

    Posted 08 Dec 2011 Link to this post

    Reference - http://www.telerik.com/help/silverlight/radbook-data-templates.html

    First and foremost I am completely new to silverlight and I am 'itching' to learn but sometimes it can be so frustrating. So I am calling on this forum to help me out.

    I have tried to replicate this piece of code using VB 2010 and visual basic coding and have failed.

    I do not understand where to store the images ( I have used my own images - A.jpg B.jpg C.jpg and so on - and they are on my hard drive.

    ..........
     Dim myPhotos As New ObservableCollection(Of PhotoItem)()
                myPhotos.Add(New PhotoItem() With {.Title = "A", .Image = "A.jpg", .DateTaken = Date.Parse("3/14/2008 1:59 PM"), .Size = "858 KB"})
                myPhotos.Add(New PhotoItem() With {.Title = "B", .Image = "B.jpg", .DateTaken = Date.Parse("2/12/2008 3:12 PM"), .Size = "458 KB"})
                myPhotos.Add(New PhotoItem() With {.Title = "C", .Image = "C.jpg", .DateTaken = Date.Parse("3/25/2008 2:22 PM"), .Size = "843 KB"})
                myPhotos.Add(New PhotoItem() With {.Title = "D", .Image = "D.jpg", .DateTaken = Date.Parse("1/14/2008 4:32 PM"), .Size = "456 KB"})
                myPhotos.Add(New PhotoItem() With {.Title = "E", .Image = "E.jpg", .DateTaken = Date.Parse("6/14/2008 2:46 PM"), .Size = "654 KB"})
                myPhotos.Add(New PhotoItem() With {.Title = "F", .Image = "F.jpg", .DateTaken = Date.Parse("8/23/2008 3:59 PM"), .Size = "930 KB"})
                myPhotos.Add(New PhotoItem() With {.Title = "G", .Image = "G.jpg", .DateTaken = Date.Parse("3/14/2008 1:59 PM"), .Size = "623 KB"})
                RadBook1.ItemsSource = myPhotos
    
    .......
    

    When I build the project, the build succeeds but I don't get a result when I run the web page. It just continues to 'search' and never concludes.

    What am I doing wrong? Do I have to put the images in a  dedicated folder and if so where?
    I've tried adding an 'Images' Folder to my project and adding my graphic files.....Building....and 'nothing'

    I've looked at properties and have drawn a blank......I really could use some help here and I bet the answer is so simple that I'm about to be embarrassed......But, quite frankly I don't care! I've tried everything I know and cannot make any headway.

    Thanks
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 13 Dec 2011 Link to this post

    Hi M,

     I prepared a project for you that basically follows the approach described in the mentioned help article - the only difference is that I have created an "Images" folder in my app.  Please let us know if this is suitable for you. If you wan to use the same code from the help article, your Images must be located in the Bin//Debug folder of your application.

    Greetings,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. M
    M avatar
    2 posts
    Member since:
    Sep 2010

    Posted 14 Dec 2011 Link to this post

    Hi Petar

    Thank you very much for the time you spent on my problem. I have downloaded your code and looked at it and I confess I did consider the Images folder and the coding that goes with it. 
    I have even used your suggestion of placing the graphics in Bin/Debug.
    I am sure the coding is fine and I am satisfied that it works. Indeed, when I 'build' the code it shows as no errors. 

    My problem comes when I try and view the product. 

    Pressing F5 opens my default browser and the page opens fine...it then proceeds with the percentage count in the middle of the screen, this gets to 100% .......everything is ok........and then it just stops......The blue processing graphic continues to revolve with the 100% showing in the middle on a white background. I wait and wait and wait and ...nothing! 

    I have tried Firefox, Chrome and IE9 all with the same result....No product......I am now wondering whether it might be a 64 bit thing or perhaps a windows seven thing....But why on this example when the previous examples in your help file work fine. They are easy to follow and understand and I am happy to 'play' with them learning as I go along.....Until now and this example.
    It can be so frustrating and demoralising.

     Is it me..am I doing something silly or wrong?
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 19 Dec 2011 Link to this post

    Hello M,

     Could you please try to clean your browsers cache and let us know if this helped ? On the other hand, can you confirm that you don't use SL 5 RC version ? Is it possible for you to send us an isolated sample which we could try and investigate better ? Thank you in advance.

    Regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top