Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
131 views

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.
Ivan Zhekov
Telerik team
 answered on 16 May 2011
3 answers
160 views
I have Schedular control that include 3 resources, on OnClientTimeSlotClick event I need to know which resource is selected.

thanks,
Veronica
Telerik team
 answered on 16 May 2011
4 answers
312 views
I have a series of buttons on a page that are part of a repeater control.  The query string in the navigate URLs gets populated from the database.  What I'd like to do is have the target page open in a radwindow rather than in a standard browser window.

Below is my aspx code.  Can someone guide me on the changes I need to make to have the target pages open in radwindows? Thanks!


<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>
Princy
Top achievements
Rank 2
 answered on 16 May 2011
1 answer
37 views
hello,
as the title says, it is possible to change the location of the InlineForm when inserting a new Appointment ?
Right now, the form shows over/close to the cell(s) designated to hold the appointment, i would like to place it centered over the scheduler.
I saw a thread where it was shown how to do this with the AdvancedForm, i don't know if the same is possible with the InlineForm.
Thank you.
Veronica
Telerik team
 answered on 16 May 2011
3 answers
128 views

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);

 

 

    }

 

}

 

 

 

Genady Sergeev
Telerik team
 answered on 16 May 2011
1 answer
48 views
Greetings, I'm trying to find a similar Row Detail functionality in the asp.net Ajax Grid like the one found in the silver light Grid.
http://demos.telerik.com/silverlight/#GridView/FirstLook

Please advise.
Shinu
Top achievements
Rank 2
 answered on 16 May 2011
1 answer
68 views
Hello
I wonder if you have a library to make the conservation of HTML to PDF.
I have a grid with multiple rows and columns.
A column is a column we publish HTML with RadEditor.
I need to export the HTML column of each line in a PDF file.
So I have 10 lines, I have 10 PDF files.

Can I use the RadEditor to convert HTML to PDF, but I do a postback for the conversion works. I've seen several rows in the grid the result is not very nice and user-friendly for the user.

Is that code for converting the RadEditor is accessed through a library?

Thank you
Rumen
Telerik team
 answered on 16 May 2011
1 answer
408 views
Hello,

I am using a radcombobox, but cannot get the default style (or any style/skin for that matter) to show the rcbArrowCell to show up!

I have tried several fixes including setting the enablebasestylesheet=false to no avail.

The html element is being rendered at the correct size/width, the sprite image is begin downloaded successfully, and the background image position is also correct...  it just isn't showing up?

any help on this would be great.  I can provide code if you want it... but i do not know what to give you because I can just create a blank new form, and then put in a single combobox with NO extra code, and it does the same thing.
Shinu
Top achievements
Rank 2
 answered on 16 May 2011
1 answer
95 views
i have a grid and use showgrouppanel.
it works fine befor i postback the whole page.
when the page fully postbacks , grid loses all groupings.
any help?
thanks in advance.
Princy
Top achievements
Rank 2
 answered on 16 May 2011
1 answer
50 views
Hi,

We converted a project containing a RadScheduler from VB to C# and now we're getting a javascript error that indicates that the Recurrence checkbox is null.  The error is occurring on line 12734 of the javascript file.  The line where it breaks is
if(j[0].checked){h.show();  j[0] is null or not an object.  I can find no functional difference between the two versions.
Here is the code from RecurrenceEditor.js:
    _initializeRecurrenceCheckbox: function()
    {
        var id = this._baseId;
        var recurrencePanel = $($get(id + "_RecurrencePanel"));
        var recurrentAppointment = $($get(id + "_RecurrentAppointment"));
        if (recurrentAppointment[0].checked)
        {
            recurrencePanel.show();
        }
 If you have any insight on what could cause this error we would greatly appreciate it. Thank you
Veronica
Telerik team
 answered on 15 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?