Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
152 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
188 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
134 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
168 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
142 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
1 answer
131 views
hi there,

i just want to ask what is the default behaviour of radcombobox for selecting items when "checkboxes=true"

is it user need to click exactly on the checkbox of each items or user can also just click the text of the item?

i ask this because based on this demo, we can select and deselect item by just clicking on the text but when i tried to implement that i need to click exactly on the checkbox to select and deselect the item..


regards,


nahwin
Shinu
Top achievements
Rank 2
 answered on 22 Jul 2013
1 answer
183 views
Hello,

I am looping through a datatable. For each row in the datatable, after executing set of commands, I want an alert message to be displayed and when the user clicks OK resume the loop. Is this possible?

        Dim dt As DataTable

        For i As Integer = 0 To dt.Rows.Count - 1

//Execute some code here

  RadAjaxManager1.Alert(newtid & " is assigned to Route " & rtNm)

//Resume the Code

        Next

Thanks

Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Jul 2013
1 answer
300 views
Hi  All,
 
 I am creating 3 Radnumeric Textbox dynamically and i have to set the property TextMode as password , How can i implement this in RadNumeric Textbox without using any jscript.
If I use RadMaskedText box i dont have maxlength and cannot restrict the input value to integer.
If I use RadTextbox i cannot restrict the input value to integer and while setting the text box data in page load  the (bullet format is not visible) textbox will be empty . Please suggest me any approcah in the above scenario. I am not allowed to use Jscript or Jquery for keypress or keyup

Thanks,
Rakesh
Konstantin Dikov
Telerik team
 answered on 22 Jul 2013
1 answer
270 views
Hello,
Could you show me or point me to the direction to figure out how I can actually disable the "onclick" event on the disable menu item? Please look at this code segment. Even when the "ADD-PROFILE-LIST" menu item is disabled, when clicking on it, the "ShowEditForm" script still activates, which pop-ups a window.

Thanks in advance.

Tri
P.S: I don't have a way to attach the .zip file with all the code files.
<telerik:RadMenu ID="rmnSideBar" runat="server" Flow="Vertical" Skin="Default" EnableEmbeddedSkins="True"
    EnableSelection="false" Style="z-index: 3900;">
    <Items>
        <telerik:RadMenuItem runat="server" HoveredImageUrl="~/Images/Buttons/btn_Functions_glow.png"
            ImageUrl="~/Images/Buttons/btn_Functions.png" Width="26px">
            <Items>
                <telerik:RadMenuItem runat="server" ImageUrl="~/Images/24/report_add_24.png" Text="Add to Profile List"
                    Visible="true" onclick="return ShowEditForm('PopWin1', 0, 520, 370);" Enabled="false"
                    Value="ADD-PROFILE-LIST">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2013
4 answers
226 views
Hello,

I am using telerik version 2012.1.515.35 with ASP.NET 3.5, C# 2008.

I have a RadTreeview on ASPX page in side a DIV.

The requirement is make RadTreeNode's width 100% of DIV width and also the node should be click-able (can be able to fire client side events).

I tried to set the width of node in NodeDataBound event but the result is nothing.

I also have tried to set width of class .rtIn to 100% but it is not changing the result.

Please see my attached screen-shot.

Any solution?

Thanks
Magdalena
Telerik team
 answered on 22 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?