This is a migrated thread and some comments may be shown as answers.

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

36 Answers 1616 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Valeri Hristov
Top achievements
Rank 1
Valeri Hristov asked on 06 Jun 2007, 08:01 AM
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



36 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 12 Jun 2007, 11:22 AM
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
0
Dave
Top achievements
Rank 1
answered on 24 Jul 2007, 03:29 PM
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?
0
Petya
Telerik team
answered on 24 Jul 2007, 03:44 PM
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
0
LeBear
Top achievements
Rank 1
answered on 04 Aug 2007, 10:03 PM
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
0
Petya
Telerik team
answered on 07 Aug 2007, 03:14 PM
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
0
LeBear
Top achievements
Rank 1
answered on 07 Aug 2007, 05:09 PM
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.
0
LeBear
Top achievements
Rank 1
answered on 08 Aug 2007, 05:56 PM
I can confirm that this issue is fixed by the hotfix.

Thanks!
0
talha
Top achievements
Rank 1
answered on 12 Aug 2007, 01:57 PM
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
0
Petya
Telerik team
answered on 13 Aug 2007, 10:51 AM
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
0
talha
Top achievements
Rank 1
answered on 14 Aug 2007, 02:01 PM
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,
0
Petya
Telerik team
answered on 15 Aug 2007, 11:01 AM
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
0
talha
Top achievements
Rank 1
answered on 15 Aug 2007, 12:12 PM
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.
0
Petya
Telerik team
answered on 15 Aug 2007, 01:11 PM
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
0
Ram Manthena
Top achievements
Rank 1
answered on 15 Aug 2007, 06:25 PM
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?
0
Petya
Telerik team
answered on 16 Aug 2007, 12:03 PM
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
0
Ram Manthena
Top achievements
Rank 1
answered on 16 Aug 2007, 09:25 PM
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.
0
Petya
Telerik team
answered on 17 Aug 2007, 06:37 AM
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
0
Guy
Top achievements
Rank 1
answered on 15 Oct 2007, 01:16 PM
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?
0
Petya
Telerik team
answered on 17 Oct 2007, 11:58 AM
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
0
Guy
Top achievements
Rank 1
answered on 17 Oct 2007, 12:02 PM
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?
0
Petya
Telerik team
answered on 17 Oct 2007, 03:29 PM
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
0
Guy
Top achievements
Rank 1
answered on 29 Oct 2007, 04:18 PM
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
0
Martin Beeby
Top achievements
Rank 1
answered on 30 Oct 2007, 10:29 AM
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.
0
AECLDEV
Top achievements
Rank 1
answered on 14 Feb 2008, 05:34 PM
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?
0
Guy
Top achievements
Rank 1
answered on 14 Feb 2008, 05:38 PM
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.
0
Martin Beeby
Top achievements
Rank 1
answered on 14 Feb 2008, 05:41 PM
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.

0
AECLDEV
Top achievements
Rank 1
answered on 14 Feb 2008, 05:42 PM
In the Prometheus Demos, there is no postback when adding a dock
0
Guy
Top achievements
Rank 1
answered on 14 Feb 2008, 05:44 PM
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.
0
Martin Beeby
Top achievements
Rank 1
answered on 14 Feb 2008, 05:45 PM
Agreed but the version we were looking at had a bug, see:
http://www.telerik.com/community/forums/thread/b311D-baabhc.aspx
0
AECLDEV
Top achievements
Rank 1
answered on 14 Feb 2008, 05:48 PM
@Guy

The DEMO has no postback, but my application does, and I dont see a difference between the two
0
Kia
Top achievements
Rank 1
answered on 10 Mar 2008, 06:35 AM
I can't seem to run any of the demos, each for various reasons.

This one(c#) gives me the following errors the instant I open the untouched site:

The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'DockState' could not be found (are you missing a using directive or an assembly reference?)
'PageWidgetInfo.DockState' is a 'property' but is used like a 'type'

The VB version does not run for other reasons such as "Unrecognised command ";".
0
Martin Beeby
Top achievements
Rank 1
answered on 10 Mar 2008, 08:41 AM
What version of visual studio are you using?
0
Kia
Top achievements
Rank 1
answered on 10 Mar 2008, 10:02 AM
2005.
0
Ahrensberg
Top achievements
Rank 1
answered on 02 Mar 2009, 01:40 PM
If you get the error "The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)", you properly are missing (as the error says) the reference.

Try to add a new reference and browse you to "C:\Program Files\Telerik\RadControls for ASPNET AJAX Q3 2008\Bin" (maybe Bin35), where you can find the "Telerik.Web.UI.dll".

Hope it solved your problem! :o)
0
rajesh
Top achievements
Rank 1
answered on 08 Jun 2010, 11:01 PM
Hi,

am also getting the namespace error.  the suggesion says to include telerik.web.ui.dll, but i don't hve the dll.  i ran the install "RadControls_Q1_2008_dev.exe".  after installation if i go to "C:\Program Files\Telerik\RadControls for ASP.NET Q1 2008\NET2\bin", i don't see telerik.web.ui.dll.  i only see DictionaryConfiguration.NET2.dll and Telerik.QuickStart.dll.  if i add reference to both these dlls i don't see the error going.

Questions

1. Where can i find the telerik.web.ui dll.  i don't see it in the zip file "RadControls_Q1_2008_dev_hotfix".
2. Am able to see the RAD controls in toolbox.  shuld i add explicit reference to Rad*.dlls from C:\Program Files\Telerik\RadControls for ASP.NET Q1 2008\NET2\bin for the application to work.

please help.

Regards,
Rajesh
0
Pero
Telerik team
answered on 10 Jun 2010, 03:39 PM
Hi Rajesh,

The Telerik.Web.UI.dll library comes with RadControls for ASP.NET AJAX. I believe you have installed the classic version of the RadControls, i.e. RadControls for ASP.NET, and that's why you can't find the Telerik.Web.UI.dll.

Please install RadControls for ASP.NET AJAX, and the problem should disappear.


Greetings,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Dock
Asked by
Valeri Hristov
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Dave
Top achievements
Rank 1
Petya
Telerik team
LeBear
Top achievements
Rank 1
talha
Top achievements
Rank 1
Ram Manthena
Top achievements
Rank 1
Guy
Top achievements
Rank 1
Martin Beeby
Top achievements
Rank 1
AECLDEV
Top achievements
Rank 1
Guy
Top achievements
Rank 1
Kia
Top achievements
Rank 1
Ahrensberg
Top achievements
Rank 1
rajesh
Top achievements
Rank 1
Pero
Telerik team
Share this question
or