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

don't visible checkbox null or empty value in radcombobox

1 Answer 105 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
ne2000
Top achievements
Rank 1
ne2000 asked on 29 Sep 2011, 08:56 PM
hi everbody

I added checkboxes in radcombobox but checkboxes is visible in the items that has null or empty value. how do i hide the checkboxes when item has an empty value.

thank you...

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Sep 2011, 05:26 AM
Hello,

When you are binding data in templates in addition to adding a DataBinder.Eval statement, you must also explicitly call the DataBind method for the items so that the template has access to the Text property.

C#:
protected void Page_Load(object sender, EventArgs e)
{  
    for (int i = 0; i < RadComboBox1.Items.Count; i++)  
    {      
        RadComboBox1.Items[i].DataBind();  
    
}

Thanks,
Shinu.
Tags
ComboBox
Asked by
ne2000
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or