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

Integration with asp.net application.

5 Answers 115 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Amruta
Top achievements
Rank 1
Amruta asked on 10 Dec 2009, 12:48 PM
Hi,

I am new to silverlight.
I want to develop a reusable user control in silverlight by using docking rad control. (Basically i want to use a sliding panel type control which will have other controls on it. I should be able to hide it as well as move it to some other place on the form.)
Then I want to develop an asp.net web application which will use this silverlight user control.
Also i want to perform various operations using the various controls on the panel.

Can anybody please suggest me how i can achieve it?

Thanks & Regards

5 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 14 Dec 2009, 09:36 AM
Hello Amruta,

 If you want to move parts of the Silverlight control around in the ASP.NET page - you cannot do this. If you would like just to have part of the page, that is a Silverlight control and allows you to move and dock some windows, but only into the Silverlight - you can do this with the Docking control for Silverlight.

Could you please give some more details on your scenario and we would able to better assist you in achieving your goal.


All the best,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Amruta
Top achievements
Rank 1
answered on 14 Dec 2009, 09:49 AM
Hello,

Thanks for your reply.
I will try to explain the scenario.
I want to develop a web application in which i want to use a panel (a panel which will act like a sliding panel as well as we can drag and drop it in the window to some other place.). As you have mentioned i have used a docking control from rad controls for silverlight. Also, i need to place various controls on this panel (eg. Text boxes , Tree Views , Buttons etc.). 
Now, I am trying to estabilish a communication between my asp.net application and this silverlight control. (Eg. Suppose i have a button on my aspx page. and a sliding panel having a tree view (a silverlight control.) now i want to populate the tree view with some values from the database on the button click.)
As we can not use the silverlight control directly at sever side. I need some help in communicating between the silverlight and asp.net control.
I am trying to communicate by using http web request but having no luck yet.
Can you please help?
0
Miroslav Nedyalkov
Telerik team
answered on 15 Dec 2009, 12:41 PM
Hi Amruta,

You cannot directly to communicate between the ASP.NET controls and the Silverlight, because the Silverlight controls 'live' on the client's machine and the ASP.NET control are rendered on the server. You have two options here:

- you could communicate between the client-side part of the ASP.NET controls using JavaScript and Silverlight JavaScript interoperability. If you choose to use this you check the following articles: http://silverlightedweb.blogspot.com/2008/05/what-is-scriptobject.html, http://silverlightedweb.blogspot.com/2008/05/silverlight-javascript-communication.html, http://silverlightedweb.blogspot.com/2008/05/silverlight-javascript-communication_08.html

- you could also use a WebService to communicate with your back-end.

What approach you are going to use depends on the requirements you have. If you have further questions, don't hesitate to ask.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Amruta
Top achievements
Rank 1
answered on 15 Dec 2009, 12:54 PM
Hello Miroslav,

It was a really great help. Thanks.

I would prefer using web service to communicate with backend.

Now I am trying to build a test application where i have a "Category" textbox and a "Search" button. When i click on the "Search" button i want to retrieve all the records from the database (There will be a table called "ProductDetails" having one of the columns as "Category" ) matching the "Category" column.
I want to display these matching Categories in a treeview such that it will have a node as "Category".

I am also working on how to display a progress bar like indicator while searching the records. I dont want to use a progress bar control as i dont know how the search will be progressed as it will be a web method which will bring the search results. Instead i want to use an animated gif. As per my knowledge silverlight do not support Gif.

Please can you guide me to achieve this result.

Thanks & Regards
Amruta.
0
Miroslav Nedyalkov
Telerik team
answered on 15 Dec 2009, 01:10 PM
Hello Amruta,

 You are right that Silverlight doesn't support gif files, but there are a series of ways you could create an animation. I would suggest you to take a look at the RadProgressBar control here http://demos.telerik.com/silverlight/#ProgressBar/FirstLook and to check the IsIndetermined option at the top right side - it turns into an undetermined progress bar. 

Another approach would be to use Storyboards to create an animation with XAML.

Hope this helps.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Docking
Asked by
Amruta
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Amruta
Top achievements
Rank 1
Share this question
or