or
if
(actualOffsetWidth < l_screenWidth) {
sender.MasterTableView._element.style.width =
"";
sender.get_element().style.width = sender.MasterTableView._element.offsetWidth +
"px";
}
I'm using JavaScript to expand a tree node based on the condition. Script work in IE and FF but not in Chrome, the version of my Chrome browser is 11.
function ClientNodeExpanded(sender, eventArgs) { var node = eventArgs.get_node(); if (typeof (node) !== 'undefined' && node != null) { if (node.get_nodes().get_count() > 0) { for (var i = 0; i <= node.get_nodes().get_count(); i++) { var ChildNode = node.get_nodes().getNode(i); if (typeof (ChildNode) !== 'undefined' && ChildNode != null) { if (ChildNode.get_text() == "Online") { ChildNode.expand(true); } } } } }}
Can you tell me if this is a problem with the control or i'm doing something wrong?
Thanks you.<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <table style="margin-bottom:10px; border-width:1px; border-spacing:2px; border-style:outset; border-color:Gray; border-collapse:separate; border-radius:5px; background-color:White;"> <tr> <td rowspan="4" style="width:100px; height:100px;"> <asp:Image ID="Image1" runat="server" ImageUrl="~/images/image_upload_icon.png" /> </td> </tr> <tr> <td style="width:100px;"> Package Name:</td> <td style="width:390px; padding-left:10px;"> <%#DataBinder.Eval(Container.DataItem, "PackageName") %> </td> <td align="right" style="width:100px;"> <telerik:RadButton ID="RadButton3" runat="server" ButtonType="LinkButton" Height="18px" Image-EnableImageButton="true" Image-ImageUrl="~/images/remove_icon.png" NavigateUrl='<%# "removepackage.aspx?ID=" +Eval("PackageID") %>' Target="_blank" Text="remove" Visible='<%# Eval("RemoveButtonVisible") %>' Width="18px"> </telerik:RadButton> </td> </tr>