Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
338 views
Hi All

I am using a radprompt window to prompt/force the user to reenter his password once it is detected that the user session has been inactive for a while.

To make sure that the user is unable to continue without reentering the password, the following two conditions need to be implemented:
1. The title bar of radprompt window should not have a close button.
2. The page refresh (F5) needs to be handled so that the radprompt window does not disappear after a forced refresh by the user.

I have created a promptTemplate class to make the input textbox to handle passwords (display '*' instead of actual letters.)

The radprompt, by default, has a close button on the title bar.

Can anyone shed some light on the above two points?

Rgds
Shuchi

Shuchi Bhalla
Top achievements
Rank 1
 answered on 17 Jul 2008
4 answers
357 views
I have a problem, the color of my page is black : body{ background-color:Black; }

I use RadEditor. The background color of the editor is black. I don't see the text that I am writing. How may to change the background color of the radEditor (White color) without changing the background color of the body ?

Thanks in advance,

Suzanne.

Suzi
Top achievements
Rank 1
 answered on 17 Jul 2008
2 answers
112 views
I would like to use the rollover from the treeview in the vista theme in another component i have on my site. Is there a javascript function or css class I can attach too?
George Belardo
Top achievements
Rank 1
 answered on 17 Jul 2008
1 answer
192 views
I am pretty much frustraited with the new telerik Ajax controls. For 3 days (including today) i have been just following the online examples and none of them work because of the issue below.

I have the following scenario:
in an asp.net content page (VS 2008 .net 2.0) i have 1 RadMUltipage with 2 page views. Within one of the views I open a radwindow as a dialog, do some work and close the dialog. In attempt to pull information from the closing dialog i ran into the following problem:

According to documentation i can call this line in a client side function:

var

multiPage = $find("<%=RadMultiPage1.ClientID %>")

which returns the reference to the multipage. i always get null.  here is the aspx code for the multipage:

<

telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"  MultiPageID="RadMultiPage1">
<telerik:RadPageView ID="rgpvCustomers" runat="server">
<div>
<table.....


I am calling this line of code in this javascript function:

function

CallBackFunction(radWindow, returnValue)

{

if (returnValue.CustAddrInfo)

{

var multiPage = $find("<%=RadMultiPage1.ClientID %>");

var pageView = multiPage.findPageViewByID("rgpvProjects");

.......

}

}

i added the MultiPageID as part of my trouble shooting. I bascially call a radwindow in modal mode, once work is done and i close the window this method gets called via the RadWindowManager. Not being able to pull information from the Closing window and use that in the pageveiw is making this impossible to use. The callbackfunction is being called as i added a line of code that shows me an alert message in that function.

Other things i have noticed is when opening the "Configure Ajax Manager" for the RadAjaxManager i dont see any controls to configure. This did work within a user control i was using to test before but this control is not part of this page.

Kevin Babcock
Top achievements
Rank 1
 answered on 17 Jul 2008
1 answer
119 views
Has anyone reordered rows in radgrid using only javascript?
Say there is a radgrid and beside that there are up and down buttons.
You select a row and change its position by clicking on the up or down buttons.
I have seen http://www.telerik.com/community/code-library/submission/b311D-gamka.aspx
but it uses ajax control.

Any idears?

Thanks in advance,

Toby
Iana Tsolova
Telerik team
 answered on 17 Jul 2008
4 answers
297 views
I'm using RadControls for ASPNET AJAX Q1 2008 in a web part in WSS 3.0.

My solutions build and deploy fine but when I try to hit the web part in WSS I get the following error msg:

"Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified."

I didn't know this dll had any dependencies.

Can you tell me how to fix this pls?

Steve
Top achievements
Rank 1
 answered on 17 Jul 2008
3 answers
163 views

I have a RadSplitter in a user control which is a tabstrip, that's used in a master page, with the splitter's FullScreenMode="True", which seems to work fine.

I change  the ContentURL in my Pane depedning on the tab menu item clicked, which loads the page, each page's conent is loaded centerd, however, when my content grows to the point that I need scroll bars, they are added by the splitter, but my content shifts to the left the same width of the vertical scrollbar.

I've tried paddings, borders, etc. etc. with no luck.

