Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
287 views
I saw this post "http://www.telerik.com/community/forums/aspnet-ajax/editor/how-to-hide-radeditor-hidden-textarea.aspx" although I'm not sure what he's refering to.

I have this text "RadEditor hidden textarea" showing at the top of the body area of the editor. how do i get rid of or hide that.



j
Ianko
Telerik team
 answered on 22 Jul 2013
1 answer
62 views
Hi every one,

I need your help please, I have Hierarchical Rad Grid, in which it has parent child relationship, I want to populate child details when you click on Parent row,.

I am using sqldatasource with stored procedure that has parameter, Master stored procedure has not parameter but child has. My problem is that how can i pass the parameter to child stored procedure when some one click on the row.

Thanks in Advance,

Regards,
S.M.Farooq
Princy
Top achievements
Rank 2
 answered on 22 Jul 2013
3 answers
98 views
There seems to be a problem when you set a RadComboBox to load on demand mode with a web service and then scroll down the list using the down arrow key. When the next lot of items is retrieved via the web service the item that was selected in the list is reset to the top item. This problem occurs in your online "load on demand" demo's that utilise a web service however the problem does not occur in the load on demand server-side demo's.
Is there a way to fix this problem when using a web service?
Plamen
Telerik team
 answered on 22 Jul 2013
1 answer
113 views
I have used the Rotator control to display image thumbnails that when clicked display a larger version of the thumbnail. However, every time the thumbnail images in the rotator are clicked the thumbnail images reload and reset to the first image. I am using the ajax manager too so the images should NOT reload each time. In the fact the rotator should stay exactly as it is. The control should work like this demo: http://demos.telerik.com/aspnet-ajax/rotator/examples/gallery/defaultcs.aspx. Notice when clicked the rotator images in this demo do NOT reload or reset. Thanks.
Slav
Telerik team
 answered on 22 Jul 2013
1 answer
122 views
Hi Friends.

I have some problem while using rad scheduler control, i am getting some space between header and body. I want to know how to remove that space.

Kindly see the attachment to know about the issue, it has highlighted in red color.

Thanks & Regards
---------------------------
Ashok k
Plamen
Telerik team
 answered on 22 Jul 2013
6 answers
135 views
It seems that if you set, for example, in the declarative .aspx page CurrentFilterFunction="StartsWith" on some columns together with AutoPostBackOnFilter="true", something weird happens.
The first time you insert a value and click "enter" (or tab or whatever to start the auto postback filtering) everything works as expected and the column is correctly filtered with a value that "StartWith" but at the same time alle the other columns are reset to "Contains", even if in the declarative code they all have CurrentFilterFunction="StartsWith" .


EDIT: maybe this is intended such that after the first filtering happens all other columns are set to "NoFilter" regardless of the CurrentFilterFunction="StartsWith" but it's somehow counter intuitive from a coding standpoint. As far as the filter texbox is empty and the CurrentFilterFunction is implemented it should remain as the deafult-ready one I guess.

Massimiliano
Top achievements
Rank 1
 answered on 22 Jul 2013
1 answer
172 views
Dear Telerik support,

I am using the rad scheduler in my one application. I am getting the e.Appointment.RecurrenceParentKeyId is null when i created the recurring appointment. Also i am facing the problem in deleteing the recurring appointment.

Please guide me to resolve these problems.

My database structure is given below:

CREATE TABLE [dbo].[Appointments]  

(  

   [ID]                    INT IDENTITY(1,1)   NOT NULL,  

   [Subject]               nvarchar(255)       NOT NULL,  

   [Description]           nvarchar(1024)      NULL, 

   [Start]                 datetime            NOT NULL,  

   [End]                   datetime            NOT NULL,  

   [RecurrenceRule]        nvarchar(1024)      NULL,  

   [RecurrenceParentID]    INT                 NULL,  

   [Reminder]              nvarchar(255)       NULL, 

   [Annotations]           nvarchar(50)        NULL,  

   CONSTRAINT [PK_Appointments] PRIMARY KEY CLUSTERED   

       ([ID]),  

   CONSTRAINT [FK_Appointments_ParentAppointments] FOREIGN KEY  

       ([RecurrenceParentID])  

   REFERENCES  

       [dbo].[Appointments] ([ID])  

)  

GO

 

 



