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

[Solved] Moving the recurrence panel

3 Answers 111 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 27 Jan 2010, 03:25 PM
I'm putting an Advance Form together and need to put the recurrence panel on a new tab (the form already has a tabstrip).

Am I right in thinking that the visibility of the recurrence panel and the magic that takes place when you select the various options is all hidden in the AdvancedForm.js file?

How badly will I have to break the existing code to get the recurrence tab to work? Will I be able to get it to work at all?

--
Stuart

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 Jan 2010, 04:29 PM
Hello Stuart,

If you intend to keep the recurrence controls on the same advanced insert/edit form, then visually changing it to be under a tab control should not affect its functionality. Let us know if you experience any problems in particular.

All the best,
Peter
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
Stuart Hemming
Top achievements
Rank 2
answered on 01 Feb 2010, 03:41 PM
Peter,

I know I'm going to have to take some time out and learn how to use jQuery, but I'd really appreciate a pointer in the right direction with this.

I want to modify AdvancedForm.js so that when the 'recurrence' checkbox is checked a tab on the tabstrip is hidden/shown as appropriate. I know where to put the code and I know what I want to put in, but I'm struggling. Normally, I'd write something like
var ts = $find("<%= TabStrip.ClientID %>"); 
ts.findTabByText("Recurrence").set_visible(... 

But I can't do this 'cos its not an ASP page.

How do I find a telerik object in this code?

I've used ...
var ts = $("#" + this._template + "_AdvTabStrip"); 

and whilst this does find something sadly, it's not a seen as a TabStrip object.

Help! Please!

--
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 01 Feb 2010, 05:19 PM
Ha!

Sorted it.

var ts = $find(this._templateId + "_AdvTabStrip");

Now we're cooking.

--
Stuart
Tags
Scheduler
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Peter
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or