function editInit(nodeValue){
var tree= $find("<%= RadTreeView1.ClientID %>");
var node = tree.findNodeByValue(nodeValue);
tree._startEdit(node);
}
This does not work because I get javascript errors saying used methods are not supported on findNodeByValue due to the RadTreeView not being fully loaded yet. However, when i combine calling the editInit function with a setTimeout function (100 milliseconds), so that it waits a few milliseconds before calling the function, it works perfectly. However, I don't like this approach, because I don't know how reliable it's going to be once it's deployed online and the tree grows in size.
Isn't there an easier way to do this? Can't I set a property of a RadTreeNode which puts the node in Edit mode, the same way the property "Selected" works?
<radC:RadPanelBar ID="RadPanelBarPhysicianInformation" ExpandMode="SingleExpandedItem" Width="100%" runat="server" OnItemClick="RadPanelBarPhysicianInformation_ItemClick" >
<CollapseAnimation Duration="100" Type="None" />
<ExpandAnimation Duration="100" Type="None" />
<Items >
<radC:RadPanelItem Text="Constitution" >
<items>
<radC:RadPanelItem Value="PhysicianOptions" runat="server">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<
Telerik:RadGrid ID="rgApptType1" EnableAJAX="True" runat="server" Skin="WebBlue" Width="100%" ShowStatusBar="True"
AutoGenerateColumns="False" PageSize="7" AllowSorting="True" AutoGenerateDeleteColumn="true"
ValidationSettings-CommandsToValidate="Insert" AutoGenerateEditColumn="True"
AllowPaging="True" GridLines="None" >
<PagerStyle Mode="NumericPages"></PagerStyle>
<MasterTableView CommandItemDisplay= "Top" EditMode="InPlace" DataKeyNames="ApptEncounterData_ID">
<
Columns >
<telerik:GridTemplateColumn HeaderText="AppointmentType Name" UniqueName="ApptType_ID">
<
ItemTemplate>
<asp:Label ID="lblApptType_ID" runat="server" Text='<%# Eval("ApptEncounterData_Field")%>'></asp:Label>
</ItemTemplate>
</
telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Display Order" UniqueName="ApptType_Name">
<
ItemTemplate>
<
asp:Label ID="lblApptType_Name" runat="server" Text='<%# Eval("ApptEncounterData_DisplayOrder")%>'></asp:Label>
</
ItemTemplate>
</
telerik:GridTemplateColumn>
</
Columns>
</
MasterTableView>
</
Telerik:RadGrid> </ItemTemplate>
how to stop to close the radpanel when click on radgrid?
Thanks,
Puru
| .RadTabStrip_Office2007 .rtsLevel1 .rtsLI, |
| .RadTabStrip_Office2007 .rtsLevel1 .rtsLink |
| { |
| color: red !important; |
| } |
| .RadTabStrip_Office2007 .selectedtab |
| { |
| color: green !important; |
| } |
var grid = <%= rgDRFormASPPFCaseInfo.ClientID %>;
var tableView = grid.MasterTableView;
alert(tableView);