I'd like my content to stay in a static centered position, with or without the vertical scroll bar of the splitter.

Ideas!

Thanks in advance.

Roger



Svetlina Anati
Telerik team
 answered on 17 Jul 2008
2 answers
145 views
Hi,

     I have a grid whose columns are dynamically created except for the EditCommandColumn. When the grid is populated with other columns, the user can click the EditCommandColumn and it opens up that row for editing. Now my problem is how to get the values of these edited columns since I don't know the UniqueName property of each. (On my other grid, I just use for instance the "editedItem['UniqueName']" or something to fetch their values where UniqueName is something that I already assigned when I build the grid. How will I do it for dynamically created columns?

    Your help is really really appreciated!

Thanks,
Arthur
Hansik
Top achievements
Rank 1
 answered on 17 Jul 2008
6 answers
406 views

On my form I replaced the advanced form for the scheduler and supply my own custom form.  Now, when I insert or update an appointment the scheduler doesn't refresh.

I followed the instructions in the help file how to section titled: "Replace the edit form"

Everything is working nicely, my custom form displays and I can add the appointment after which my OnClientAppointmentInserting handler is called which in turn invokes a call back method that rebinds the scheduler to the updated data source.  When the form closes however, the scheduler doesn't refresh and display the newly inserted appointment.

What could I have done wrong?  Below is a copy of my markup.

Thanks,
Al

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AppointmentScheduler.aspx.vb" Inherits="AppointmentScheduler" %> 
<%@ Register assembly="Csla" namespace="Csla.Web" tagprefix="cc1" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Appointment Scheduler</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"   
            height="75px" width="75px">  
            <img alt="Loading..."   
                src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'   
                style="border:0px;" /> 
        </telerik:RadAjaxLoadingPanel> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"   
            DefaultLoadingPanelID="RadAjaxLoadingPanel1">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadScheduler1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadScheduler1"   
                            LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <table border="1">  
            <tr> 
                <td style="text-align:left; vertical-align:top" > 
                    <table border="0">  
                        <tr> 
                            <td style="text-align:left; vertical-align:top" nowrap="nowrap">  
                                <asp:DropDownList ID="FacilitiesDropDownList" runat="server"   
                                    DataSourceID="FacilitiesDataSource" DataTextField="Code"   
                                    DataValueField="Id" AutoPostBack="True">  
                                </asp:DropDownList> 
                                <br /> 
                                <asp:CheckBoxList ID="TherapistCheckBoxList" runat="server"   
                                    DataSourceID="TherapistsDataSource" DataTextField="Name"   
                                    DataValueField="Id" AutoPostBack="True">  
                                </asp:CheckBoxList> 
                                <asp:RadioButtonList ID="TherapistRadioButtonList" runat="server"   
                                    AutoPostBack="True" DataSourceID="TherapistsDataSource" DataTextField="Name"   
                                    DataValueField="Id">  
                                </asp:RadioButtonList> 
                            </td></tr>  
                    </table> 
                </td> 
                <td style="text-align:left; vertical-align:top">  
                      
                    <br /> 
                      
                    <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndDate"   
                        DataKeyField="AppointmentId"   
                        DataSourceID="AppointmentsDataSource" DataStartField="StartDate"   
                        DataSubjectField="Subject" GroupBy="Resources"   
                        StartEditingInAdvancedForm="False" 
                        OnClientAppointmentEditing="AppointmentEditing"   
                        OnClientAppointmentInserting="AppointmentInserting">  
                        <ResourceTypes> 
                            <telerik:ResourceType DataSourceID="SelectedTherapistsDataSource"   
                                ForeignKeyField="ResourceId" KeyField="Id" Name="Resources"   
                                TextField="Name" /> 
                        </ResourceTypes> 
                    </telerik:RadScheduler> 
                      
                </td></tr>  
        </table> 
        <cc1:CslaDataSource ID="TherapistsDataSource" runat="server"   
                            TypeAssemblyName=""   
                            TypeName="PGS.PTBilling.Business.EmployeeCollection, PGS.PTBilling.Business"   
                            TypeSupportsPaging="False" TypeSupportsSorting="False">  
                        </cc1:CslaDataSource> 
                        <cc1:CslaDataSource ID="SelectedTherapistsDataSource" runat="server" TypeAssemblyName=""   
                            TypeName="PGS.PTBilling.Business.EmployeeCollection, PGS.PTBilling.Business"   
                            TypeSupportsPaging="False" TypeSupportsSorting="False">  
                        </cc1:CslaDataSource> 
                        <cc1:CslaDataSource ID="FacilitiesDataSource" runat="server" TypeAssemblyName=""   
                            TypeName="PGS.PTBilling.Business.FacilityCollection, PGS.PTBilling.Business"   
                            TypeSupportsPaging="False" TypeSupportsSorting="False">  
                        </cc1:CslaDataSource> 
                        <cc1:CslaDataSource ID="AppointmentsDataSource" runat="server"   
                            TypeAssemblyName=""   
                            TypeName="PGS.PTBilling.Business.FacilityScheduleInfoCollection, PGS.PTBilling.Business"   
                            TypeSupportsPaging="False" TypeSupportsSorting="False">  
                        </cc1:CslaDataSource> 
        <telerik:RadWindowManager ID="AdvancedFormManager" runat="server"   
            onclientclose="refreshScheduler">  
            <Windows> 
                <telerik:RadWindow runat="server" Behavior="Default" InitialBehavior="None" ID="AdvancedForm" 
                    Left="" NavigateUrl="" style="display:none;" Title="Edit an Appointment" Top="">  
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 
    </div> 
    </form> 
