Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
186 views
Hi,

We are using FileUp ActiveX object to upload the file and want to use RadWindow as Progress window.
The code to implement the Progress window is as follows:
Main Page:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<P><STRONG><FONT color=black size=5>SA-AXFile Multi-File Preset Upload Sample</FONT></STRONG></P>
<P>
<SCRIPT>

function startupload()
{
    winstyle = "height=300,width=400,status=no,toolbar=no,menubar=no,location=no";
    window.open("AXFFileProgress.htm",null,winstyle);
}

</SCRIPT>

<OBJECT classid=CLSID:230C3D02-DA27-11D2-8612-00A0C93EEA3C id=AXFFile style="LEFT: 0px; TOP: 0px">
</OBJECT>
</P>
<P><INPUT id=button1 name=button1 type=button value="Start Upload" onclick = "startupload()"></P>

<script language="vbs">
    set xfile = AXFFile.XFrequest
    XFile.Server = "localhost""
    XFile.ObjectName = "/safileupsamples/formresp2.asp"
    AXFFile.AddFile "c:\boot.ini"
    AXFFile.AddFile "c:\autoexec.bat"
</script>

</BODY>
</HTML>

Progress Page:AXFFileProgress.htm
<HEAD>
<SCRIPT language = vbs>
sub Callback()

Document.All("AXFFileProgress").XFRequestStream =  Opener.Document.All("AXFFileDownload").XFRequestStream
Document.All("AXFFileProgress").ShowProgress
Opener.Document.All("AXFFileDownload").Start
window.close()
End sub

</SCRIPT>
</HEAD>
<BODY OnLoad="Callback()">
<OBJECT ID="AXFFileProgress" CLASSID="CLSID:C3EAF164-E06A-11D2-B5C9-0050041B7FF6"></OBJECT>
<SCRIPT language = vbs>
sub AXFFileProgress_TransferComplete()
MsgBox "Transfer completed"
end sub
</SCRIPT>

I am trying to find out whether I can use opener.document.all and access the AXFFileDownload object on the parent page, if I open the progress window in a Radwindow instead of normal window.open.

We are trying to work around pop up blocker issues.
Thanks.
Georgi Tunev
Telerik team
 answered on 18 May 2009
1 answer
175 views
Hi

How can i bind the sql datatable to treeview control.

Here i have loop all the records and bind the data table.How can i do that one without looping in Rad treeview control.

Dim daSuppliers As New SqlDataAdapter("SELECT CompanyName,SupplierID FROM Suppliers", objConn) 

Dim daProducts As New SqlDataAdapter("SELECT ProductName, ProductID, SupplierID FROM Products", objConn)

            daSuppliers.Fill(objDS, "dtSuppliers")

            daProducts.Fill(objDS, "dtProducts")
            //Giving the relation

objDS.Relations.Add("SuppToProd", _

    objDS.Tables("dtSuppliers").Columns("SupplierID"), _

    objDS.Tables("dtProducts").Columns("SupplierID"))

                Dim nodeSupp, nodeProd As TreeNode

                Dim rowSupp, rowProd As DataRow

For Each rowSupp In objDS.Tables("dtSuppliers").Rows

    nodeSupp = New TreeNode

    nodeSupp.Text = rowSupp("CompanyName")

    nodeSupp.value = rowSupp("SupplierID")

    TreeView1.Nodes.Add(nodeSupp)

         For Each rowProd In rowSupp.GetChildRows("SuppToProd")

             nodeProd = New TreeNode

             nodeProd.Text = rowProd("ProductName")

             nodeProd.value = rowProd("ProductID")

             nodeSupp.Nodes.Add(nodeProd)               

         Next

  Next

 

 

 

 

 

 

 


At the same time i need to improve the performance because supplier table has more than1000 records and product table has 3000 records.How can i do this one.

Shinu
Top achievements
Rank 2
 answered on 18 May 2009
1 answer
165 views

Dear sir,

I am dynamically created a dock and load user controls, once we close any dock then how can it show.
i got javascript but not wokring on server side.
I need a server side code because our dock also a dynamcially so how can I find dock...? and how can be show..?

thanks with reagrds

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 18 May 2009
2 answers
1.1K+ views
I want to close the radwindow on button click .... i have one from on that form show radwindow button after that button mouse over open rad window. In that rad window one Employee.aspx form on that form close button. when i click that button close the open radwindow+Employee.aspx form. How to close it ?
i am trying this code 

 

<input id="CloseButton" title="BAck to main Window" type="button" value="Close Form" onclick ="Closerad(); " /></td>

 

 

function Closerad()

 

{

 

 

 

var oManager = GetRadWindowManager();

 

 

 

var oWnd = oManager.GetWindowByName("RadWindow1");

 

 

 

 

 

//oWnd.Hide();

 

 

 

 

 

oWnd.Close();

document.getElementById(

 

"Button2").focus ();

 

 

}

but it showing script erro object Expected of employee.aspx form . how to resolve this problem urgent

Its urgent

Thank you so Much !!!!!!!!

 

