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

Enable / Disable Rad Grid

1 Answer 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 05 Feb 2015, 01:45 PM
Dear Friends,
I created RadGrid with Enabled = "false". The grid got disabled.

Now i want to enable Grid cells when Edit Button click through Javascript.

I tried Like this

<ClientEvents OnBatchEditOpened="OnBatchEditOpened" />

//Enable/Disable Grid cell
function OnBatchEditOpened(sender, args)
{   
    if(EventID=="EDIT") 
        args.get_cell().getElementsByTagName("input")[0].disabled = false;
}

but the grid and cells are not enabling.

How to Enable ? Or what is wrong in this code.

Regards,
Rajendran

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 10 Feb 2015, 12:36 PM
Hello Raj,

Note that when the RadGrid is disabled you should firstly enable the whole RadGrid control as you can not enable simple cell in disabled grid. Therefore first enable the whole control and then try performing the batch editing.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Raj
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or