Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
137 views
I want to create a confirmation message box using java script. Once they hit ok or cancel i should go to a function written in .cs.
Could anyone give a solution for this ..?
$uren
Top achievements
Rank 1
 answered on 31 May 2011
2 answers
121 views
Hi,
I was looking at this project and could not understand a part of the javascript.
There is an asmx file in the project called Authentication. It has a method IsLoggedIn:

[ScriptService]
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Authentication : WebService
{
   [WebMethod]
    public bool IsLoggedIn()
    {
        return Context.User.Identity.IsAuthenticated;
    }
}

In the file ToolTip.aspx, that method is called as such:

<telerik:RadCodeBlock runat="server" ID="RadCodeBlock1">
    <script type="text/javascript">
 
    function OnClientBeforeShow(sender, eventArgs)
    {
        Authentication.IsLoggedIn(successfulAuthCallback, failedAuthCallback, eventArgs);        
    }         
        
    function successfulAuthCallback(isLoggedInResult,eventArgs) {
 
        if (isLoggedInResult != true)           
        
            // reload the entire page so the Forms Auth will see that the cookie has expired and redirect to login
            window.location.reload(true);
        }        
    }
                  
    function failedAuthCallback(result, eventArgs)        
    {           
        alert("Auth Callback failed: Reason -- " + result);        
    }
    </script>
</telerik:RadCodeBlock>

My confusion stems from the fact that:
  1. IsLoggedIn has no formal parameters. However, it is being passed 3 parameters.
  2. I cannot see wheresuccessfulAuthCallback is being passed 2 parameters. It has two parameters. But where are they being passed to it.

Cheers
David
Top achievements
Rank 1
 answered on 31 May 2011
2 answers
70 views

Hi,
I have a really simple scenario here where i have a button in a panel of which is then ajaxified with the radajaxmanager as below. The problem i see here is that every second postback a standard (non-asyncronous) postback is occurring as shown by the IsAjaxRequest property being displayed in the alert.  Is there something really obvious i am missing here ?

Thanks

Ady


public partial class WebForm2 : System.Web.UI.Page 
    { 
     
        Panel panel; 
        Button button; 
 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            AddControls();   
        } 
 
 
        void AddControls() 
        { 
            //Create controls 
            panel = new Panel(); 
            button = new Button { Text = "Update" }; 
            
 
            //Add event handler 
            button.Click += new EventHandler(button_Click); 
 
            //Add controls 
            Form.Controls.Add(panel); 
           
            panel.Controls.Add(button); 
 
            //Register with manager 
           
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(panel, button, null); 
        } 
 
        void button_Click(object sender, EventArgs e) 
        { 
            RadAjaxManager1.Alert(RadAjaxManager1.IsAjaxRequest.ToString()); 
        } 
 
 
    } 

Jeremy
Top achievements
Rank 1
 answered on 31 May 2011
2 answers
125 views
I'm not sure why the search engines are turning up cached forum threads with issues about RadAsyncUpload and the Mac but that they seem to be either deleted or moved here on the forums, but I am also experiencing issues with the RadAsyncUpload working for the Mac.

Is there any status on suggestions or what's going on here?  I've read on the forums (cached google) that we should disable flash to get it to work, but can Telerik provide some feedback on this?

Thanks!
Genady Sergeev
Telerik team
 answered on 31 May 2011
2 answers
75 views
Hi,
Is it possible to disply all day time in dayview?(Is it supported by the scheduler control)
for example
instead of 1 PM display 13:00
I've set the property ShowFullTime="True" but this is not the solution.
Alon
Top achievements
Rank 1
 answered on 31 May 2011
