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

Dynamic Dock with Dynamic web user control.

3 Answers 155 Views
Dock
This is a migrated thread and some comments may be shown as answers.
ankit
Top achievements
Rank 1
ankit asked on 29 May 2008, 06:39 PM
Hello,

I am tring to create web site sample like drag and drop and i am using Rad Dock control.....

I am using PortalCS sample given by telerick that load dock dynamically and then load webusercontrol into dynamically created dock.

I have one webusercontrol that has Bar Chart (RadChart). When i click on bar RadChart1_Click event is not fire.

I want to handle this click event.

Again Dock and WebUsercontrol is created dynamically.

Thanks in advance for any kind of help.

3 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 30 May 2008, 11:29 AM
Hello Ankit,

Please, find attached an example demonstrating dynamically loading a UserControl with RadChart inside and when the RadChart is clicked its RadChart1_Click event is fired. Take a look at the attached example and let me know in case you need further assistance.

Greetings,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ankit
Top achievements
Rank 1
answered on 03 Jun 2008, 12:37 PM
hello Sophy,
Thank you very much.
That example is simple and easy to understand.

One more simple question...

I want to open a new window when user click on one of the bar (chart) and i need to pass the scale. I have a chart with the time scale 12 to 1, 1 to 2 etc....
when user click on 12 to 1 scale i need to pass date and time to new page so i can popluate detail information between that period and display into grid or other control..

I have a write a code that open a new window as follow,
string url = "Widgets/test.aspx";
string script = "window.open('" + url + "');";
Page page = (Page)Context.Handler;
ScriptManager.RegisterStartupScript(page, typeof(Page), "RedirectTo", script, true);

Do you have any better solution to open a new window and pass scale as a parameter.
Also i need to handle similar scenerio with grid.

If it possible then please give me this two sample...

My company is agree to buy this RadControls for Asp.NEt Ajax and win control.
I am doing final testing on above scenerio which is very important in our next project.

Plase give me some advise or sample....

Thanks
Ankit

0
Sophy
Telerik team
answered on 06 Jun 2008, 07:57 AM
Hello Ankit,

If you want to pass values to a new window you can either pass them with javascript or set them as parameters in the query string depending on the requirements of your scenario. Regarding getting values at RadChart Click, I suggest you use this online example for reference.
If the above suggestions cannnot help you solve the issue, please, send us a simple running application which demonstrates your scenario, your current implementation and the problems you experience. You will need to open a support ticket in order to have the right to attach files. For your convenience I have attached a screenshot with instructions how to open a support ticket. I would like to also ask you describe in details what you want to achieve and what are the difficulties you encounter. We will be glad to help you.

All the best,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
ankit
Top achievements
Rank 1
Answers by
Sophy
Telerik team
ankit
Top achievements
Rank 1
Share this question
or