This is a migrated thread and some comments may be shown as answers.

updating rad schadular

4 Answers 88 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
nahla
Top achievements
Rank 1
nahla asked on 25 Jul 2011, 12:03 PM

dear all

have a good day

i've a radschadualr in which students segister there schadual.

this schadual consists of substances each one is (leacture-tutorial-lab).

what i need is forcing the student to choose these sub categories (leacture-tutorial-lab) before leaving to choose new subject. and if he tries an error msg popup saying that "you should choose all substance groop- please complete your choice".

here is the code i wrote but it does't work.

 

if
 
(this.treeView.SelectedNode == null)
 
return;
 
if (this.treeView.SelectedNode.Value != "m")
 
return;
 
string s = this.treeView.SelectedNode.Text;
 
string corsnode = this.treeView.SelectedNode.ParentNode.Text;
 
string cors_id = corsnode.Substring(0, corsnode.IndexOf('-') - 1).Trim();
 
string stu_id = Session["test"].ToString();
 
OracleConnection conn = new OracleConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
 
try
 {
 conn.Open();
 OracleCommand cmd = new OracleCommand("COMPLETE_GROUP_TYPE");
cmd.CommandType =CommandType.StoredProcedure;
 cmd.Connection = conn;
 cmd.Parameters.Add("COURSEID", OracleType.Char).Value = cors_id.ToString();
cmd.Parameters.Add("STUDENTID", OracleType.Char).Value = stu_id.ToString();
 cmd.ExecuteNonQuery();
 }
 catch (Exception ex)
 {
 Label2.Text ="ERROR."+ ex.Message;
 }
 finally
 {
 conn.Close();
 }

4 Answers, 1 is accepted

Sort by
0
nahla
Top achievements
Rank 1
answered on 26 Jul 2011, 11:48 AM
can any body answer me
0
Plamen
Telerik team
answered on 26 Jul 2011, 03:43 PM
Hello Nahla,

It is not very clear which event you are trying to handle and what exactly you are trying to validate. If I understand you correctly, you may have a look at the Advanced Template demo in the AdvancedForm.aspx file to see how the validation issue is handled there.

All the best, Plamen Zdravkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
nahla
Top achievements
Rank 1
answered on 27 Jul 2011, 10:59 AM
Dear Plamen
thank you for your soonest reply

what i have is a schadual tree that have corse node underneath is subgroups (lecture-tutorial-lab)
what i need is to force the student to choose appointement for each subgroup b4 he leaves to another corse.
example//
-cs510
      lec.102 sun(9:am-10.30am).
      tut.105 sat(11am-12.30 pm).
      lab.200 mon(9am-10.30am).
-dem250
      lec205 tus(9am-11am).
      lab200 mon(1pm-2.30pm).

what i need is to force the student to choose all appointements in corse cs510.
b4 leaving to choose in corse dem250.

but i don't know am i write the code in the radschadual appointement created or any other event.
or write it in the tree view itself?

0
Plamen
Telerik team
answered on 29 Jul 2011, 02:08 PM
Hello Nahla,

It is difficult me to understand what exactly seems to be the issue.
Would you please try to isolate the problem in a sample project and send it to us via support ticket so that we can be more helpful.

Regards,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
nahla
Top achievements
Rank 1
Answers by
nahla
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or