8 answers
127 views
<%@ Page Language="VB"AutoEventWireup="false"CodeFile="Default.aspx.vb"Inherits="_Default"%> 
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<head runat="server"
    <title></title> 
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1"runat="server"/> 
</head> 
<body> 
    <form id="form1"runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1"runat="server"
        <Scripts> 
            <%--Needed for JavaScript IntelliSense in VS2010--%> 
            <%--ForVS2008 replace RadScriptManager with ScriptManager--%> 
            <asp:ScriptReference Assembly="Telerik.Web.UI"Name="Telerik.Web.UI.Common.Core.js"/> 
            <asp:ScriptReference Assembly="Telerik.Web.UI"Name="Telerik.Web.UI.Common.jQuery.js"/> 
            <asp:ScriptReference Assembly="Telerik.Web.UI"Name="Telerik.Web.UI.Common.jQueryInclude.js"/> 
        </Scripts> 
    </telerik:RadScriptManager> 
    
    <script type="text/javascript"
        //Put your JavaScript code here. 
            function OnClientFormCreated(sender, eventArgs)  
            
                $telerik.$(".rsAdvWeekly_WeekDays li:first-child").hide(); 
                $telerik.$(".rsAdvWeekly_WeekDays li:last-child").hide();                                                  
    
            }   
                
            function OnClientRecurrenceActionDialogShowing(sender, eventArgs)  
            
                 eventArgs.set_cancel(true); 
                    //Edit this instance only: 
                    //eventArgs.set_editSeries(false); 
                        
                    //Edit the entire series: 
                 eventArgs.set_editSeries(true); 
            }      
    </script> 
    
    <telerik:RadAjaxManager ID="RadAjaxManager1"runat="server">         
    </telerik:RadAjaxManager> 
       
    <div> 
        <telerik:RadScheduler ID="RadScheduler1"runat="server"Skin="Office2007"DataEndField="EndDate"
            DataKeyField="ID"DataRecurrenceField="RecurrenceRule"DataRecurrenceParentKeyField="RecurrenceParentID"
            DataSourceID="ldsActivitySchedules"DataStartField="StartDate"DataSubjectField="Subject"
            OnClientFormCreated="OnClientFormCreated()"OnClientRecurrenceActionDialogShowing="OnClientRecurrenceActionDialogShowing"
            AllowDelete="False" 
            EnableCustomAttributeEditing="True"FirstDayOfWeek="Monday" 
            LastDayOfWeek="Friday"MinutesPerRow="15"ShowAllDayRow="False"Width="700px"Height="650px"
            <TimelineView UserSelectable="False"/> 
            <AdvancedForm EnableCustomAttributeEditing="True"Modal="True"/> 
            <ResourceTypes> 
                <telerik:ResourceType DataSourceID="ldsActivities"ForeignKeyField="ActivityID" 
                    KeyField="ID"Name="Activities"TextField="Description"/> 
            </ResourceTypes> 
        </telerik:RadScheduler> 
        <asp:LinqDataSource ID="ldsActivities"runat="server" 
            ContextTypeName="DataClassesDataContext"EnableInsert="True" 
            EnableUpdate="True"OrderBy="Description"TableName="ACTIVITies"
        </asp:LinqDataSource> 
        <asp:LinqDataSource ID="ldsActivitySchedules"runat="server"ContextTypeName="DataClassesDataContext"
            EnableInsert="True"EnableUpdate="True"OrderBy="StartDate"TableName="ACTIVITYSCHEDULEs"
        </asp:LinqDataSource> 
    </div> 
    </form> 
</body> 
</html>
Hi Veronica,

Sorry for the delay.

Per your request, I created a new support thread and pasted the full code of my default.aspx page here again. 
To answer your question, I used Internet Explorer version 7.0.5730.13 to run my application.
Also, I used RadScheduler version 2010.3.1109.35, and this caused this issue when I tried to hide Saturday and Sunday checkboxes.

Hope you can help me to solve this problem.

Thanks so much for your hard work.

Tiffany Phan

Veronica
Telerik team
 answered on 31 May 2011
1 answer
203 views
Hi, I'm new using the radControls and now I need to iimplement the radupload control, and my question that is it possible to upload files to database instead to a specific folder using  radupload? I'm using entity framework to save to database.
I hope your help or any advice to make this task. 
Shinu
Top achievements
Rank 2
 answered on 31 May 2011
1 answer
59 views
Hi...
      I have a issue to export the rad grid data to pdf format, My radgrid is placed in RadAjaxManager, because of it i am unable to export the grid data to pdf. Please let me know how to export the Radgrid data to pdf when radgrid is kept under radajaxmanager. I am waiting for your reply i am need with urgent.

Thanks in advance.
S.Madhusudhan.
Princy
Top achievements
Rank 2
 answered on 31 May 2011
8 answers
1.9K+ views
Good evening.  There are hundreds of posts on closing the window client side but what i am using the radwindow for is cropping an image and then executing the cropping on codebehind and updating the database.  Once the database is updated, i need to close the radwindow and then reload the parent page.  I know how to close it client size but not from codebehind after completing a the database update. 

If it is possible, is there anyway to give and example of closing the window and refreshing the parent page that popped with window as well as an example the just closes the window. 

I want to thank you for your help sincerly in advance.

joshua
Georgi Tunev
Telerik team
 answered on 31 May 2011
1 answer
121 views
I was wondering if there was a method to be able to only show the loading panel on certain controls. The scenario is I have multiple controls (textboxes, dropdownlists, grid, etc) that are ajaxified and only want to show the loading panel on certain controls (e.g. Grid). The reason is having the loading panels on all controls looks odd when there are several controls scattered about a page.

Thanks,

John
Shinu
Top achievements
Rank 2
 answered on 31 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?