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

Can I Programatically open a WebUserControl

2 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael Hurse
Top achievements
Rank 1
Michael Hurse asked on 30 Apr 2010, 05:54 AM
Hi
I have a radgrid which opens a .ascx page to edit or add items. The settings to do this from the grid are copied below. The grid holds appointments. I have a separate aspx page with a radgrid that hols a waitlist. I have been able to code a solution so that when an item in the the waitlist grid is edited to say 'create appointment and close waitlist item', I open the Appointment.aspx page with the grid below. What I have not been able to do is then programatically open the ActivePatientAppointmenControl.ascx page so I can pass details to create a new appointment.  At the moment this has to be done manually. Is there a way I can do this with code?
thx kindly
M

Radgrid settings on Appointment.aspx

 

<MasterTableView CommandItemDisplay="Top" EditMode="PopUp">

 



<

 

EditFormSettings EditFormType="WebUserControl" UserControlName="ActivePatientAppointmentControl.ascx">

 

 

<PopUpSettings Height="420px" Width="700px" Modal="True" ZIndex="2500" />

 

 

</EditFormSettings>

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 05 May 2010, 08:52 AM
Hi Michael Hurse,

Presently, this setup cannot pass additional argument.
However, if this is what you are looking to achieve, you can take an approach similar to this one:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

It uses some additional code to setup the arguments passed to the window.
I hope this suggestion helps.

All the best,
Yavor
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.
0
Michael Hurse
Top achievements
Rank 1
answered on 05 May 2010, 11:16 PM
Thx Yavor
Tags
General Discussions
Asked by
Michael Hurse
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Michael Hurse
Top achievements
Rank 1
Share this question
or