| There are 2 <a href='#' onclick='$find("ctl00_ContentPlaceHolder1_RadGrid1_ctl00").expandItem(0);return false;'>comments</a> on this post. |
| <td class="rgExpandCol"><input type="button" name="ctl00$ContentPlaceHolder1$RadGrid1$ctl00$ctl04$ctl00" value=" " onclick="$find("ctl00_ContentPlaceHolder1_RadGrid1_ctl00")._toggleExpand(this, event); return false;__doPostBack('ctl00$ContentPlaceHolder1$RadGrid1$ctl00$ctl04$ctl00','')" title="Expand" class="rgExpand" /></td><td> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="ProjectGrid"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="ProjectGrid" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> |
| <telerik:RadSplitter ID="Splitter" runat="server" Orientation="Horizontal" width="100%"> |
| <telerik:RadPane ID="ProjectPane" runat="server" width="100%"> |
| <telerik:RadToolBar ID="ProjectToolBar" runat="server" width="100%"> |
| <Items> |
| <telerik:RadToolBarButton Text="My Projects" Font-Bold="True" Font-Size="16px" Font-Names="arial" Width="100%" /> |
| </Items> |
| </telerik:RadToolBar> |
| <telerik:radgrid ID="ProjectGrid" width="100%" runat="server" AllowSorting="true" OnNeedDataSource="ProjectGrid_NeedDataSource" AutoGenerateColumns="false" OnDetailTableDataBind="ProjectGrid_DetailTableDataBind" ShowStatusBar="True" AllowMultiRowSelect="false"> |
| <Clientsettings enablepostbackonrowclick="true"> |
| <Selecting AllowRowSelect="true" /> |
| </Clientsettings> |
| <MasterTableView width="100%" DataKeyNames="projectnumber" HierarchyLoadMode="ServerOnDemand"> |
| <DetailTables> |
| <telerik:GridTableView DataKeyNames="projectnumber" Name="ProjectDetails" width="100%"> |
| <Columns> |
| <telerik:GridBoundColumn HeaderText="Tasks" HeaderButtonType="TextButton" DataField="taskdesc" /> |
| </Columns> |
| </telerik:GridTableView> |
| </DetailTables> |
| <Columns> |
| <telerik:GridBoundColumn HeaderText="Project Number" DataField="projectnumber"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="Description" DataField="projectdesc"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="Printer Date" DataField="toprinterdate"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="CSR" DataField="fname" /> |
| </Columns> |
| </MasterTableView> |
| </telerik:radgrid> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
| Dim _ScriptManager As RadScriptManager |
| _ScriptManager = New RadScriptManager |
| _ScriptManager.ID = "ScriptManager" |
| _ScriptManager.EnablePageMethods = True |
| Form.Controls.AddAt(0, _ScriptManager) |
| If RadAjaxManager.GetCurrent(Me.Page) IsNot Nothing Then |
| AddHandler RadAjaxManager.GetCurrent(Me.Page).AjaxRequest, AddressOf HandledRadAjaxRequest |
| End If |
| End Sub |
When we apply CSS to rad slider control ,handle image is not showing fully for example in mouse over it showing middle part of the image from our image. While dragging up and down it showing up and down region of the image so we can’t use full image.
Attached image (scroll Behaviour.jpg) is the image behaviour at various stages, like when dragging top, dragging down and mouse over. We do not want three types of images. We need the same image during all times!!!!
Attached image (smallScroller.jpg) is the real scroll image that we are using currently and we want to use in RADSlider control for the scroll functionality.
We are using the RADSlider control and the CSS provided. Please help in finding the issue!!
Thanks.
<link href="App_Themes/myskin/Menu.myskin.css" rel="stylesheet" type="text/css" />
<link href="App_Themes/myskin/Calendar.myskin.css" rel="stylesheet" type="text/css" />
to my master page and everything worked. I didn't think I would need to do that for each RadControl I'd be using. That could get cumbersome. What am I doing wrong? What is the best practice for using custome skins? From the documentation I thought I was doing things the right way but that doesn't appear to work unless I register the css for each control.
Thanks
Mike


