updating rad schadular

5 posts, 0 answers
  1. nahla
    nahla avatar
    5 posts
    Member since:
    Feb 2011

    Posted 25 Jul 2011 Link to this post

    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();
     }
  2. nahla
    nahla avatar
    5 posts
    Member since:
    Feb 2011

    Posted 26 Jul 2011 Link to this post

    can any body answer me
  3. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 26 Jul 2011 Link to this post

    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!

  4. nahla
    nahla avatar
    5 posts
    Member since:
    Feb 2011

    Posted 27 Jul 2011 Link to this post

    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?

  5. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 29 Jul 2011 Link to this post

    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.

Back to Top