7 Answers, 1 is accepted
0
Schlurk
Top achievements
Rank 2
answered on 26 Oct 2009, 08:17 PM
Are you looking to delete or just clear the selection? I'm not sure how you do your search criteria but if you just do a search for, lets say " " or a character you know does not exist in your grid it should return a blank grid with all the columns intact.
0
Veshala
Top achievements
Rank 1
answered on 26 Oct 2009, 08:29 PM
Thanks for the reply.
I am hitting the webservice to get the result set. To just clear the grid rows, i don't want to hit the webservice again with empty parameter values. Is there any other solution to clear the rows.
Thanks
0
Sunny
Top achievements
Rank 1
answered on 27 Oct 2009, 02:02 PM
Veshala,
See the link below,
0
Veshala
Top achievements
Rank 1
answered on 27 Oct 2009, 02:23 PM
It doesn't work to me.
I want to clear the grid on click of 'Clear button' not on Page_load event.
protected void btnClearCriteria_Click(object sender, EventArgs e)
{
RadGrid1.DataSource = new int[] { };
}
I tried this also :
RadGrid1.DataSource = new object[0];
Is there any other solution for this problem.
Thanks
0
Sunny
Top achievements
Rank 1
answered on 27 Oct 2009, 02:51 PM
Try to Rebind()
RadGrid1.DataSource = new int[] { };
RadGrid1.Rebind();
RadGrid1.Rebind();
0
Veshala
Top achievements
Rank 1
answered on 27 Oct 2009, 02:59 PM
It is working now.
Thank you very much.
0
Hi Veshala,
It is good to hear everything is working for you know.
Let us know if you need any help in the future, we (and the community, as you can see) are more than happy to help.
Greetings,
Evan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
It is good to hear everything is working for you know.
Let us know if you need any help in the future, we (and the community, as you can see) are more than happy to help.
Greetings,
Evan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.