My design page code is given below

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="SchedulerRadScriptManager" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadScheduler runat="server" ID="EmployeeScheduler" Width="850px" DayStartTime="08:00:00"
            DayEndTime="18:00:00" DataKeyField="Id" DataSubjectField="Subject" Height="580px"
            DataStartField="StartDate" DataEndField="EndDate" DataRecurrenceField="RecurrenceRule"
            DataRecurrenceParentKeyField="RecurrenceParentId" DataReminderField="Reminder"
            OnAppointmentInsert="EmployeeScheduler_AppointmentInsert" OnAppointmentCreated="EmployeeScheduler_AppointmentCreated">
            <AdvancedForm Modal="true" Enabled="true"></AdvancedForm>
            <TimelineView UserSelectable="false"></TimelineView>
            <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
            <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
            <reminders enabled="true"></reminders>
        </telerik:RadScheduler>
    </div>
    </form>
</body>
</html>





My cs Page code is given below:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

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

    }

    protected void EmployeeScheduler_AppointmentInsert(object sender, AppointmentInsertEventArgs e)
    {
        object obj=(e.Appointment.RecurrenceParentID);
        string subject = e.Appointment.Subject;
    }

    protected void EmployeeScheduler_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)
    {
        object obj = (e.Appointment.RecurrenceParentID);
        string subject = e.Appointment.Subject;
    }

}

Plamen
Telerik team
 answered on 22 Jul 2013
1 answer
126 views

Dear Telerik support,

I am using the rad scheduler in my one application. I am getting the e.Appointment.RecurrenceParentKeyId is null when i created the recurring appointment. Also i am facing the problem in deleting and updating the recurring appointment.

Please guide me to resolve these problems. I am looking forward of your response

My database structure is given below:

CREATE TABLE [dbo].[Appointments]

(

[ID] INT IDENTITY(1,1) NOT NULL,

[Subject] nvarchar(255) NOT NULL,

[Description] nvarchar(1024) NULL,

[Start] datetime NOT NULL,

[End] datetime NOT NULL,

[RecurrenceRule] nvarchar(1024) NULL,

[RecurrenceParentID] INT NULL,

[Reminder] nvarchar(255) NULL,

[Annotations] nvarchar(50) NULL,

CONSTRAINT [PK_Appointments] PRIMARY KEY CLUSTERED

([ID]),

CONSTRAINT [FK_Appointments_ParentAppointments] FOREIGN KEY

([RecurrenceParentID])

REFERENCES

[dbo].[Appointments] ([ID])

)

GO



My design page code is given below

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<html xmlns="
http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="SchedulerRadScriptManager" runat="server">
</telerik:RadScriptManager>
<telerik:RadScheduler runat="server" ID="EmployeeScheduler" Width="850px" DayStartTime="08:00:00"
DayEndTime="18:00:00" DataKeyField="Id" DataSubjectField="Subject" Height="580px"
DataStartField="StartDate" DataEndField="EndDate" DataRecurrenceField="RecurrenceRule"
DataRecurrenceParentKeyField="RecurrenceParentId" DataReminderField="Reminder"
OnAppointmentInsert="EmployeeScheduler_AppointmentInsert" OnAppointmentCreated="EmployeeScheduler_AppointmentCreated">
<AdvancedForm Modal="true" Enabled="true"></AdvancedForm>
<TimelineView UserSelectable="false"></TimelineView>
<TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
<AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
<reminders enabled="true"></reminders>
</telerik:RadScheduler>
</div>
</form>
</body>
</html>





My cs Page code is given below:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

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

}

protected void EmployeeScheduler_AppointmentInsert(object sender, AppointmentInsertEventArgs e)
{
object obj=(e.Appointment.RecurrenceParentID);
string subject = e.Appointment.Subject;
}

protected void EmployeeScheduler_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)
{
object obj = (e.Appointment.RecurrenceParentID);
string subject = e.Appointment.Subject;
}


}

 

Plamen
Telerik team
 answered on 22 Jul 2013
7 answers
152 views
I have looked and looked, but cannot seem to find an answer to this. I know it is a simple thing I'm overlooking. I'm using recurrence with a SQL data store. The 'RecurrenceRule' is populating, but I cannot get the RecurrenctParentID to populate. Is this something I generate and store or is it something that should be generated. My insert is as follows. My SQL table has the RecurrenceRule as nvarchar(1024) and the RecurrenceParentID as Int32. I use the advanced form template.
 

Private Sub RadScheduler1_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentInsertEventArgs) Handles RadScheduler1.AppointmentInsert

Dim CalendarEventBE As New CalendarEventBE

Dim CalendarEventDAL As New CalendarEventDAL

CalendarEventBE.OrganizationKey = ViewState(

"OrganizationKey")

CalendarEventBE.EventName = e.Appointment.Subject

CalendarEventBE.EventStartTime = e.Appointment.Start

CalendarEventBE.EventEndTime = e.Appointment.End

CalendarEventBE.EventComments = e.Appointment.Attributes(

"Description")