var
orgIdCell = rgUsers.MasterTableView.get_dataItems()[i].get_cell("OrgIDColumn");
| <telerik:RadCalendar ID="DiaryCal" runat="server" Font-Names="Arial,Verdana,Tahoma" |
| Skin="Office2007" |
| ForeColor="Black" |
| Style="border-color: #ececec" AutoPostBack="True" |
| CultureInfo="English (United Kingdom)" |
| EnableMultiSelect = "false" |
| OnSelectionChanged="DiaryCal_OnSelectionChanged" |
| OnDayRender="DiaryCal_DayRender" |
| ShowDayCellToolTips="false" |
| > |
| </telerik:RadCalendar> |
| <asp:Table ID="Table1" runat="server" CellSpacing="1" BorderWidth="0" Width="175"> |
| <asp:TableRow ID="TableRow1" runat="server" > |
| <asp:TableCell BackColor="#daf3cb" HorizontalAlign="Center" Width="25%" Height="8px"></asp:TableCell> |
| <asp:TableCell BackColor="#aade8a" HorizontalAlign="Center" Width="25%" Height="8px"></asp:TableCell> |
| <asp:TableCell BackColor="#6dc738" HorizontalAlign="Center" Width="25%" Height="8px"></asp:TableCell> |
| <asp:TableCell BackColor="#4e991f" HorizontalAlign="Center" Width="25%" Height="8px"></asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow ID="TableRow2" runat="server"> |
| <asp:TableCell HorizontalAlign="Center" Width="25%"> |
| <asp:Label ID="Label1" runat="server" Text="1-10" /> |
| </asp:TableCell> |
| <asp:TableCell HorizontalAlign="Center" Width="25%"> |
| <asp:Label ID="Label2" runat="server" Text="11-20" /> |
| </asp:TableCell> |
| <asp:TableCell HorizontalAlign="Center" Width="25%"> |
| <asp:Label ID="Label3" runat="server" Text="21-30" /> |
| </asp:TableCell> |
| <asp:TableCell HorizontalAlign="Center" Width="25%"> |
| <asp:Label ID="Label4" runat="server" Text="40+" /> |
| </asp:TableCell> |
| </asp:TableRow> |
| </asp:Table> |
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" ShowCallout="False" Skin="Office2007" style="display: none;" ShowDelay="0" />
|
| Protected Sub DiaryCal_DayRender(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs) |
| Dim cellID As String |
| cellID = String.Format("{0}_{1}_{2}", DiaryCal.ClientID, e.Day.[Date].ToString("yyyy_M_d"), 0) |
| If DiaryCounts IsNot Nothing Then |
| For Each diaryCount As Safe.CRM.DAL.BusinessObjects.DiaryCount In DiaryCounts ' contains a list of days and counts |
| If diaryCount.ActivityCompleteBy = e.Day.Date Then |
| Dim iCounts As Integer = diaryCount.Counts |
| If iCounts >= 1 And iCounts <= 10 Then |
| e.Cell.Style("background-color") = "#daf3cb" |
| ElseIf iCounts >= 11 And iCounts <= 20 Then |
| e.Cell.Style("background-color") = "#aade8a" |
| ElseIf iCounts >= 21 And iCounts <= 30 Then |
| e.Cell.Style("background-color") = "#6dc738" |
| ElseIf iCounts >= 31 Then |
| e.Cell.Style("background-color") = "#4e991f" |
| End If |
| cellID = String.Format("{0}_{1}_{2}", DiaryCal.ClientID, e.Day.[Date].ToString("yyyy_M_d"), iCounts) |
| Exit For |
| End If |
| Next |
| End If |
| e.Cell.Attributes.Add("id", cellID) |
| RadToolTipManager1.TargetControls.Add(cellID, True) |
| End Sub |
| Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate |
| ' get the event date from the cell id |
| Dim idParts As String() = e.TargetControlID.Split(New Char() {"_"c}) |
| Dim year As Integer = Int32.Parse(idParts(idParts.Length - 4)) |
| Dim month As Integer = Int32.Parse(idParts(idParts.Length - 3)) |
| Dim day As Integer = Int32.Parse(idParts(idParts.Length - 2)) |
| Dim eventDate As New DateTime(year, month, day) |
| Dim items As Integer = Int32.Parse(idParts(idParts.Length - 1)) |
| ' display the proper content based on the event date |
| Dim tooltipActivitesLabel As New Label() |
| Dim tooltipDateLabel As New Label() |
| Dim toolTipPanel As New Panel |
| If items = 0 Then |
| tooltipActivitesLabel.Text = "" |
| ElseIf items = 1 Then |
| tooltipActivitesLabel.Text = String.Format("{0} activity.", items) |
| Else |
| tooltipActivitesLabel.Text = String.Format("{0} activities.", items) |
| End If |
| tooltipDateLabel.Text = String.Format("{0}", eventDate.ToString(CType(DiaryCal, Telerik.Web.UI.RadCalendar).DayCellToolTipFormat)) |
| If tooltipActivitesLabel.Text <> "" Then |
| toolTipPanel.Controls.Add(tooltipActivitesLabel) |
| toolTipPanel.Controls.Add(New LiteralControl("<br />")) |
| End If |
| toolTipPanel.Controls.Add(tooltipDateLabel) |
| toolTipPanel.HorizontalAlign = HorizontalAlign.Center |
| e.UpdatePanel.ContentTemplateContainer.Controls.Add(toolTipPanel) |
| End Sub |