PortalSite demo (DataBase, C# and VB.NET)

37 posts, 0 answers
  1. Valeri Hristov
    Valeri Hristov avatar
    40 posts
    Member since:
    Dec 2003

    Posted 06 Jun 2007 Link to this post

    Hello,

    We get many requests for samples which demonstrates how to create a portal site, incorporating RadDock. Attached is a simple site, which, I hope, will be of help to everybody.

    In order to keep this thread clean, please report bugs and feature requests in separate threads. We will update the application on a regular basis and most probably it will be uploaded on our site.

    Best regards,
    Valeri Hristov
    the Telerik team



  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 12 Jun 2007 Link to this post

    Slightly rearranged the code, removed the need to use the LoadDockLayout event by sorting the widgets in the proper order when they are being created.

    Greetings,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dave
    Dave avatar
    37 posts
    Member since:
    Jan 2007

    Posted 24 Jul 2007 Link to this post

    I am having an issue with the Expand/Collapse feature of the demo provided.  If I click on the Collapse of a dock and them refresh the page, the dock shows collapsed, but when I click the expand, it is not showing the detail in the dock.  If I refresh the page again,then they expanded dock show the detail.  Is this a known bug or is the demo project missing a piece of functionality?
  5. Petya
    Admin
    Petya avatar
    869 posts

    Posted 24 Jul 2007 Link to this post

    Hi dedbauer,

    I tested with the latest version of the control and everything works fine as you can see in the movie attached. If you would like me to send you the latest hotfix, just open a new ticket - a support ticket if you would like the developer hotfix or a normal thread if you would like the trial version.

    Sincerely yours,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 04 Aug 2007 Link to this post

    I am experiencing this same problem in my portal application.  Are we expecting a new release/patch to fix this soon, or is it only available in a Hotfix?

    I'm also waiting on a fix for the index of the docks not being maintained and am wondering if it will be addressed in the same Hotfix or a later one.

    Thank you.
    --Barry
  7. Petya
    Admin
    Petya avatar
    869 posts

    Posted 07 Aug 2007 Link to this post

    Hi Barry,

    The index issue has not been fixed yet and the other problem's solution is available only in a hotfix. If the index issue is fixed, a new hotfix will be prepared that will include the fixes for both issues. In this way the control is gradually updated and eventually there will be an official update including all fixes. Please, open a support ticket and tell is whether you want the hotfix for the issue in this thread.

    All the best,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 07 Aug 2007 Link to this post

    I didn't mean to imply that I thought separate hotfixes would be needed for each issue.  I just wanted to know if the other had been addressed yet.  I understand they will be cumulative.

    I've opened a ticket (under a different account) for the hotfix.

    Thanks.
  9. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 08 Aug 2007 Link to this post

    I can confirm that this issue is fixed by the hotfix.

    Thanks!
  10. talha
    talha avatar
    5 posts
    Member since:
    Aug 2007

    Posted 12 Aug 2007 Link to this post

    Hi,
    I am implementing a solution based on your example.
    But I couldn't manage to add more than one docks at a time.
    Can you please provide a simple example on this?
    Let's say when you click 'Add Dock', two or more docks are added to zone, with different texts on their labels.
    Thanks in advance
  11. Petya
    Admin
    Petya avatar
    869 posts

    Posted 13 Aug 2007 Link to this post

    Hello talha,

    To add more than one dock on Add button click, you can follow the same approach as with one dock, just register the same script for each dock making sure to use a different key as well. I am attaching our My Portal example modified to add a couple of docks at the same time. You can use it as a base to do the same for your application. Hope this helps.

    Kind regards,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  12. talha
    talha avatar
    5 posts
    Member since:
    Aug 2007

    Posted 14 Aug 2007 Link to this post

    Hi, thank you for your reply.
    Your example helped me a lot. However, I was trying to do something like this:
     Add two or more docks to a zone at a time. This part is functioning perfectly, thanks to your example.
    But when you click on the button, I want to remove the previously added docks from the zone, and add new ones.
    I couldn't work out how to remove all the docks on a zone.
    I would be very happy if you shed me a light on this one, with a simple example.
    Thanks,
  13. Petya
    Admin
    Petya avatar
    869 posts

    Posted 15 Aug 2007 Link to this post

    Hi talha,

    Before proceeding I just wanted to know whether in your project you have one zone that you add/remove docks to or you have more than one zones. Looking forward to your answer before sending you an example.

    Sincerely yours,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  14. talha
    talha avatar
    5 posts
    Member since:
    Aug 2007

    Posted 15 Aug 2007 Link to this post

    Hi Valeri,
    In my project, I have two zones. With a button click, I want to delete the docks on the left zone, and add some different couple of docks to the same left zone.

    And, this may be some other subject, but i have some troubles on it also.
    When a dock is dropped to right zone, I want to set its forbiddenzones property to left zone. So, once it is dropped to right zone, it should not be dropped to left zone again.

    Thank you Valeri, really looking forward to your example.
  15. Petya
    Admin
    Petya avatar
    869 posts

    Posted 15 Aug 2007 Link to this post

    Hi talha,

    Thank you for your clarifications. I prepared a project for you achieving your requirements. Again, it is a modification of MyPortal example. Let me know if it helps you in your development endeavours.

    Also, as we try to keep this thread as clean as possible - please, write us in a new thread if you have new problems.

    Regards,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  16. Ram Manthena
    Ram Manthena avatar
    4 posts
    Member since:
    Mar 2004

    Posted 15 Aug 2007 Link to this post

    Hi,

    I was trying your Code from 055205_PortalSiteCS.zip and here is the question have. I tried adding a button to "News.ascx" user control to display some additional text show on "Click" event. The updated text was not showing up, so I added a updatepanel in the news user control but now I am getting a "Null reference exception" in the news usercontrol even when the page is loaded for the first time. Any I Idea how I can accomplish this?
  17. Petya
    Admin
    Petya avatar
    869 posts

    Posted 16 Aug 2007 Link to this post

    Hello Ram Manthena,

    Let me explain why you get this error. If you follow the order of execution of events (or simply debug the application) you will see that Initialize() in News.cs is called before Init() of the user control. Therefore, when you try the code with an Update Panel, the controls hierarchy has not been defined in Initialize yet and in your case the controls inside the panel are null. So, trying to set the Text of a Label inside the UpdatePanel returns "Null reference exception" because the label is null. The controls hierarchy is ready in Init and from there on you can manipulate the controls inside the UpdatePanel. If you want to modify this project to achieve the exact same behavior only having an UpdatePanel around the controls in News.aspx, then you could save Configuration into some variable in Initialize() and then in OnInit or PageLoad set the label's text to the value of this variable. I am attaching the code of the modified News user control that demonstrates how to achieve this.

    If you continue to experience problems, please write us in a separate thread as we try to keep this one as clean as possible. Hope we have been of help.

    Sincerely yours,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  18. Ram Manthena
    Ram Manthena avatar
    4 posts
    Member since:
    Mar 2004

    Posted 16 Aug 2007 Link to this post

    Petya,

    Thanks for the solution. Now I am running into another issue ie If the widget is collpased when it was last saved and if I re open and expand the widget, The details are not shown. I have seen some talk about a hotfix for this issue on this post. How can I get the hotfix.

    Thanks,
    Ram.
  19. Petya
    Admin
    Petya avatar
    869 posts

    Posted 17 Aug 2007 Link to this post

    Hello Ram Manthena,

    Yes, the problem you mention was fixed. Please, open a new thread where I will send you the hotfix. If you want the developer hotfix, then open a support ticket.

    Greetings,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  20. Guy
    Guy avatar
    49 posts
    Member since:
    Oct 2007

    Posted 15 Oct 2007 Link to this post

    Hi,

    I am using the PortalSiteVB as the base for my project and have created a custom command called 'edit' for the dock that opens a panel in the control inside the dock - this is for setting parameters for the control in the dock and i would like to save these in tblPageWidget.

    However, i set the configuration property and then i call Update() method of pageWidgetInfo class and this saves the data into the configuration field. But as soon as i do this the configuration field is overwritten because the SaveDockLayout event is triggered which iterates through each dockstate and calls update on each pageWidgetInfo instance.  The configuration variable has a value of string.empty and overwrites my settings!

    Why is SaveDockLayout called on first page load? it doesnt make any sense. 

    How do i get my configuration data to save without being overwritten?
  21. Petya
    Admin
    Petya avatar
    869 posts

    Posted 17 Oct 2007 Link to this post

    Hello Guy,

    To avoid the problem with the Configuration, you could modify the PageWidgetInfo class to have two update methods - one that modifies only the configuration and another one that updates the rest of the information and call the first one when you save configuraion and the second one in SaveDockLayout.

    It is true that SaveDockLayout is called on first page load - are there any reasons that make this interrupt with your development? To avoid this you could execute the code in SaveDockLayout in if(IsPostBack) statement.

    Kind regards,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  22. Guy
    Guy avatar
    49 posts
    Member since:
    Oct 2007

    Posted 17 Oct 2007 Link to this post

    thanks for your reply.

    i think the best solution would be the (ifPostback) solution.

    however - i still dont see the logic in raising "saveDockLayout" in the loading sequence.

    could you explain the reasoning for this?
    is it because docks are being loaded into the zone, so therefore it is saving its layout?
  23. Petya
    Admin
    Petya avatar
    869 posts

    Posted 17 Oct 2007 Link to this post

    Hi Guy,

    RadDockLayout's SaveDockLayout event is called on every Page_SaveStateComplete call and this is why you see it called even of the first page load. This event is exposed to be used by the developers if they decide they need to save some information.

    Sincerely yours,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  24. Guy
    Guy avatar
    49 posts
    Member since:
    Oct 2007

    Posted 29 Oct 2007 Link to this post

    Hi,

    I am receiving an error which i have posted here http://www.telerik.com/community/forums/thread/b311D-bagatb.aspx

    one of your users the exact same issue and posts a fix here http://www.telerik.com/community/forums/thread/b311D-bagatb.aspx

    i cannot get the fix to work yet due to tagPrefix issue, but from what his post describes it is exactly the same problem that i have.

    are you going to be doing a fix for this? because currently i cannot demo my product to customers with these sporadic errors occuring.

    regards,
    Guy
  25. Martin Beeby
    Martin Beeby avatar
    60 posts
    Member since:
    Nov 2006

    Posted 30 Oct 2007 Link to this post

    http://www.telerik.com/community/forums/thread/b311D-baabhc.aspx

    The above thread has been updated and now contains a complete work around to this problem.

    However it would be good if telerik would take a look and offer up suggestions on improvement to this solution.
  26. AECLDEV
    AECLDEV avatar
    50 posts
    Member since:
    Aug 2006

    Posted 14 Feb 2008 Link to this post

    I am just wondering what the best way to ajaxify this portal would be.  Basically I just want to avoid any and all postbacks, but not take away from the functionality of the portal.  Can you make any suggestions?
  27. Guy
    Guy avatar
    2 posts
    Member since:
    Sep 2007

    Posted 14 Feb 2008 Link to this post

    the portal is already ajaxified

    you cant avoid ALL postbacks because it requires one to workaround a bug in the current version.

    the only postback you will have to have is the one when you add a new dock item to the containers.
  28. Martin Beeby
    Martin Beeby avatar
    60 posts
    Member since:
    Nov 2006

    Posted 14 Feb 2008 Link to this post

    Yeah sadly we couldn't get round the problem of that one postback when adding a new item, Without it being really buggy.

    I keep meaning to re visit this issue. But i just haven't got the time at the moment.

  29. AECLDEV
    AECLDEV avatar
    50 posts
    Member since:
    Aug 2006

    Posted 14 Feb 2008 Link to this post

    In the Prometheus Demos, there is no postback when adding a dock
  30. Guy
    Guy avatar
    2 posts
    Member since:
    Sep 2007

    Posted 14 Feb 2008 Link to this post

    so basically if there is no postback then its "ajaxified" and you have no issue right?

    your initial post needs some explanation, you arent being very specific.
  31. Martin Beeby
    Martin Beeby avatar
    60 posts
    Member since:
    Nov 2006

    Posted 14 Feb 2008 Link to this post

    Agreed but the version we were looking at had a bug, see:
    http://www.telerik.com/community/forums/thread/b311D-baabhc.aspx
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017