Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
139 views
Hai
     I want to change the text of the editcommandcolumn in runtime. In aspx i gave an edit text "edit here". However i want to change the text based on my need. How should i change the code to accommodate this. Please share ideas if you have any.
thanks in advance
RT
Ryan
Top achievements
Rank 1
 answered on 14 Nov 2012
1 answer
93 views
Hi all,

Please provide me a solution to give color for the header of my grid. I have given skin 'Web20' to my radgrid. But i want to change color. Please a css solution so that i can use in my style sheet.

Thanks,
Allen.
Princy
Top achievements
Rank 2
 answered on 14 Nov 2012
2 answers
48 views

I’m reevaluating your asp.net suit. First I must say it has improved a lot since last time and you seem to attend to all of my remarks back then.

Right now I’m testing the scheduler. I want to drag and drop from a grid, and open the insert form in the dropped place. Everything seems to work, except for the resources that seem to lose the selected information in the attributes fields.

I’ve being playing around with the demos and currently the code behind looks like this. The form is opened with the right subject and time, but the resources combos index are never selected:


protected void RadGrid1_RowDrop(object sender, GridDragDropEventArgs e)
        {
            GridDataItem dataItem = e.DraggedItems[0];
 
            Hashtable values = new Hashtable();
            dataItem.ExtractValues(values);
 
            Int64 patId = (Int64)dataItem.GetDataKeyValue("ID"); // patient ID from grid
            ViewState["PID"] = Convert.ToString(patId);
            string fnm = (string)values["fnm"];
            string lnm = (string)values["lnm"];
            string subject = "New appointment for " + fnm + ' ' + lnm;
            string targetSlotIndex = TargetSlotHiddenField.Value;
 
            if (targetSlotIndex != string.Empty)
            {
                RadScheduler1.Rebind();
                ISchedulerTimeSlot slot = RadScheduler1.GetTimeSlotFromIndex(targetSlotIndex);
 
                TimeSpan duration = TimeSpan.FromHours(1);
                if (slot.Duration == TimeSpan.FromDays(1))
                {
                    duration = slot.Duration;
                }
                 
                Appointment app = new Appointment();
                app.Start = slot.Start;
                app.End = slot.Start.Add(duration);
                app.Subject = subject;
                app.Attributes["PatientID"] = Convert.ToString(patId);
                app.Attributes["PhysicianID"] = "1";
                //RadScheduler1.InsertAppointment(app);
 
                TargetSlotHiddenField.Value = string.Empty;
                 
                RadScheduler1.Rebind();
 RadScheduler1.ShowAdvancedEditForm(app);
                RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadGrid1, RadScheduler1);
            }    
        }





Boyan Dimitrov
Telerik team
 answered on 14 Nov 2012
3 answers
52 views
Heey Guys

My quest is how to get the current user that is using the scheduler and when he is creating a new Appointment,how  to save  his userId in the same table where the appointment is saved . 


Thanks for fast answer 

Nikola 
Boyan Dimitrov
Telerik team
 answered on 14 Nov 2012
1 answer
67 views
Hello
I am using RadGrid Q3 2009.
I am exporting the grid to excel and in order to include some summary information in the export before the grid I am using a CommandItemTemplate. However this is messing up the layout of the export a little bit as the grid is displayed below the command item template to the right. Naturally I would like the grid to be displayed directly below the CommandItemItemplate
Thanks in advance for your help
Galin
Telerik team
 answered on 14 Nov 2012
4 answers
278 views
Dear All

I am getting errors when i am deleting an appointment my code and error is given below insert/update working properly but deletion is not working at all
Code C#

protected

 

void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e)

 

{

 

code written for delete
}
private void InitializeComponent()

 