CalendarEventBE.RecurrenceRule = e.Appointment.RecurrenceRule

CalendarEventBE.RecurrenceParentID = e.Appointment.RecurrenceParentID

CalendarEventDAL.SaveEvent(CalendarEventBE)

RadScheduler1.Rebind

End Sub


Plamen
Telerik team
 answered on 22 Jul 2013
1 answer
135 views
Hi,

I have a Sharepoint webpart that contains a Radgrid control. This control doesn't work properly in my webpart. I've installed ASP.NET AJAX, I've followed this link "http://www.telerik.com/community/forums/sharepoint-2010/integrate-ajax-controls/telerik-ajax-issue-with-sharepoint-2010.aspx" and Telerik documentation, and the grid doesn't work. When I click in a page number of the grid, nothing happens, but if I click again, all page is reload and the page changes. If I debug the Javascript code of Sharepoint page with Internet Explorer debug, there is an error in the last line of this function, to assing "innerHTML" property, although "updatePanelElement" object exists:

function Sys$WebForms$PageRequestManager$_updatePanel(updatePanelElement, rendering) {
        for (var updatePanelID in this._scriptDisposes) {
            if (this._elementContains(updatePanelElement, document.getElementById(updatePanelID))) {
                var disposeScripts = this._scriptDisposes[updatePanelID];
                for (var i = 0, l = disposeScripts.length; i < l; i++) {
                    eval(disposeScripts[i]);
                }
                delete this._scriptDisposes[updatePanelID];
            }
        }
        this._destroyTree(updatePanelElement);
        updatePanelElement.innerHTML = rendering;
    }

This is the code of my webpart main class:

private RadAjaxManager mAjaxManager;
 
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
 
            Page.ClientScript.RegisterStartupScript(typeof(myWebPart), this.ID, "_spOriginalFormAction = document.forms[0].action;_spSuppressFormOnSubmitWrapper=true;", true);
            if (this.Page.Form != null)
            {
                string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"];
                if (!string.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt == "return _spFormOnSubmitWrapper();")
                {
                    this.Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();";
                }
            }
 
            ScriptManager scriptManager = ScriptManager.GetCurrent(Page);
            if (scriptManager == null)
            {
                scriptManager = new RadScriptManager();
                Page.Form.Controls.Add(scriptManager);
            }
 
            SetUpAjaxManagerOnPage();
 
            EnsureChildControls();
        }
 
 
        protected void SetUpAjaxManagerOnPage()
        {
            RadAjaxManager currentAjaxManager = RadAjaxManager.GetCurrent(Page);
 
            if (currentAjaxManager == null)
            {
                Page.Form.Controls.AddAt(0, AjaxManager);
                Page.Items.Add(typeof(RadAjaxManager), AjaxManager);
            }
        }
 
        protected virtual RadAjaxManager AjaxManager
        {
            get
            {
                if (mAjaxManager == null)
                {
                    mAjaxManager = RadAjaxManager.GetCurrent(Page);
 
                    if (mAjaxManager == null)
                    {
                        mAjaxManager = new RadAjaxManager() { ID = "RadAjaxManager1" };
                    }
                }
 
                return mAjaxManager;
            }
        }
 
        protected override void CreateChildControls()
        {
            Control control = Page.LoadControl(_ascxPath);
            Controls.Add(control);
        }

The code behind of the webpart, in the "Load" method is:

protected void Page_Load(object sender, EventArgs e)
        {
            RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
            manager.EnableAJAX = true;
            manager.AjaxSettings.AddAjaxSetting(gvActuaciones, pnlGrid);
        }

In the ascx file, the RadGrid code is the following code:

<asp:Panel ID="pnlGrid" runat="server">
        <telerik:RadGrid ID="gvActuaciones" runat="server"
            OnNeedDataSource="gvActuaciones_NeedDataSource" AutoGenerateColumns="False"
            ShowStatusBar="True" AllowPaging="True" ShowFooter="True" PageSize="5">
            <ClientSettings>
                <Scrolling  AllowScroll="true" UseStaticHeaders="true"  SaveScrollPosition="true" ></Scrolling>
            </ClientSettings>
            <MasterTableView TableLayout="Fixed" >
                <Columns>
                    <telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="60px" HeaderText="">
                        <ItemTemplate>
                            ...                    
                        </ItemTemplate>                                        
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn ...>
                   <telerik:GridBoundColumn ...>
                   ...
            </MasterTableView>
           </telerik:RadGrid>
</asp:Panel>

I don't know what can I do.
Thank you very much
Álvaro
Top achievements
Rank 1
 answered on 22 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?