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>The demos on this site are really terrible and largely useless.
All I am trying to do is to upload images files, and display progress of upload (both indvidual and overall).
Does anyone have a WORKING example of this? (C#) for the life of me, I cannot find ANY info on how to actually do this.
How do I query the progress of the current image file being uploaded?
When Uplaod Files Button Clicked:
foreach
(UploadedFile f in RadFileUpload1.UploadedFiles)
{
string fPath = string.Empty;
int i = 0;
i++;
fPath = Server.MapPath(
@"~\Scanned_Images") + @"\" + f.GetName();
f.SaveAs(fPath,
true);
/// Call some other loop here???????????
// RIGHT HERE - HOW DOES PROGRESS BAR GET REFRESHED AND DISPLAYED????????????????? HOW DO I QUERY THE STATUS OF EACH FILE BEING UPLOADED?
}
Private Void SomeOtherLoop
{
// something like this???????????
for
(int j = 0; j < 10000; j++)
{
context.CurrentOperationText =
"Uploading File " + j.ToString();
context.PrimaryTotal =
Convert.ToString(j); <===== how do I know % of file uploaded?
context.SecondaryPercent = context.PrimaryTotal; <===== how do I know % of file uploaded?
System.Threading.
Thread.Sleep(100);
}
}