</body> 
</html> 
<script language="javascript" type="text/javascript">  
    function AppointmentEditing(sender, eventArgs)  
    {  
        //debugger  
        var apt = eventArgs.get_appointment();  
        window.radopen("AdvancedForm.aspx?Mode=Edit&apptid=" + apt.get_id(), "AdvancedForm");  
        eventArgs.set_cancel(true);  
    }  
      
    function AppointmentInserting(sender, eventArgs)  
    {  
        //debugger  
        var start = formatDate(eventArgs.get_startTime());  
        var isAllDay = eventArgs.get_isAllDay();  
        var therapistId = 0;  
        if(eventArgs.get_targetSlot().get_resource() != null)  
        {  
            therapistId = eventArgs.get_targetSlot().get_resource().get_key();  
        }  
        var facilityDropDownListBox = document.getElementById("<%=FacilitiesDropDownList.ClientId %>");  
        var facilityId = facilityDropDownListBox.options[facilityDropDownListBox.selectedIndex].value;  
        // New appointment  
        window.radopen("AdvancedForm.aspx?Mode=Insert&Start=" + start + "&fKey=" + facilityId + "&eKey=" + therapistId, "AdvancedForm");  
        eventArgs.set_cancel(true);  
    }  
      
    function formatDate(date)  
    {  
        //debugger  
        var year = padNumber(date.getUTCFullYear(), 4);  
        var month = padNumber(date.getUTCMonth() + 1, 2);  
        var day = padNumber(date.getUTCDate(), 2);  
        var hour = padNumber(date.getUTCHours(), 2);  
        var minute = padNumber(date.getUTCMinutes(), 2);  
        var fd = year + month + day + hour + minute;  
        return fd;  
    }  
      
    function padNumber(number, totalDigits)  
    {  
        numbernumber = number.toString();  
        var padding = '';  
        if(totalDigits > number.length)  
        {  
            for(i = 0; i < (totalDigits - number.length); i++)  
            {  
                padding += '0';  
            }  
        }  
        return padding + number;  
    }  
      
    function refreshScheduler()  
    {  
        //debugger  
        var ajaxManager = $find("RadAjaxManager1");  
        ajaxManager.ajaxRequest('RebindScheduler');  
    }  
</script> 
Simon
Telerik team
 answered on 17 Jul 2008
1 answer
71 views
We recently converted our project to .net 2.0.  During that process we switched the radcontrols to the ones in the /net2 folder...Or so we thought.  Now on the rad editor a javascript "Object Expected" error pops up when you try to do a spellcheck.  What is the proper way to upgrade to the .net 2.0 version of the editor?
Rumen
Telerik team
 answered on 17 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?