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

Show/ hide checkbox on Grid popup window

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pravin
Top achievements
Rank 1
Pravin asked on 02 Feb 2014, 04:50 AM
Hi,

I want to hide checkbox control based on condition over telerik grid popup window. I tried by reading control itself but still checkbox label is appearing over the screen.

If we clear Header Text value of template then only colon (:) appears over the screen. Please suggest suitable approach which will help me to hide checkbox control from the popup window.

Thanks in advance

~ Pravin

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 03 Feb 2014, 05:41 AM
Hello,

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
  {
      if (e.Item.IsInEditMode && e.Item is GridEditableItem)
      {
          GridEditableItem item = e.Item as GridEditableItem;
          item["IsActive"].Controls[0].Parent.Parent.Visible = false;
      }
  }
<telerik:GridCheckBoxColumn DataField="IsActive" HeaderText="IsActive" UniqueName="IsActive"></telerik:GridCheckBoxColumn>


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Pravin
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or