Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
372 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
118 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
195 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
122 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
304 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
164 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
149 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
411 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
8 answers
526 views
Hi!

I'm trying to implement a context menu in a grid with Prometheus. I've done it in RadControls for ASP.NET without any problems.

When calling the radContextMenu1.Show() method I will get an error message saying that the method is not supported.

Any idea about what is wrong?

Thanks
/Mats

-----------------------------------------------------------------------
default.aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <title>Untitled Page</title>
</head>

<body>
<script type="text/javascript">

function ShowContextMenu()
{
   var contextMenu = <%= RadContextMenu1.ClientID %>;
   contextMenu.Show();
}

</script>

    <form id="form1" runat="server">

        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource">
                <ExportSettings>
                    <Pdf FontType="Subset" PaperSize="Letter" />
                    <Excel Format="Html" />
                </ExportSettings>
                <ClientSettings>
                    <ClientEvents OnRowContextMenu="ShowContextMenu" />
                </ClientSettings>
                <MasterTableView CommandItemDisplay="None" CurrentResetPageIndexAction="SetPageIndexToFirst"
                    Dir="LTR" Frame="Border" TableLayout="Auto">
                    <EditFormSettings>
                        <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">
                        </EditColumn>
                    </EditFormSettings>
                    <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                        Resizable="False" Visible="False">
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                        Visible="False">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                </MasterTableView>
            </telerik:RadGrid>
            <telerik:RadContextMenu ID="RadContextMenu1" runat="server" Flow="Horizontal">
                <DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical" />
                <CollapseAnimation Duration="200" Type="OutQuint" />
                <ExpandAnimation Type="OutQuart" />
                <Items>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Rad 1">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Rad 2">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadContextMenu>
        </div>
    </form>
</body>

</html>
-----------------------------------------------------------------------
default.aspx.cs:

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public DataView Source()
    {
        DataTable dt = new DataTable();

        dt.Columns.Add(new DataColumn("Item", Type.GetType("System.String")));

        DataRow dr;
        dr = dt.NewRow();
        dr[0] = "Use context menu on me...";
        dt.Rows.Add(dr);

        DataView dv = new DataView(dt);
        return dv;
    }

    protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid1.DataSource = Source();
    }
}

John
Top achievements
Rank 1
 answered on 17 Jul 2008
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?