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

Find RadToolBar control is a commandItem in RadGrid

1 Answer 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Varun
Top achievements
Rank 1
Varun asked on 05 Jun 2014, 04:27 PM
Hi
I have a RadToolBar and RadToolBarButton as a commandItem in RadGrid. Now a RowClick event of the grid I have to disable few RadToolBarButtons. I have a ccall to javascript call to RowClick event in ClientEvents of RadGrid. Now the statement

var toolbar = $find("<%= RadToolbar.ClientID %>"); 
is giving me error that Name 'RadToolBar' is not declared. I realized that ClientEvent call is before the RadToolBar is there anyway I can find the RadToolBar control in the RadGrid??

Thanks
Varun

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Jun 2014, 05:11 AM
Hi Varun,

Please try the below JavaScript to achieve your scenario.

JavaScript:
var ToolBarButton = $telerik.findControl(sender.get_element(), "RadToolBar1");

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