Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
389 views
I have a RadWindow, has a download button, on the download button

On download_click does below.

Response.AddHeader("Content-Disposition", "attachment;filename=" + MyFileInfo.FullName);
  
Response.WriteFile(FullPath, StartPos, FileSize);
  
Response.End();

Then pop up the window download screen, you can click save or open, if I click "save", it downloads file perfectly. If I click "Open", the file displays in the html parent window instead of the Radwindow. If there anyway that the "Open" displays html in the Radwindow instead of the parent window?

Thanks!
Marin Bratanov
Telerik team
 answered on 02 Feb 2012
1 answer
65 views
I have two tables, customers and addresses.  Each customer may have many addresses, with one default address. Simplifed a bit they contain the following fields:

Customers table - Name, CustomerID, DefaultAddressID
Addresses table - Address, AddressID, CustomerID

I am using a RadGrid to edit customers, and I would like to add a function to select the default address using a GridDropDownColumn. Currently, this is listing all the addresses, not just the ones for that customer.

How can I restrict the dropdown box to only list addresses for that customer?

Kind Regards, Richard Jonas
Tsvetina
Telerik team
 answered on 02 Feb 2012
4 answers
291 views
I'm attempting to change the focus on a RadConfirm popup form to be on the cancel button as opposed to the OK button as is set by default. In order to do this, I've added a ConfirmTemplate to my WindowManager as follows:

<div class="rwDialogPopup radconfirm">   
                <div class="rwDialogText">
                    {1}    
                </div>   
                <script type="text/javascript">
                    function radwindowprompt_setfocus() {                        
                        var container = document.getElementById("buttonContainer");
                        var but = container.getElementsByTagName("A")[1];                                             
                        but.focus();                                               
                    }  
                </script>   
                <div id="buttonContainer">                    
                    <a onclick="$find('{0}').close(true);"  class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a>                    
                    <a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a>
                    
                </div>
            </div>

I've also set the OnClientShow event to run adwindowprompt_setfocus when the window is shown.

This only seems to work when I set a breakpoint in Firebug and step through. When I just run it, this doesn't seem to work at all.

Any suggestions?
Marin Bratanov
Telerik team
 answered on 02 Feb 2012
0 answers
72 views
Loading Panel image does not show up on Internet Explorer 7 when I set a transparency property to the AjaxLoadingPanel.  I referred to this forum post:
 http://www.telerik.com/community/forums/aspnet-ajax/ajax/loading-panel-image-doesn-t-show-up-on-internet-explorer-7.aspx
From reading this post I understand that IE7 does not support animated images placed inside an element with a filter style applied (the transparency in IE is produced with such a style).  Also, I read from the forum post that you can create a custom skin for RadAjaxLoadingPanel and use the desired loading image there.  The only problem is that I have an older version of the rad controls(2006) and I do not have an option to set a skin property.  Is there any other possible workaround to this issue.  I need to add a transparency to the panel that works with IE7.  Please let me know.
Aret
Top achievements
Rank 1
 asked on 02 Feb 2012
1 answer
88 views
Hi,

I'm hoping someone can help me out... I have a tabstrip and multipage view in a page and i have a datalist inside one of the views, which contains a usercontrol

now the usercontrol contains a radasyncupload and a radgrid.. and a radajaxmanagerproxy inside the usercontrol which ajaxifies the radgrid...     

the ajaxifixation does NOT work in this scenarios.. resulting in controls/radgrid not updating.  i added the radmultipage and radtabstrip as ajax update settings, but i think the event does not bubble upto radtabstrip and radmultipage

currently i do not have time to reproduce my complex scenarios into simpler model. but here is the thing..

the datalist with usercontrol (with radgrid) works fine when outside multipage and fails when inside. the usercontrol works fine inside radmultipage (by itself) without datalist.
and the usercontrol has a radajaxmanagerproxy and radgrid.

pelase let me know if you have come across this scenario or similar and found a solution.

thanks.


Kate
Telerik team
 answered on 02 Feb 2012
2 answers
172 views
I am rebinding a Hierarchical radgrid after closing a custom edit/insert form using the below code and javascript. I would like to reset the state of the Grid as it was when the user clicked to edit a record. Currently all childgrids close up to the master. The attached images show what I mean. EditDetailRecord.png is where I want the user to be after the Rebind(). AfterDataRebind.png is currently what they see.

protected void Page_Load(object sender, EventArgs e)
{
    RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
    manager.ClientEvents.OnRequestStart = "onRequestStart";
    manager.AjaxSettings.AddAjaxSetting(manager, this.__rejectedBatchesRadGrid);
    manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(Manager_AjaxRequest);  
 
    if (!IsPostBack) {  }
}
 
protected void Manager_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    this.__rejectedBatchesRadGrid.MasterTableView.SortExpressions.Clear();
    this.__rejectedBatchesRadGrid.MasterTableView.GroupByExpressions.Clear();
    this.__rejectedBatchesRadGrid.Rebind();
}







Tim
Top achievements
Rank 2
 answered on 02 Feb 2012
4 answers
172 views
Good morning,

We are using a RadCombobox within a user control as an employee selector tool.  User types in a few characters of an employee name or number and it auto-populates with matches from our database.

The problem is our database is rather large and depending on the speed of the person typing it is sometimes performing a callback and executing a query which may return way too much data.  For example:

User types "513"
Callback is initiated
ItemsRequested server-side event fires
SQL query executes and begins retrieving 25,000 records containing 513
Meanwhile, user is typing the rest of the employee#, but the server is waiting on SQL

I would like to make sure the ItemsRequested server-side event only fires when the user hits the Enter key after typing, is this possible?
Kalina
Telerik team
 answered on 02 Feb 2012
1 answer
89 views
Hi!
Is there a way to show the entire content of the subject of the appointment in the month and week view?
Thanks in advance
Kind Regards

G.
Kate
Telerik team
 answered on 02 Feb 2012
1 answer
96 views
Hi

Is it possible to resize appointment by less than 30 minutes? Say 5 or 10 minuts per mouse move. With EnableExactTimeRendering  it is possible to render times precisely, so users would expect to change the time in the same way.

thanks in advance
Kir
Peter
Telerik team
 answered on 02 Feb 2012
1 answer
97 views
Hi everybody,

I'd like to resize an appointment in RadScheduler timeline view. In my current implementation the end time always automatically snaps to the end of the whole day. Is it possible that the end time snaps e.g. to every 15 minutes in timeline view?

Is it possible to change only the start time of an appointment? Currently I can only resize an appointment by dragging the end time.

Also, when dragging the whole appointment I cannot change the time, only the day, i.e. the appointment always snaps to the same start and end time.

Thank you for your appreciated help!
Roland
Peter
Telerik team
 answered on 02 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?