(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Forums

Search in:

Go

URGENT! Bookshelf silverlight control

  • spleenie
    spleenie
    18 points
    9 posts
    Jan 8, 2012, 04:48 PM
        Report Abuse

    Hi,

    I am a beginner in silverlight. I have just installed silverlight 5. I wanted to utilise the bookshelf silverlight control but when i open it with my visual studio, it says that two of the files are not downloaded properly. So, i downloaded several times but still the same outcome. I would like to know why and help me solve this problem. This silverlight bookshelf control is downloaded from http://classifiedcabinet.codeplex.com/ . I went to the "sample" section of the particular page that you are navigated to when click on the above link and download the source.

    with regards

    Reply

All Posts

  • spleenie
    spleenie
    18 points
    9 posts
    Jan 18, 2012, 02:38 PM
            Report Abuse

    Sorry to bother. may i know where is data model? because I am new to silverlight and thats why I there are many things that I don't know.

    Another thing is that I tried putting buy links but it does not display any of it.. May i know how to display it ?

    Also, there are "Links" and " Tags" header displayed but i tried to remove it and have no idea where to remove it

    Reply

  • Georgi Stoyanov
    47 points
    9 posts
    Jan 18, 2012, 02:56 PM
            Report Abuse

    The data model is in the web project - Bookshelf.Web and is called BookshelfEntities.edmx. When you open it you should see a diagram that reflects the database. You can right-click and select "Update model from db" to sync it with the db. Also this operation usually doesn't delete things, so you may have to delete them manually after that.

    For the UI-related issues - in both cases you need to edit the view that is responsible for displaying a single book. There are two of them actually - one for the books on the shelf and another, with details, used when a book is displayed in a dialog. You probably need to edit the second.

    Since you say you are new to SL - I'll suggest you search for more info on MVVM. This is a largely used and very useful pattern. This demo uses it and it will be a lot easier to understand things on your own if you are familiar with this pattern. You'll also be able to write better apps yourself, silverlight or otherwise.

    Reply
  • spleenie
    spleenie
    18 points
    9 posts
    Jan 18, 2012, 03:47 PM
            Report Abuse
    I tried right-click and select "Update model from db" then in this there is only add, refresh and delete.However, the delete section and the refresh section it says "These items could not be found in the database and will be removed from the model."
    Reply

  • Georgi Stoyanov
    47 points
    9 posts
    Jan 21, 2012, 11:48 AM
            Report Abuse

    So? What seems to be the problem? You have deleted some items and the model says they are not in the db. That is what you would expect it to do, isn't it?

    Reply
  • spleenie
    spleenie
    18 points
    9 posts
    Jan 22, 2012, 06:41 AM
            Report Abuse
    Sorry for the inconvenience made. Because i tried syncing it but it still has the same outcome of loading forever. So i was wandering if there is any other ways to solve it.
    Reply

  • Georgi Stoyanov
    47 points
    9 posts
    Jan 23, 2012, 10:28 AM
            Report Abuse

    No, there aren't any other ways - you just have to updated everything like I said earlier. That includes the date service and the client (Silverlight app), not just the data model. For example, in the BookCategoriesDataService.cs the "Tags" entity set is exposed and if you have removed the Tags table from the db, you'll have to remove them from there as well. 

    Most importantly, you have to update the Silverlight application, because it's looking for the fields you have removed. First find the service reference under Service References and update it. Then you have to update the project so that it compiles again by deleting or changing the code that uses the removed fields.

    And in general, if your app doesn't load or crashes or does anything unexpected, the best thing to do is debug it and locate the problem, or at least the code that is causing the problem. Then you'll have a better idea what to do next.

    Reply
  • spleenie
    spleenie
    18 points
    9 posts
    Jan 26, 2012, 06:36 PM
            Report Abuse
    Hi, i did as what you suggests me but it still doesnt work.
    Reply
Page    

To reply to this thread you must Log In to your account


Thread


Tags: 
  • Asked
    152 days ago
  • Viewed
    567
  • Last Activity

Related Threads


Shortcuts