Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
Hi ,

I have 40 columns to display in my radgrid and 200 records per page.

I need some columns to be freeze.I tried but the freezing functionality is working fine when i display 10 records per page.

Problem is when is display 200 records per page,when tried to move horizontal scroll bar, it is not moving smoothly. It is taking more time and st-rucking.
Pavlina
Telerik team
 answered on 22 Jul 2013
1 answer
103 views
Hello All,

I am trying to update records in the gridview through "Save" button, and save button is outside of GridView. The problem is with the paging.
When i update records using save button, it is updating records, but paging is not working properly. The next page is showing blank.

protected void Page_Load(object sender, EventArgs e)

{

if(!IsPostBack){

con.Open();

 

 

SqlCommand cmd = new SqlCommand("select * from MyTable", con);

SqlDataAdapter da = new SqlDataAdapter(cmd);

DataSet ds = new DataSet();

da.Fill(ds);

con.Close();

RadGrid1.DataSource = ds;

RadGrid1.DataBind();
}
}

And
protected void btnSave_Click(object sender, EventArgs e)

{

 

foreach (GridDataItem gvr in RadGrid1.Items)

{

 

TextBox UpdateID = gvr["ID"].FindControl("txtID") as TextBox;

TextBox UpdateName = gvr["Name"].FindControl("txtName") as TextBox;

TextBox UpdateDept = gvr["Dept"].FindControl("txtDept") as TextBox;

con.Open();

 

SqlCommand cmd = new SqlCommand("update MyTable set Name = '" + UpdateName.Text + "', Dept = '" + UpdateDept.Text + "'where ID = " + UpdateID.Text, con);

cmd.ExecuteNonQuery();

con.Close();

 

lblresult.Text = " Details Updated successfully";

}

 
Can you suggest me how can i resolve this?
Thanks,
Venkata.

}

 

 

 

 

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2013
1 answer
273 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
60 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
94 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
110 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
118 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
129 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
164 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
119 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?