or
<asp:Content ID="Content1" ContentPlaceHolderID="VSContentPlaceHolder" Runat="Server"><telerik:RadScriptManager ID="RadScriptManager1" runat="server" ></telerik:RadScriptManager><telerik:RadCodeBlock ID="EventsRCodBlo" runat="server"> <script type="text/javascript"> window.onload = firstLoad; function firstLoad() { setDivHeight(); //alert(isPostBack()); } function selTreLstChange(sender, args) { var treelist = $find("<%=PersonnelAssignedRTreLst.ClientID%>"); var items = treelist.get_selectedItems(); var count = items.length; if (count > 0) { var item = items[0]; var nodetype = item.get_element().getAttribute("typeofnode"); var perid = item.get_element().getAttribute("perid"); var AuxQualifiedHid = document.getElementById("<%=SelQualHidFie.ClientID%>"); AuxQualifiedHid.value = nodetype; var AuxPersAsIDHid = document.getElementById("<%=PersAsIDHidFie.ClientID%>"); AuxPersAsIDHid.value = perid; var index = item.get_hierarchicalIndex(); $find("<%=MainRAjaPan.ClientID %>").ajaxRequest("PersTypeChanged"); } } function selBut(sender, args) { var toolBar = sender; var button = args.get_item(); var command = button.get_commandName(); if (command == 'Save') { //Save logic } } function setDivHeight(sender,args) { //Set height from divs } </script> </telerik:RadCodeBlock><telerik:RadToolBar ID="MainToolBar" runat="server" Width="100%" OnClientButtonClicking="selBut" OnButtonClick="MainToolBar_ButtonClick"> <Items> <telerik:RadToolBarButton runat="server" CommandName="Back" CommandArgument="Back" Text="Back" ImageUrl="~/VS/Images/textbox/post_button_undo.gif" NavigateUrl="javascript:cancel();" ToolTip="Back" PostBack="false" > </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" CommandName="Save" CommandArgument="Save" Text="Save Changes" Visible="true" ImageUrl="~/VS/Images/color/16/0040-save.gif" ToolTip="Save Changes" > </telerik:RadToolBarButton> <telerik:RadToolBarButton runat="server" CommandName="Add" CommandArgument="Add" Text="Add Per" ImageUrl="" ToolTip="Add" PostBack="true" Visible="true"> </telerik:RadToolBarButton> </Items> </telerik:RadToolBar><telerik:RadAjaxLoadingPanel ID="MainLoaPan" runat="server"></telerik:RadAjaxLoadingPanel><telerik:RadAjaxPanel ID="MainRAjaPan" runat="server" LoadingPanelID="MainLoaPan" ClientEvents-OnResponseEnd="setDivHeight"> <div id="LeftUDiv" runat="server" style="width: 49.5%; height: 100%; float:left; overflow:hidden; border-spacing:inherit; border: 1px solid #aaaaaa; background-color:#FFFFFF;"><div id="LeftU1Div" runat="server" style="width: 100%;height: 45%; position: relative; overflow: auto; background-color:#FFFFFF;"> <%--Tasks RadGrid--%> <telerik:RadGrid ID="TasksRGriVie" runat="server" AutoGenerateColumns="false" AllowMultiRowSelection="false" OnSelectedIndexChanged="TasksRGriVie_SelectedIndexChanged" OnPreRender="TasksRGriVie_PreRender" OnItemDataBound="TasksRGriVie_ItemDataBound"> <MasterTableView DataKeyNames="taskID" ClientDataKeyNames="taskID" ShowHeader="false" Width="99%"> <Columns> <telerik:GridBoundColumn DataField="PIBCID" Visible="false" HeaderText="PIBCID" ItemStyle-Font-Size="Smaller"></telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="FVRItemID" Visible="false" HeaderText="FVRItemID" ItemStyle-Font-Size="Smaller"></telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings EnablePostBackOnRowClick="true"> <Selecting AllowRowSelect="true" /> </ClientSettings> </telerik:RadGrid> </div> <div id="LeftU2Div" runat="server" style="width: 100%;height: 45%; position: relative; overflow: auto; background-color:#FFFFFF;"> <%--Personnel Assigned RadTreeList --%> <telerik:RadTreeList ID="PersonnelAssignedRTreLst" runat="server" DataKeyNames="ID" ParentDataKeyNames="parent" OnNeedDataSource="PersonnelAssignedRTreLst_NeedDataSource" AutoGenerateColumns="false" AllowMultiItemSelection="false" GridLines="None" ShowTreeLines="false" Width="100%" Height="99%" OnItemDataBound="PersonnelAssignedRTreLst_ItemDataBound" OnItemCommand="PersonnelAssignedRTreLst_ItemCommand" OnItemCreated="PersonnelAssignedRTreLst_ItemCreated" OnPreRender="PersonnelAssignedRTreLst_PreRender" > <Columns> <telerik:TreeListBoundColumn DataField="CandidateID" UniqueName="rTreeLstPersAsColCandID" Visible="true" ItemStyle-Font-Size="Smaller"> </telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="Desc" UniqueName="rTreeLstPersAsColName" Visible="true" ItemStyle-Font-Size="Smaller"> </telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="QualDesc" UniqueName="rTreeLstPersAsColExp" Visible="true" ItemStyle-Font-Size="Smaller"> </telerik:TreeListBoundColumn> </Columns> <ClientSettings Selecting-AllowItemSelection="true"> <ClientEvents OnItemSelected="selTreLstChange" /> </ClientSettings> </telerik:RadTreeList> </div> </div><div id="RightUDiv" runat="server" style="width: 50%; height: 100%; float:right; overflow:hidden; border-spacing:inherit; border: 1px solid #aaaaaa; background-color:#FFFFFF;"> <%--Personnel To Assign RadGrid --%> <telerik:RadGrid ID="PersonnelToAssignRGriVie" runat="server" AutoGenerateColumns="false" AllowMultiRowSelection="false" OnPreRender="PersonnelToAssignRGriVie_PreRender" AllowSorting="true" OnSortCommand="PersonnelToAssignRGriVie_SortCommand" OnItemDataBound="PersonnelToAssignRGriVie_ItemDataBound"> <MasterTableView DataKeyNames="ID,UniqueID" ClientDataKeyNames="ID" TableLayout="Auto" Width="100%"> <NoRecordsTemplate> No Records to display </NoRecordsTemplate> <Columns> <telerik:GridTemplateColumn UniqueName="Selectcol" HeaderStyle-Width="100px" ItemStyle-Width="80px"> <HeaderTemplate> <telerik:RadButton ID="PersonnelAddRBtn" CommandName="PersonnelAddRBtn" CommandArgument="PersonnelAddRBtn" runat="server" Text='' Visible="true" Width="95px" > </telerik:RadButton> </HeaderTemplate> <ItemTemplate> <asp:Image ID="imgTrain" ToolTip="Requires Training" runat="server" Visible="false" ImageUrl="~/VS/Images/icon_emark1.gif" Width="10" Height="10" onclick="openTrainingInfo(this);" /> <asp:CheckBox ID="chkSelPersonnel" runat="server" Visible="true" onclick="checkSpan(this);" /> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="CandidateID" AllowSorting="true" HeaderText="Candidate ID" UniqueName="CandidateIDCol" SortExpression="CandidateID" ItemStyle-Font-Size="Smaller"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Desc" AllowSorting="true" HeaderText="Name" UniqueName="NameCol" SortExpression="Desc" ItemStyle-Font-Size="Smaller"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CompName" AllowSorting="true" HeaderText="Company" UniqueName="CompNameCol" SortExpression="CompName" ItemStyle-Font-Size="Smaller"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="QualDesc" AllowSorting="true" HeaderText="Qualified" UniqueName="QualDescCol" SortExpression="QualDesc" ItemStyle-Font-Size="Smaller"> </telerik:GridBoundColumn> </Columns> </MasterTableView> <SortingSettings EnableSkinSortStyles="false" /> <ClientSettings> <Selecting AllowRowSelect="false" /> <Resizing AllowColumnResize="false" /> <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" /> </ClientSettings> </telerik:RadGrid> </div></telerik:RadAjaxPanel>Protected Sub TasksRGriVie_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Dim AuxTaskId As Integer If TasksRGriVie.SelectedItems.Count > 0 Then Dim item As GridDataItem = TasksRGriVie.SelectedItems(0) AuxTaskId = CInt(item.GetDataKeyValue("taskID")) LoadTaskDetails(AuxTaskId) End If End SubSub LoadTaskDetails(ByVal selTaskID As Integer) If TasksRGriVie.Items.Count > 0 Then Dim auxQual As Integer = CInt(Me.SelQualHidFie.Value) Dim curContractor As Integer = Session("CompanyID") Dim objtask As OQCrewItem = listTask.Find(Function(c) c.taskID = selTaskID) 'Loads the list view with the current personnal Dim ListPerAs As New List(Of OQCrewPersonnel) 'Getting data from the view state If selTaskID > 0 Then 'listTask a property that gets data from viewState('listtask') ListPerAs = listTask.Find(Function(c) c.taskID = selTaskID).personnel PersonnelAssignedRTreLst.DataSource = ListPerAs.Where(Function(c) c.statusID = 1).OrderByDescending(Function(c) c.lastName).ToList() End If 'Gets list of personnel Dim listAvailablePer = OQProjectBL.GetAvailableCrewPersonnel() Dim list = listAvailablePer.Where(Function(c) c.qualified = "Yes").OrderBy(Function(c1) c1.lastName).ToList() PersonnelToAssignRGriVie.DataSource = list PersonnelToAssignRGriVie.DataBind() End If End Sub
<telerik:RadRotator ID="RadRotator1" runat="server" Width="900px" Height="300" ItemWidth="450px"ItemHeight="300" ScrollDuration="500" RotatorType="Buttons" OnDataBound="RadRotator1_DataBound"OnClientItemShown="OnClientItemShown"> <ItemTemplate> <uc1:Component ID="Component0" runat="server"></uc1:Component> </ItemTemplate> <ControlButtons LeftButtonID="leftArrow" RightButtonID="rightArrow" /></telerik:RadRotator><telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" HideEvent="LeaveToolTip" Width="800" Height="400" runat="server" EnableShadow="true" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="BrowserWindow" Position="TopCenter" BackColor="#D6D6D6" ShowEvent="OnClick" Modal="True" ManualCloseButtonText="Cerrar" Skin="Default" ManualClose="True" AutoCloseDelay="2000000" > <TargetControls> <telerik:ToolTipTargetControl IsClientID="False" TargetControlID="btnVer" Value="" /> </TargetControls> </telerik:RadToolTipManager><asp:LinkButton ID="btnVer" runat="server" > <img id="Img1" alt="" src="~/Imagenes/Botones/btn_ver_anuncio.png" runat="server" border="0" /> </asp:LinkButton>
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { RadGrid1.DataSource = applicationProcess.SelectLocations(); RadGrid1.DataBind(); }}I got this RadCalendar in my aspx page with three calendars stacked up vertically. I am binding some scheduling data to these three mini calendars and would like to limit the data to only the date’s show on the mini calendar. I wonder if there is a property of the RadCalendar that gives me the show date min and show date max. When user uses the fast navigation button to forward and backward the months, these properties should change accordingly. Do these properties exist? Thanks.
