Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
156 views
Hello,

I have a grid where I put all items in edit mode.  I would like users to be able to enter all the info, then save it when they are done.  However, I have a combo box that based on the selection I want to change values in a textbox in another column.  Right now I postback when the selected index is changed.  In doing so, I have to save all of the values in the grid to the database so they are not lost on postback.  I do need to query the database to make the decision on what to put into the text box.  Obviously having to save all the items each time and postback slows the performance significantly.  Is there any way to work around this without doing a postback?  The grid is bound to a SQL data source. 

Thanks!
Casey

Maria Ilieva
Telerik team
 answered on 14 Nov 2012
3 answers
111 views
Hi
How can I set caption to a radgrid insert form.
Shinu
Top achievements
Rank 2
 answered on 14 Nov 2012
3 answers
870 views
Hi,

How do I get the columnName/UniqueName of the field that has been clicked in order to sort the grid by that column?

Thank you !!
Shinu
Top achievements
Rank 2
 answered on 14 Nov 2012
2 answers
152 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
108 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
55 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
63 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
130 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
293 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
154 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?