It seems that I cannot find the answer to what I need to do with the Scheduler in the documentation and online, but I would imagine it’s been done many times. We keep a list of tasks for each user and we want to associate the tasks with appointments (sometimes). I have a table of Tasks with the PK being TaskID type Int. I also have an Appointment table with one of the fields called TaskID so it can have the ability to link back to the Tasks; its type is also Int. I don’t want to use the resources and show the users the tasks to select from , instead they will select that from a grid outside the scheduler. The idea now is to intercept the Insert operation and add the TaskID to the appointment. How do I do that? (by the way, I use Object Datasource and VB)
Thanks for all the help.
-Sam

| <Items><telerik:RadMenuItem Text="Download" Value="1" > |
| <Items> |
| <telerik:RadMenuItem Text="Download File" Value="1" NavigateUrl='<%# BuildDownloadUrl(Bind("Gui")) %>'></telerik:RadMenuItem> |
| <telerik:RadMenuItem Text="Have a question about file?" Value="2"></telerik:RadMenuItem> |
| </Items> |
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadCodeBlock runat="server">
<script type="text/javascript">
function ImageManagerFunction(sender, args)
{
var selectedItem = args.SelectedItem;
var logo = $get('<%= imgLogo.ClientID %>');
var lbl = $get('<%= lblImageFileName.ClientID %>');
logo.src = selectedItem.getPath();
lbl.innerText = selectedItem.getPath();
}
//This code is used to provide a reference to the radwindow "wrapper"
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)
return oWindow;
}
function CloseWindow()
{
GetRadWindow().close();
}
</script>
</telerik:RadCodeBlock>
<telerik:DialogOpener runat="server" ID="doLogo">
</telerik:DialogOpener>
<div style="height: 100px">
<div style="float: left; width: 280px; padding: 2px;">
<b style="width: 70px; float: left">
Brand ID:</b>
<asp:Label ID="lblBrandID" runat="server" Text='<%# Eval("BrandID") %>' /><br />
<b style="width: 70px; float: left">
Name:</b>
<asp:TextBox ID="tbxBrandName" runat="server" Text='<%# Bind("BrandName") %>'
Width="140px" MaxLength="255" /><br />
<b style="width: 70px; float: left">
Active:</b>
<asp:CheckBox ID="chbActiveCheckBox" Width="40px" Checked='<%# Bind("Active") %>'
runat="server" />
</div>
<div style="padding: 2px;">
<b>
Logo:</b><br />
<asp:Image ID="imgLogo" runat="server" />
<%-- <span style="display: none">--%>
<asp:Label ID="lblImageFileName" runat="server" />
<%-- </span>--%>
<br />
<asp:LinkButton ID="lnkGetImage" runat="server" Text="Select/Insert Logo" />
</div>
</div>
<div style="padding: 2px; width: 380px; clear: both; margin-top: 20px">
<telerik:RadTabStrip ID="ts1" runat="server" Skin="Telerik" MultiPageID="mpage1"
SelectedIndex="0">
<Tabs>
<telerik:RadTab runat="server" Text="Default Short Description">
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Default Long Description" Selected="True">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="mpage1" runat="server" SelectedIndex="0">
<telerik:RadPageView ID="pvShort" runat="server">
<telerik:RadEditor ID="editorDefaultShortDesc" runat="server" Skin="Vista"
ToolsFile="~/Common/CustomizedRadXML/ToolsFile2.xml" EditModes="Design">
<ImageManager SearchPatterns="*.gif,*.jpg" MaxUploadFileSize="20000" EnableImageEditor="false" />
<FlashManager SearchPatterns="*.swf" MaxUploadFileSize="20000" />
<DocumentManager SearchPatterns="*.pdf,*.doc" />
<Content>
</Content>
</telerik:RadEditor>
</telerik:RadPageView>
<telerik:RadPageView ID="pvLong" runat="server">
<telerik:RadEditor ID="editorDefaultLongDesc" runat="server" Skin="Vista"
ToolsFile="~/Common/CustomizedRadXML/ToolsFile2.xml" EditModes="Design">
<ImageManager SearchPatterns="*.gif,*.jpg" MaxUploadFileSize="20000" EnableImageEditor="false" />
<FlashManager SearchPatterns="*.swf" MaxUploadFileSize="20000" />
<DocumentManager SearchPatterns="*.pdf,*.doc" />
<Content>
</Content>
</telerik:RadEditor>
</telerik:RadPageView>
</telerik:RadMultiPage>
</div>
<asp:Button ID="btnSave" Text="OK - Save" runat="server" />
<asp:Button ID="btnCancel" Text="Canel" OnClientClick="CloseWindow()" runat="server" />
<asp:Label ID="lblInjectionScript" runat="server" />
</form>