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

Get Selected Resource in Advanced Form

4 Answers 59 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 17 May 2010, 06:36 AM
Hi,

I must be missing something in one of these exapmles but I can't work this out.

I have built a custom provider which is working fine. I have the advanced edit forms set up and working. What I need to be able to do is to get the selected resource, in my case a room id when the advanced edit/insert form is opened and then with that ID select a subset of data to populate the custom attributes with.

So for a selected room there is a set of available resources that you can select from. But I can't seem to capture this room ID anywhere so that I can do the query.

Surely this is very simple? Can you point me in the right direction?

Thanks.

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 17 May 2010, 03:18 PM
Hello Adam,

You can find controls in the advanced form by handling FormCreated as explained in this kb article:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-access-controls-in-the-advanced-form.aspx

Let me know if you have more questions.

Greetings,
Peter
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
Jacob
Top achievements
Rank 1
answered on 18 May 2010, 12:24 AM
Hi Peter,

No, for some reason that does not work. I get a null reference. I am using nested master pages so I don't know if that will effect anything. I imagine it would. I tried wiring it up through a reference to the master object bit it still fails.

I have worked it out using the result of a call to GetResourceByType from Appointment.Resources. This returns the ID of the currently selected resource which seems to work quite well.

I have discovered another problem however. I have wired up the Advanced controls as I mentioned previously however none of the validation is working. I have added the ScriptReference into my RadScriptManager on the master page.
Does this work with Master Pages? I view source and the code is correctly injected into the page:

<script src="Interface/JS/AdvancedForm.js" type="text/javascript"></script>

I can browse to the object indicated in the path but it does not do anything. Thanks.
0
Peter
Telerik team
answered on 20 May 2010, 03:24 PM
Hello Adam,

Can you open a support ticket and send us a simple working demo of the issue? Using a master page should not cause problems for this case, but I am not sure how exactly you implement nested master pages.


Greetings,
Peter
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
Jacob
Top achievements
Rank 1
answered on 21 May 2010, 02:08 AM
OK will do.
Thanks.
Tags
Scheduler
Asked by
Jacob
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jacob
Top achievements
Rank 1
Share this question
or