<
CommandItemTemplate>
<div class="commandItemButtons">
<asp:LinkButton ID="addButton" runat="server" CommandName="InitInsert">
<img class="padding" alt="Add Acronym" src="../App_Themes/Default/TelerikControls/Grid/add.png" />Add Acronym</asp:LinkButton>
</div>
</CommandItemTemplate>
C#:
//Makes a reference to the addButton on the Page
LinkButton addButton = (WebUtilities.FindControl(acronymRadGrid, "addButton") as LinkButton) ;
//Administrators get to see all of the columns as well as the add button
if (WebUtilities.IsAdmin(User)) {
addButton.Visible =
true;
foreach (GridColumn column in acronymRadGrid.Columns) {
column.Visible =
true;
}
}
//Regular users only get to see the Acronym and Description columns
else {
addButton.Visible =
false;
foreach (GridColumn column in acronymRadGrid.Columns) {
if (column.HeaderText != "Acronym" && column.HeaderText != "Description") {
column.Visible =
false;
}
}
}
Thanks,
-Mike
<
div id="scheduler">
<telerik:RadScheduler ID="RadScheduler1" runat="server" Width="100%"
AllowDelete="False" SelectedView="WeekView" DayStartTime="07:00:00" DayEndTime="18:00:00"
CustomAttributeNames="aptType,Description,number,name,phone,adresse,city,visitType,EnvisagedDate,AllowedMovePast,AllowedMoveFuture,Priority,isFinished,siteId,siteDescription,unAvailabilityType,unAvailabilityDesc,isCanceled,FromOldPlanVersion,ManuelCreation"
EnableCustomAttributeEditing="True" StartInFullTime="False" AllowInsert="False"
EnableAdvancedForm="False" OnClientAppointmentEditing="AppointmentEditing"
OnClientAppointmentMoveEnd="OnClientAppointmentMovingEnd"
OnClientAppointmentMoving="OnClientAppointmentMoving"
OnClientAppointmentContextMenu="onAppointementContextMenu"
OnClientTimeSlotContextMenu="onTimeSlotContextMenu"
OnClientAppointmentResizeEnd="OnClientAppointmentResizeEnd"
OnClientAppointmentResizing="OnClientAppointmentResizing"
ShowAllDayRow="True" ShowFooter="True" Skin="Office2007"
EnableDatePicker="false"
meta:resourcekey="RadScheduler1Resource1" ShowFullTime="False" Height="503px" Culture="fr-CA">
</telerik:RadScheduler>
</div>
<
telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="140px" Height="100px" Position="BottomRight" Sticky="True" Text="Loading..."
ToolTipZoneID="scheduler" Skin="Office2007" ShowDelay="500"
meta:resourcekey="RadToolTipManager1Resource1" style="display: none; z-index:999">
</telerik:RadToolTipManager>
First time my calendar is displayed, this work good but when I navigate in sceduler, at bottom of this scheduler, It appears a div around Tooltipmanager. This div is visible and it is empty. This div is an TooltipmanagerPanel. I don't want to see this panel because display of my page is wrong
| <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="Web20" Width="230px" |
| ExpandMode="SingleExpandedItem" ExpandAnimation-Type="InOutSine" ExpandAnimation-Duration="300"> |
| <Items> |
| <telerik:RadPanelItem Text="MYTITLE"> |
| <Items> |
| <telerik:RadPanelItem> |
| <ItemTemplate> |
| <table border="0" cellpadding="0" cellspacing="0"> |
| <tr> |
| <td> |
| <p class="normal"> |
| MYTEXT BLABLA |
| </p> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| <telerik:RadPanelItem Text="MYTITLE 2"> |
| <Items> |
| <telerik:RadPanelItem> |
| <ItemTemplate> |
| <table border="0" cellpadding="0" cellspacing="0"> |
| <tr> |
| <td> |
| <p class="normal"> |
| MYTEXT 2 BLBABLABLA |
| </p> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelBar> |
| <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="Web20" Width="230px" |
| ExpandMode="SingleExpandedItem" ExpandAnimation-Type="InOutSine" ExpandAnimation-Duration="300"> |
| <Items> |
| <telerik:RadPanelItem> |
| <ItemTemplate> |
| <table border="0" cellpadding="0" cellspacing="0" width="230"> |
| <tr> |
| <td> |
| <p class="normal"> |
| <%# Container.DataItem("Text") %> |
| </p> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelBar> |
| For Each row As DataRow In dt.Rows |
| Dim topItem As New RadPanelItem |
| topItem.Text = row.Item("Title").ToString.Substring(0, 10) |
| topItem.Expanded = False |
| RadPanelBar1.Items.Add(topItem) |
| Dim subItem As New RadPanelItem |
| subItem.Text = row.Item("Text").ToString |
| subItem.Expanded = False |
| topItem.Items.Add(subItem) |
| Next |
attached radUploader tags
<telerik:RadUpload ID="RUAttach" runat="server" Skin="Web20" TargetFolder="Attachment"
Width="100%" />
<telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
<telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="True"
ProgressIndicators="TotalProgressBar, TotalProgress, RequestSize, FilesCountBar, FilesCount, SelectedFilesCount, CurrentFileName, TimeElapsed, TimeEstimated, TransferSpeed"
Skin="Web20">
</telerik:RadProgressArea>
and this is the method used to save attachments :
RadUploadContext uploadContext = RadUploadContext.Current;
foreach (UploadedFile file in RUAttach.UploadedFiles)
{
if (file != null)
{
file.SaveAs(Server.MapPath(
"~/MyFiles/" + file.GetName()));
}
}
the count files =0 in ( RUAttach.UploadedFiles)
thanks in advance
Mona

<
telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px" width="300px"> <asp:Label ID="Connections" runat="server" Text="0"></asp:Label> </telerik:RadAjaxPanel>
C# code :
Connections.text = "100";
I can't get this to work unless I do a postback which is obviously not what I want.
I know this will probably work if I have a timer event and do it in that, but don't want to use one.
Any help is much appreciated.
Regards,
Steve