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

Enable/disable asp button present outside the ajaxified grid on grid event

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manaswinee
Top achievements
Rank 1
Manaswinee asked on 19 Nov 2010, 01:13 PM

Hello,
I have one ajaxified radgrid which is getting ajaxified through RadAjaxManager.Outside the grid I have two asp buttons.On pageload I am adding ajaxsettings for those buttons.On grid inline edit I am trying to disable those buttons.Those buttons are getting disabled.But I am getting null object exception on clicking the button.If I remove the ajaxsettings from pageload everything works fine but the buttons are not getting disabled.Please suggest me at your earliest...Below are the code in page_load.



 

protected void Page_Load(object sender, EventArgs e)

 

{

 

  RadAjaxMgriPur.AjaxSettings.AddAjaxSetting(RGridImportedData, btnCreateOrder,

 

null);

 

 

 

 

  RadAjaxMgriPur.AjaxSettings.AddAjaxSetting(btnCreateOrder, RGridImportedData, RadAjaxLoadingPaneliPur);

 

 

}


 

 

 

protected void btnCreateOrder_Click(object sender, EventArgs e)

 

{
     //some operations....
   

 

RGridImportedData.Rebind();

 

 

 

 

}

Thanks in advance.

Manaswinee

  

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Nov 2010, 07:03 AM
Hello,


The documentation describes how to disable controls during ajax execution.


-Shinu.
Tags
Grid
Asked by
Manaswinee
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or