or
function getDate() { var date = $find("<%= RadDatePicker1.ClientID %>"); }<telerik:RadDatePicker ID="RadDatePicker1" runat="server"></telerik:RadDatePicker><asp:ObjectDataSource ID="ClientMattersOds" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetMattersBilledInPastYear" TypeName="Data.ClientMatter"> <SelectParameters> <asp:Parameter Name="emplUno" Type="Int32" DefaultValue="66" /> </SelectParameters></asp:ObjectDataSource><telerik:RadTreeList ID="ClientsMattersTreeList" runat="server" DataKeyNames="MatterUno" ParentDataKeyNames="ClientUno" DataSourceID="ClientMattersOds" PageSize="25" OnNeedDataSource="ClientsMattersTreeList_NeedDataSource" OnDataBound="ClientsMattersTreeList_DataBound"><ExportSettings ExportMode="RemoveControls"><Excel PageLeftMargin="0.7in" PageRightMargin="0.7in"></Excel><Pdf PageWidth="8.5in" PageHeight="11in"></Pdf></ExportSettings><EditFormSettings EditFormType="AutoGenerated"><EditColumn MinWidth="" MaxWidth=""></EditColumn></EditFormSettings> <Columns> <telerik:TreeListBoundColumn DataField="CLIENT_UNO" DataType="System.Int16" MaxWidth="" MinWidth="" UniqueName="column"> </telerik:TreeListBoundColumn> </Columns></telerik:RadTreeList>[DataObjectMethod(DataObjectMethodType.Select, true)]public static List<ClientMatter> GetMattersBilledInPastYear(int emplUno){ var dc = new Data.DdDataContext(); //Get the matters by searching all the time entries for this timekeeper from the past year //Select only the resulting records that match records from this class var records = dc.TimeEntries.Where(a => a.TK_EMPL_UNO == emplUno).Select(a => new ClientMatter() { _matter_Uno = a.MATTER_UNO, _client_Uno = a.Matter.CLIENT_UNO, _matter_Code = a.Matter.MATTER_CODE, _client_Code = a.Matter.Client.CLIENT_CODE, _matter_Name = a.Matter.MATTER_NAME, _client_Name = a.Matter.Client.CLIENT_NAME }).Distinct().ToList(); return records;}
telerik:TreeListSelectColumn , I need to implement the recursive selection at this way:function itemSelected(sender, args) { var treelist = sender; var selectedItem = args.get_item(); if(selectedItem.get_parentItem()) treelist.selectItem(selectedItem.get_parentItem()); //comment out the above line and uncomment the below one to get all child items selected functionality //selectChildren(selectedItem); function selectChildren(item) { treelist.selectItem(item); if (item.get_childItems().length > 0) { for (var i = 0; i < item.get_childItems().length; i++) { selectChildren(item.get_childItems()[i]); } } }}<telerik:RadTreeList runat="server" ID="RadTreeList1" DataKeyNames="Id" ParentDataKeyNames="CongViecChaId" OnItemCommand="RadTreeList1_ItemCommand" AllowMultiItemSelection="True" AllowPaging="false" AllowSorting="true" Skin="Hay" AutoGenerateColumns="false" OnNeedDataSource ="RadTreeList1_NeedDataSource" OnItemCreated="RadTreeList1_ItemCreated" OnItemDataBound="RadTreeList1_ItemDataBound" > <Columns> <telerik:TreeListSelectColumn HeaderStyle-Width="40px" UniqueName="chkColum" > </telerik:TreeListSelectColumn> <telerik:TreeListBoundColumn DataField="Id" HeaderText="Id" UniqueName="Id" Visible="false"> </telerik:TreeListBoundColumn><telerik:TreeListBoundColumn DataField="MaCongViec" HeaderText="Mã Công Việc" UniqueName="MaCongViec"> </telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="TenCongViec" HeaderText="Tên Công Việc" UniqueName="TenCongViec"> </telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="CongViecChaId" HeaderText="Công việc cha id" UniqueName="CongViecChaId" Visible="false"> </telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="MoTa" HeaderText="Mô tả" UniqueName="MoTa"> </telerik:TreeListBoundColumn> <telerik:TreeListBoundColumn DataField="TinhTrang" HeaderText="Tình trạng" UniqueName="TinhTrang"> </telerik:TreeListBoundColumn> </Columns <ClientSettings Selecting-AllowItemSelection="true"> <ClientEvents OnItemSelected="itemSelected" /> </ClientSettings> </telerik:RadTreeList><telerik:RadTextBox runat="server" ID="txtNewPassword" TextMode="Password"> <PasswordStrengthSettings showindicator="true" minimumnumericcharacters="1" minimumsymbolcharacters="0" textstrengthdescriptionstyles="RedText;RedText;GreenText;GreenText;BlueText;BlueText;" PreferredPasswordLength="8"/></telerik:RadTextBox><%@ Register Assembly="Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>