Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
291 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
149 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
194 views
Is it possible to create 2 axis chart?
Danail Vasilev
Telerik team
 answered on 14 Nov 2012
1 answer
96 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
281 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
3 answers
177 views
Sorry if this has been asked, but I could not find anything relating to it, but how can I load an email to the editor on the Clientside.  I see there is an insertImage method, but I can't find any documentation on it, and it throws errors when I try to use it based on the one example I found. 

Thanks,
Joe
Dobromir
Telerik team
 answered on 14 Nov 2012
9 answers
128 views
I installed the August 28 hotfix for 2012Q2 to see if a reported display problem with the Menu control using a 2-column submenu had been fixed. When I installed that update, I now see an error instead of a display problem when a submenu is set to 2-column display.

The error occurs in httpErrorPageScripts.js, in function initConnectionStatus(), on the line:
    checkConnection.innerText = L_CONNECTION_ON_TEXT;
The constant L_CONNECTION_ON_TEXT is undefined. The same error occurs for other L_ constants.
Genady Sergeev
Telerik team
 answered on 14 Nov 2012
4 answers
447 views
Hi, 

I tried searching the forum and found a couple of threads, but they didn't help. I have a RadGrid that has another RadGrid nested which also has another nested RadGrid. So there are 3 levels: Level 1 has information about a costumer, level 2 has information about customer´s purchases, and level 3 has info about products that the costumer has bought during the purchase.  

I have a GridClientSelectColumn (and the AllowRowSelect="True" in <ClientSettings>) on the level 2 (the purchases). I can access the selected purchase by iterating trough all items in the whole radgrid and checking which item has its Selected set to true. 

My problem is I cannot figure out how to make it so that only one purhase (level 2 item) could be selected in the whole grid. Right now I can select one purchase per each customer, which is not at all what I want. I guess I should somehow always unselect the previous selection just before selecting the new one.

I tried to subscribe to SelectedIndexChanged of the nested radgrid, but it doesn´t seem to fire. Which event should I use? 

I also found out that this could done with some client side javascript trick, but I am not sure how to do it. Also I would like to do this on the server side if possible...

So what is the "official" way to achieve this "select only one row among nested radgrids" -scenario?
Eyup
Telerik team
 answered on 14 Nov 2012
1 answer
133 views
Hi,
in my radgrid i have a gridimagecolumn. Bound like so
DataImageUrlFields="Status"
DataImageUrlFormatString="~/Content/Images/Status/{0}.gif"

How can i change the image when the database value for Status is DBNULL
if cell.text = DBNULL then
DataImageUrlFormatString="~/Content/Images/Status/waiting.gif"
end if

Thanks
Shinu
Top achievements
Rank 2
 answered on 14 Nov 2012
5 answers
581 views
I am not seeing the button image in a previously working application when I use Telerik version 2012.3.1030.45 (targeting Asp.Net 4.5) or 2012.3.1030.40 (targeting Asp.Net 4.0). I tried both a GridButtonColumn and a GridClientDeleteColumn, and neither one displays the image. Looking at the source code shows the image source attribute is an empty string. The identical code works fine in version 2012.2.724.40.
<telerik:GridClientDeleteColumn UniqueName="TestDeleteColumn"
    HeaderText="Delete" HeaderStyle-Width="45" Text="Delete Invitation"
    ButtonType="ImageButton" ImageUrl="../Images/Delete.gif"
    ConfirmTitle="Delete?" ConfirmDialogType="RadWindow"
    ConfirmTextFields="PersonDisplay" ConfirmTextFormatString="Delete invited speaker {0}?"
    />
  
<telerik:GridButtonColumn UniqueName="DeleteColumn" ButtonType="ImageButton"
    CommandName="Delete" Text="Delete Speaker" ImageUrl="~/Images/Delete.gif"
    HeaderText="Delete" HeaderStyle-Width="45"
    ConfirmTitle="Delete?" ConfirmDialogType="RadWindow"
    ConfirmTextFields="PersonDisplay" ConfirmTextFormatString="Delete invited speaker {0}?"                  
    >
    <ItemStyle HorizontalAlign="Center" CssClass="CursorHand" />
</telerik:GridButtonColumn>

Eyup
Telerik team
 answered on 14 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?