Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
<asp:CheckBox> and columnKey
posted

I added a RowTemplate and in the RowTemplate I have a <asp:checkbox> and I want to set the columnKey to a column named "HasBattery". The problem is that <asp:checkbox> is rendered as a <span> and within the <span> a <input> element. How can this correctly be done?

Parents
No Data
Reply
  • 7694
    posted

     

    Hello,

    You can use the built in UltraWebGrid CheckBox. You can add this column with two ways:
    The first is design time:

    Add new attribure (new column):

     

     <igtbl:UltraGridColumn Type="CheckBox"></igtbl:UltraGridColumn>

     

    in tag Colums of Bands tag

     

    And second is run time from code-behind:

    protected void Page_Load(object sender, EventArgs e)

        {

    UltraWebGrid1.Columns.Insert(0, "fromCode");

    UltraWebGrid1.Columns[0].Type = Infragistics.WebUI.UltraWebGrid.ColumnType.CheckBox;

    this.UltraWebGrid1.DisplayLayout.Bands[0].Columns[0].Header.Caption = "code-behind:";

        }

    Hope this helps.

     

Children