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


private void Set508SortMessage(){ if (RadGrid1.MasterTableView.SortExpressions.Count > 0) { ATSortPane.Visible = AccessibilityMode; String msg = GetString("ActionWorklist.SortCriteria.DisplayText.Text"); String sort = ""; bool firstTime = true; foreach (GridSortExpression gse in RadGrid1.MasterTableView.SortExpressions) { if (!firstTime) { sort = sort + ","; } Common.Framework.SortDirection sd = GetSortDirection(gse.SortOrder); sort = string.Format("{0}{1} {2}", sort, RadGrid1.MasterTableView.Columns.FindByDataField(gse.FieldName).HeaderText, sd); firstTime = false; } lbl508Sort.Text = String.Format(msg, sort); } else { ATSortPane.Visible = false; }}<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="120px" Width="680px"><telerik:RadRotator ID="RadRotator1" runat="server" Height="120px" Width="680px" ScrollDuration="500"
ScrollDirection="Right" FrameDuration="1500" ItemWidth="120px" ItemHeight="100px" RotatorType="AutomaticAdvance"DataSourceID="SqlDataSource1"><ItemTemplate><asp:Image ID="image1" runat="server" CssClass="image" ImageAlign="left" Visible="true"
ImageUrl='<%# String.Format("~/images/movies/{0}", DataBinder.Eval(Container.DataItem, "imagename")) %>' /></ItemTemplate> </telerik:RadRotator><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:cinema mistakesConnectionString %>"SelectCommand="SELECT TOP 10 [imagename] FROM [movie] ORDER BY [mid] DESC"></asp:SqlDataSource> </telerik:RadAjaxPanel>Protected
Sub RadGridApprovers_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridApprovers.ItemCommand
If e.CommandName = "Delete" Then
'do something
End If
End Sub
My question is: does the delete happen first or whatever commands I includein this function?
thank you