or
if (e.Item is GridDataItem) { StockPurchasingVehicle v = (StockPurchasingVehicle)e.Item.DataItem; GridDataItem item = (GridDataItem)e.Item; if (v.OffHireDate == DateTime.MinValue) { item.Cells[6].Text = ""; } }RadTab tab = new RadTab(); tabStripMain.Tabs.Add(tab); switch (myswitch) { case 1: tab.Text = node.SelectSingleNode("TAB_TITLE").ChildNodes[0].Value; tab.Font.Size = 12; tab.CssClass = "results_tab_off"; tab.SelectedCssClass = "results_tab_on"; tab.HoveredCssClass = "results_tab_on";break; default: tabStripMain.EnableEmbeddedSkins = true; tabStripMain.Skin = "Outlook"; break; }.results_tab_off{ background:white url(/images/medica/results_tab_off.png) no-repeat 0 100%; height: 40px; width: 211px; color: White; padding: 10px 0px 0px 0px !important; text-align: left !important; border-left: 1px solid white;}.results_tab_on{ background:white url(/images/medica/results_tab_on.png) no-repeat 0 100%; height: 40px; width: 211px; color: #999; padding: 10px 0px 0px 0px !important; text-align: left !important; border-left: 1px solid white;}.RadTabStrip .rtsTxt { padding-left: 5px !important; padding-top: 13px !important; } <div style="width: 550px;"> <div style="margin-top: 5px;"> <label for="cmbMake"> <span class="redtext">*</span> Vessel Make</label> <div class="info"> </div> <telerik:RadComboBox ID="cmbMake" Width="249px" runat="server" Filter="Contains" Skin="WebBlue" Font-Names="Arial" AutoPostBack="True"OnSelectedIndexChanged="cmbMake_SelectedIndexChanged" OnItemDataBound="cmbMake_ItemDataBound" OnItemsRequested="cmbMake_ItemsRequested"><CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation></telerik:RadComboBox></div><div style="clear: both;"></div><div style="margin-top: 5px;"><label for="cmbModel"><span class="redtext">*</span> Vessel Model</label><div class="info"> </div><telerik:RadComboBox ID="cmbModel" Width="249px" AllowCustomText="true" runat="server" Filter="Contains" Font-Names="Arial" Skin="WebBlue" AutoPostBack="True" OnSelectedIndexChanged="cmbModel_SelectedIndexChanged" OnItemDataBound="cmbModel_ItemDataBound" OnItemsRequested="cmbModel_ItemsRequested"><CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation></telerik:RadComboBox></div> </div>
<telerik:RadTreeView ID="TreeViewTest" runat="server" CheckBoxes="true" LoadingMessage="Loading..." LoadingStatusPosition="BelowNodeText" MultipleSelect="false" AllowNodeEditing="false" OnClientNodePopulated="ClientNodePopulated" OnClientNodeChecked="ClientNodeChecked"> <WebServiceSettings Path="TreeViewTest.aspx" Method="LoadTreeViewNodes" /></telerik:RadTreeView>
Hello,
Moving an ASP.Net project from RadControls for ASP.NET Q1 2009\NET2 to Telerik.Web.UI, Version=2011.1.413.40 I discovered that some properties do not exist for the RadTreeView.
1. BeforeClientToggle: I used this property in the old version to expand all children when the node was expanded:
<rad:RadTreeView ID="treeTest" runat="server" title="Test" BeforeClientToggle="ClickHandler" Width="100%" OnNodeCreated="treeTest_NodeCreated"> [...] <script language="javascript"> function ClickHandler(objStartNode) { var objChildren = objStartNode.Nodes; var intChildCnt = objChildren.length; if(intChildCnt == 0) return; for (var intNodeIdx = 0; intNodeIdx < intChildCnt; intNodeIdx++) { var objChildNode = objChildren[intNodeIdx]; objChildNode.Expand(); if(intChildCnt != 0) ClickHandler(objChildNode); } } </script> How should this behaviour be implemented in the new version of the control?
2. SkinsPath: When first working with RadTreeView, I downloaded the additional skins and used RoundBlue for rendering the grid:
protected void Page_Load(object sender, EventArgs e) { //... treeTest.SkinsPath = "~/App_Themes/Skins"; treeTest.Skin = "RoundBlue"; //... }This property is not available for this version of the control and the code does not compile.
What should I use to replace this property?
Thank you.
