protected void rg_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.ExportToExcelCommandName)
{
rg.MasterTableView.GetColumn("x").Visible = false;
rg.MasterTableView.GetColumn("y").Visible = true; }
}
I am evaluating the RAD Scheduler for possible purchase and I’m trying to implement a solution where an Exchange 2007 server would be the primary data source for the scheduler. I have been able to pull in my own mailbox and add, update and delete items just fine but I also need to be able to do this for other users in the organization. Back in April 2009 another user posted the following thread
“How do I get it to work with public folders or to load another user's calendar (to which the logged in user has access rights in Exchange)? The provider only takes a username, password, and domain along with the server URL. I don't see how to specify a particular folder or path. Looking at Telerik's source code for the Exchange provider, I do see that the DistinguishedFolderIdNameType enumerated date type includes an option for publicfoldersroot, but it doesn't appear to be used anywhere.
Similarly, I'd also like User A, who has access rights to User B's calendar, to be able to do so, but, again, I don't see where I can specify the alternate calendar location.”
Teleriks response was as follows:
“The FindCalendarItems method currently queries only the authenticated users calendar:
DistinguishedFolderIdType[] folderIDArray = new DistinguishedFolderIdType[1];
folderIDArray[0] = new DistinguishedFolderIdType();
folderIDArray[0].Id = DistinguishedFolderIdNameType.calendar;
findItemRequest.ParentFolderIds = folderIDArray;
We can other calendars here as well:
// Identify which folders to search.
List<DistinguishedFolderIdType> folderIDs = new List<DistinguishedFolderIdType>();
DistinguishedFolderIdType ownCalendar = new DistinguishedFolderIdType();
ownCalendar.Id = DistinguishedFolderIdNameType.calendar;
folderIDs.Add(ownCalendar);
DistinguishedFolderIdType otherCalendar = new DistinguishedFolderIdType();
otherCalendar.Id = DistinguishedFolderIdNameType.calendar;
EmailAddressType otherMailbox = new EmailAddressType();
otherMailbox.EmailAddress = "other.user@contoso.com";
otherCalendar.Mailbox = otherMailbox;
folderIDs.Add(otherCalendar);
findItemRequest.ParentFolderIds = folderIDs.ToArray();”
I’ve tried implementing this code but still cannot see any other users on the scheduler. Is there any other examples or documentation that could help me out here?
<
telerik:GridTemplateColumn
UniqueName
=
"gridActStart"
HeaderText
=
"Actual Start"
AllowFiltering
=
"false"
ItemStyle-HorizontalAlign
=
"Center"
><
br
>
<
ItemTemplate
><
br
>
<
telerik:RadDatePicker
ID
=
"actstart"
runat
=
"server"
MaxDate='<%#If((Eval("early_start_display") IsNot DBNull.Value), Convert.ToDateTime(Eval("early_start_display")), CType("10/10/2011", System.Nullable(Of DateTime))) %>'
Width="100px" Calendar-ShowOtherMonthsDays="false"
Calendar-ShowRowHeaders="false" DbSelectedDate='<%# Bind("actual_start") %>' DateInput-DateFormat="MM/dd/yyyy">
</
telerik:RadDatePicker
><
br
>
</
ItemTemplate
><
br
>
</
telerik:GridTemplateColu
mn>
<
table
id
=
"tblEditPopup"
style
=
"width:100%; height:100%"
>
<
tr
id
=
"trProduct"
>
<
td
align
=
"right"
>
Select Product:
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"cboxCustomers"
runat
=
"server"
AutoPostBack
=
"true"
>
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"Select Product"
/>
<
telerik:RadComboBoxItem
Text
=
"Apple"
Value
=
"Apple"
/>
<
telerik:RadComboBoxItem
Text
=
"Bananas"
Value
=
"Bananas"
/>
</
Items
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
id
=
"trService"
style
=
"display:none"
>
<
td
align
=
"right"
>
Select Service:
</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"cboxServices"
runat
=
"server"
AutoPostBack
=
"true"
>
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"Select Service"
/>
<
telerik:RadComboBoxItem
Text
=
"Deliver Home"
Value
=
"Delivery"
/>
<
telerik:RadComboBoxItem
Text
=
"Order By Mail"
Value
=
"Mail"
/>
</
Items
>
<
telerik:RadComboBox
>
</
td
>
</
tr
>
<tr>
<td>
<button id="BtnService" onclick="toggle()" >Choose Service</button>
</td>
</tr>
</
table
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function toggle() {
$('#trProduct').css('display', 'none');
$('#trService').css('display', 'block');
}
</
script
>
</
telerik:RadCodeBlock
>
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
|