/*
     * protected void ListCandidates_SelectedIndexChanged(object sender, EventArgs e)
     * {
     *  if (this.ListCandidates.SelectedIndex >= 0)
     *  {
     *      int candidateId = Int32.Parse(this.ListCandidates.SelectedValue);
     *
     *      FocusOnCandidate(candidateId);
     *  }
     * }
     *
     * protected void ListVote_SelectedIndexChanged(object sender, EventArgs e)
     * {
     *  if (this.ListVote.SelectedIndex >= 0)
     *  {
     *      int candidateId = Int32.Parse(this.ListVote.SelectedValue);
     *
     *      FocusOnCandidate(candidateId);
     *  }
     * }*/

    /*
     * private void FocusOnCandidate(int candidateId)
     * {
     *  MeetingElectionCandidate candidate = MeetingElectionCandidate.FromIdentity(candidateId);
     *
     *  this.LiteralSelectedCandidatePhoto.Text =
     *      "<img src=\"http://data.piratpartiet.se/Handlers/DisplayPortrait.aspx?YSize=320&PersonId=" +
     *      candidate.PersonId.ToString() + "\" />";
     *
     *  this.LabelSelectedCandidateStatement.Text = candidate.CandidacyStatement;
     * }*/

    protected void ListCandidates_ItemCreated(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
    {
        if (e == null)
        {
            return;
        }

        string itemValue = e.Item.Value;

        if (itemValue.Length < 1)
        {
            return;
        }

        int identity = Int32.Parse(itemValue);

        MeetingElectionCandidate candidate = MeetingElectionCandidate.FromIdentity(identity);

        /*
         * if (candidate == null)
         * {
         *  return;
         * }
         *
         * Label label = (Label) e.Item.FindControl("LabelCandidate");
         * label.Text = candidate.Person.Canonical;*/
    }
    protected void car_listbox_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
    {
        DataSet ds = generateArrayIndex();

        MapLoad(ds, UpdatePanelCarListBox, true);
        DataTable dt = new DataTable();

        dt            = ds.Tables[0];
        dt.PrimaryKey = new System.Data.DataColumn[] { dt.Columns[0] };
        dt.Merge(ds.Tables[1]);
        RadGrid1.DataSource = dt;
        RadGrid1.Rebind();
        updatePanelDashboardGrid.Update();
    }
    protected void ListboxFleet_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
    {
        DataSet ds = generateArrayIndex();

        if (!liveFollow.Checked)
        {
            MapLoad(ds);
            UpdatePanelReplayMap.Update();
        }
        DataTable dt = new DataTable();

        dt            = ds.Tables[0];
        dt.PrimaryKey = new System.Data.DataColumn[] { dt.Columns[0] };
        dt.Merge(ds.Tables[1]);
        RadGrid1.DataSource = dt;
        RadGrid1.Rebind();
        updatePanelDashboardGrid.Update();
    }
Beispiel #4
0
 protected void QuestionRadListBox_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
 {
     try
     {
         RG_FeedBack.Visible = true;
         StringBuilder          sb         = new StringBuilder();
         IList <RadListBoxItem> collection = rlb_Quetions.CheckedItems;
         foreach (RadListBoxItem item in collection)
         {
             if (sb.Length == 0)
             {
                 sb.Append(item.Value);
             }
             else
             {
                 sb.Append("," + item.Value);
             }
         }
         Label1.Text = sb.ToString();
         if (Label1.Text == "")
         {
             _obj_SMHR_FEEDBACK_QUESTION.FEEDBACK_ID = Convert.ToString(0);
         }
         else
         {
             _obj_SMHR_FEEDBACK_QUESTION.FEEDBACK_ID = Convert.ToString(Label1.Text);
         }
         _obj_SMHR_FEEDBACK_QUESTION.OPERATION = operation.EMPTY1;
         DataTable dt = BLL.get_FeedbackQuestion(_obj_SMHR_FEEDBACK_QUESTION);
         RG_FeedBack.DataSource = dt;
         Session["datatable"]   = dt;
         RG_FeedBack.DataBind();
         RG_FeedBack.Visible = true;
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_TrainingFeedBack", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
Beispiel #5
0
 protected void rlbOfficeFilters_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
 {
     rgCooperativeFunding.Rebind();
 }
Beispiel #6
0
 protected void rlbColumnSelection_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
 {
     rcbFormat.SelectedValue = "Custom";
     rgCooperativeFunding.Rebind();
 }