How to set Checkbox 's value,it's only a BoxLabel proterty

  1. #1

    How to set Checkbox 's value,it's only a BoxLabel proterty

    some of code is below:

                DataSet ds = new BLL.Product.ProductWorkProCategory().List();
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    Coolite.Ext.Web.Checkbox item = new Coolite.Ext.Web.Checkbox();
                    item.BoxLabel=dr["ProductWorkProCategoryName"].ToString();
                    item.Value = dr["ProductWorkProCategoryId"].ToString(); //it is wrong.
                    InsideMachiningPactWorkId.Items.Add(item);
                }
  2. #2

    RE: How to set Checkbox 's value,it's only a BoxLabel proterty

    Hi cjy1002,

    You should set the .Checked property.


    Example


    item.Checked = true;

    Hope this helps


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Ext.net v2 Beta release: Checkbox BoxLabel property is
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 19, 2012, 1:01 PM
  2. [CLOSED] checkbox duplicate boxlabel
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Nov 02, 2011, 11:08 AM
  3. Set boxlabel of checkbox to the left side
    By wh0urdady in forum 1.x Help
    Replies: 0
    Last Post: Jun 14, 2010, 5:52 PM
  4. [CLOSED] Checkbox BoxLabel font different
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 27, 2009, 8:15 AM
  5. [INVALID] CheckBox BoxLabel?
    By Timothy in forum Bugs
    Replies: 3
    Last Post: Jun 24, 2008, 5:43 AM

Posting Permissions