{

 

this.Load += new System.EventHandler(this.Page_Load);

 

 

this.RadScheduler1.AppointmentInsert += new AppointmentInsertEventHandler(RadScheduler1_AppointmentInsert);

 

 

this.RadScheduler1.AppointmentDelete += new AppointmentDeleteEventHandler(RadScheduler1_AppointmentDelete);

 

 

this.RadScheduler1.AppointmentUpdate += new AppointmentUpdateEventHandler(RadScheduler1_AppointmentUpdate);

 

 

this.RadScheduler1.AppointmentCreated += new AppointmentCreatedEventHandler(RadScheduler1_AppointmentCreated);

 

}

 

override

 

protected void OnInit(EventArgs e)

 

{

InitializeComponent();

 

 

base.OnInit(e);

 

}


Error--------------------------------------------------------------------------------------------------
 

Server Error in '/AMS_Baseline_LMS_1' Application.

Cannot locate the parent of appointment with ID = '216673'. Ensure that the parent appointment with ID = '1497' exists and is loaded.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Cannot locate the parent of appointment with ID = '216673'. Ensure that the parent appointment with ID = '1497' exists and is loaded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Cannot locate the parent of appointment with ID = '216673'. Ensure that the parent appointment with ID = '1497' exists and is loaded.]
   Telerik.Web.UI.Scheduling.AppointmentController.DeleteAppointment(Appointment appointmentToDelete, Boolean deleteSeries) +1218
   Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +1583
   Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +59
   Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Error-----------------------------------------------------------------------------------------------------------------------------------------

Can you rectify the error please

Regards

Imtiyaz
Minculescu
Top achievements
Rank 1
 answered on 14 Nov 2012
1 answer
141 views
Hi,
This sounds trivial and simple, however I cannot seem to do it.
I have a parent page with an Ajax Manager, this encapsulates a UserControl that consist of some buttons and a radgrid.
When the "Add" Button is pressed on my user Control a radwindow pops up and following the save of the data on the radwindow, I would like to refresh the RadGrid within the UserControl.
On my Parent Page, I have a RadAjaxManager meaning I cannot add another one to my user control, so how would I rebind and refresh my radgrid on a radwindow close?
I have a RadAjaxProxyManager although I'm not overly sure how to "link" it to my Parent Ajax Manager.
Hope this Makes Sense
Thanks very much for your help
Ryan
Eyup
Telerik team
 answered on 14 Nov 2012
6 answers
177 views
Is it possible to create 2 axis chart?
Danail Vasilev
Telerik team
 answered on 14 Nov 2012
1 answer
87 views
Hi there,

how can i change RadWindow Position from center to the right of the browser.
i cant use MoveTo(): it will fix window to a specified position.


My Requirement is,
Open RadWindow to the right of the browser even if browser resize.
Alok
Top achievements
Rank 2
 answered on 14 Nov 2012
3 answers
266 views
In my application I need to load, edit, and save edited images that are not part of the web site running the page that contains the RadImageEditor. Note that the images are on the same web SERVER as the page running RadImageEditor, but they are on a different web SITE.

It appears that the ImageURL property only accepts a path that is relative to the web site running the applicaition/page
 (at least by default).  Otherwise, an error is thrown.  In my case, the error looks something like this:

Exception type: System.Web.HttpException
Message: 'http://pictures.mywebsite.com/001/graphics/DSC00752.JPG' is not a valid virtual path.
Stack trace:    at System.Web.Util.UrlPath.CheckValidVirtualPath(String path)
   at System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative)
   at System.Web.VirtualPath.Combine(VirtualPath relativePath)
   at System.Web.UI.Control.ResolvePhysicalOrVirtualPath(String path, VirtualPath& virtualPath, String& physicalPath)
   at System.Web.UI.Control.MapPathSecure(String virtualPath)
   at Telerik.Web.UI.RadImageEditor.GetCurrentEditableImage()
   at Telerik.Web.UI.RadImageEditor.ApplyClientOperations()
   at Telerik.Web.UI.RadImageEditor.ControlPreRender()
   at Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

How can I access (load/edit/save) images in RadImageEditor that are outside the relative path?

Thanks.
Vessy
Telerik team
 answered on 14 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?