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

Dynamic Bind Delete Button

3 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 09 Jun 2011, 06:57 AM
I Dynamic Bind Delete Button in that radgrid ,
It's not properly work

System.Webforms.pagerequestmanagersevererrorexception.Invalid post back or callback arguments


Thanks,
Mohamed.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 09 Jun 2011, 09:19 AM
Hello Mohamed,

Based on the provided information I am not able to find the exact cause of the error. Can you share the grid declaration and the code related to the delete button?

Thank you.


Greetings,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
mohamed
Top achievements
Rank 1
answered on 09 Jun 2011, 10:05 AM
Hello Pavlina ,
I give delete button dynamic like that below coding
 
                GridButtonColumn btncol = new GridButtonColumn();
                this.RadGrid1.MasterTableView.Columns.Add(btncol);
                btncol.ButtonType = GridButtonColumnType.ImageButton;
                btncol.HeaderStyle.Width = 10;
                btncol.CommandName = "Delete";
                btncol.Text = "delete";
                btncol.UniqueName = "DeleteColumn";
                btncol.CommandArgument = "Child";
                btncol.ConfirmDialogType = GridConfirmDialogType.RadWindow;
                btncol.ConfirmText = "Are You Sure Want To Delete This Record?";
                btncol.ConfirmTitle = "Delete Confirm";

not go radgrid itemcommand
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
}

Thanks,
Mohamed.
0
Pavlina
Telerik team
answered on 14 Jun 2011, 04:14 PM
Hi Mohamed,

Can you verify that you enabled the viewstate for the grid in this configuration? Additionally, verify that you are using the latest version 2011.1.519 of RadControls for ASP.NET AJAX in your application.

If the cause of the problem seems to be elsewhere, isolate a stripped working version of your project and send it enclosed to a formal support ticket. I will familiarize with your complete code logic and will get back to you with more info on the subject.

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
mohamed
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
mohamed
Top achievements
Rank 1
Share this question
or