or
RadTreeNode currentNode = new RadTreeNode();
currentNode = rtHierarchy.FindNodeByText(hdnNode.Value);
currentNode.Selected=true;
In the code snippet, hdnNode.Value is a hidden field, which holds the text of the node from which the node has been added.
The problem i am facing is after closing the popup the added nodes are not displayed. The nodes are displayed only after when i click on some other node.
<
telerik:GridBoundColumn DataField="GateLength" HeaderText="Gate Length" SortExpression="GateLength"
UniqueName="GateLength" ItemStyle-Width="50px" >
</telerik:GridBoundColumn>
| protected void Page_PreRender(object sender, System.EventArgs e) |
| { |
| if (!this.IsPostBack) |
| { |
| for (int i = 0; i < this.radgrdTenderTariffTenderTariff.MasterTableView.Items.Count; i++) |
| { |
| this.radgrdTenderTariffTenderTariff.MasterTableView.Items[i].Edit = true; |
| } |
| this.radgrdTenderTariffTenderTariff.MasterTableView.Rebind(); |
| } |
| } |
| protected void bttnSave_Click(object sender, EventArgs e) |
| { |
| foreach (GridEditableItem editedItem in radgrdTenderTariffTenderTariff.EditItems) |
| { |
| //string test = item.OwnerTableView.DataKeyValues[item.ItemIndex]["SiteCode"].ToString(); |
| //GridEditableItem itemToEdit = (item.OwnerTableView.EditMode == GridEditMode.InPlace) ? |
| // (GridEditableItem)item : (GridEditableItem)item.EditFormItem; |
| string rate8 = editedItem["Rate8"].Text; |
| } |
| } |