Shinu
Top achievements
Rank 2
 answered on 18 May 2009
6 answers
177 views
Just above my RAD Scheduler, I've placed a hyperlink that says "Add a New Appointment".  If double-clicking the RAD Scheduler cell to add a new Appointment isn't intuitive enough for the average User, then the User should know enough to click this link.

I currently have the click event of this link wired up to the JavaScript AppointmentInserting event.  When this event is invoked by double-clicking the RAD Scheduler date cell to add a new Event, I have access to the passed in (sender, eventArgs) values.  Several values are set, our custom Advanced Edit form opens with a modal underlay, and everything works as expected.

Going back to the new hyperlink I've added, I would like the click event of the link to replicate the same functionality as above.  However, I do not have access to the (sender, eventArgs) values.  Ideally, I would like to trick the event handler into thinking that the event was fired from the RAD Scheduler.  Because I do not have access to the (sender, eventArgs) values, the JS event does not function as expected.  The Advances Edit form opens with a modal underlay, but it is soon blown away because I wasn't able to successfully call eventArgs.setCancel(true).

Is this functionality possible? For your reference, I've posted my code below.

Thanks!
Mike

------------------------------------------------------------------------------------------------------------------

<div>   
   
 
 
 
   
 
   
 
<asp:LinkButton ID="lbAddNewSchedulerEvent" OnClientClick="javascript:AppointmentInserting();" runat="server">Add New Scheduler Event</asp:LinkButton>   
   
 
 
 
</div>  
 
<div>   
   
 
   
 
   
 
   
 
   
 
<telerik:RadScheduler  
........  
</telerik:RadScheduler>   
   
 
   
 
   
 
   
 
</  
 
   
 
 
 
div>  
 
function AppointmentInserting(sender, eventArgs)   
   
 
   
 
   
 
{  
 
   
 
    try   
    {  
        var start = formatDate(eventArgs.get_startTime());   
    }  
 
 
 
   
 
   
 
    catch (e)   
    {  
 
 
 
   
 
        var start = "01/01/2009";   
    }  
 
   
 
 
 
 
    try    
   
 
   
 
    {  
 
 
 
   
 
        var isAllDay = eventArgs.get_isAllDay();   
    }  
 
 
 
   
 
    catch (e)   
    {  
 
 
 
   
 
        var isAllDay = true;   
    }  
 
 
 
   
 
    //New appointment    
    window.radopen(  
 
 
 
   
 
    "DefaultTemplates/AdvancedForm.aspx?Mode=Insert&Start=" + start + "&IsAllDay=" + isAllDay, "AdvancedForm");   
   
 
 
 
    try    
    {   
   
 
        eventArgs.set_cancel(  
 
 
 
true);   
    }   
   
 
 
 
   
 
    catch (e)   
    {  
 
        alert(  
 
 
 
"I need to make sure the Advanced Edit form doesn't close here...How can I invoke a Cancel??");   
   
 
        alert(e);  
 
    }  
}  
 
 
 
 
 

 

 

 

 

 

 

 

 

 

Veselin Vasilev
Telerik team
 answered on 18 May 2009
2 answers
119 views
Hi

I'm having problems finding an example of how I Bind the Scheduler to a LinQ datasource from backend. The "LinqDataSource" example shows how to bind in the markup. But that is not flexible enough.

Do you have an example or some code showing how to do it?

Regards
Rune
Rune
Top achievements
Rank 2
 answered on 18 May 2009
1 answer
169 views
Hi;
Please I need your help to lead me, I start to work with "RadScheduler Control"  but I need to exchange information between the MS-Outlook and my RadScheduler, so how I can do that, I need your advice.
Thanks

Ban
Dimitar Milushev
Telerik team
 answered on 18 May 2009
5 answers
269 views
Hello,

A quick clarification.
It appears that Standard edition of RadEditor requires ASP.NET AJAX Extensions while Lite does not?
Am I correct?

For the support for Flash objects embedding, we are considering to move to the standard edition.
I suppose FlashManager is the only way, since, with the Lite, even if I place it in the HTML view, it is removed when saved.

Should I understand that to implement functions such as this, the Standard edition needs to work on top of the ASP.NET AJAX Extensions?

Finally, we are with MOSS version 12.0.0.6341.
http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3
Is this, a pretty manual installation, still the only way to install ASP.NET AJAX Extensions?

Thank you very much in advance for your prompt response.
kazu
Michael
Top achievements
Rank 1
 answered on 18 May 2009
1 answer
199 views
Is it possible to word wrap the text appearing on tabs?
Paul
Telerik team
 answered on 18 May 2009
3 answers
92 views
hello to all expert

                          Good Day ! i would like to ask some again to all of you who knows very will, here's my question in my page i have two textbox namely idnumber and firstname, one button namely search and one grid. i'm using stored procedure to load the data on the grid..now when the user input an idnumber or firstname and click the button search it will filter..is there a way to filter the data inside the grid without having any stored proc.on my search button to filter the data..

sample codes is highly appreciated

thanks to all
Princy
Top achievements
Rank 2
 answered on 18 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?