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

AJAX inside of a grid

3 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ana
Top achievements
Rank 1
Ana asked on 05 May 2008, 01:03 PM
Hi!
How can I ajaxify controls inside of a (autogenerated) edit form?
I have a template column with two textboxes and one image button in edit item template, and on a press of that button should only GridDropDownColumn (or dropdownlist when in edit mode) be updated. How to do that?
Thanks, Ana

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 May 2008, 01:11 PM
Hi Ana,

Go through the following help document link.
AJAX for controls inside Telerik RadGrid

Princy.
0
Ana
Top achievements
Rank 1
answered on 05 May 2008, 02:57 PM
Thanks.
But how to get controls of an item when is in edit mode?
I mean, I call function

protected

override void RaisePostBackEvent(IPostBackEventHandler source, String eventArgument)
{
}

but now I need controls. In ItemCommand handler, I get them with (for example):

TextBox

tbPTT = ((System.Web.UI.WebControls.TextBox)(((System.Web.UI.WebControls.ImageButton)(e.CommandSource)).Parent.FindControl("tbPTT")));


but there is no "e" in RaisePostBackEvent function.
Plese help.
Thanks, Ana

0
Prangadj
Top achievements
Rank 1
answered on 05 May 2008, 03:16 PM
The ASP.NET AJAX RadGrid does not have internal ajax. To ajax-enable it use RadAjaxManager or RadAjaxPanel as in the online demos:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/WebMail/DefaultCS.aspx

Mark this thread as answer if you find it helpful pls

Prangadj
Tags
Grid
Asked by
Ana
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ana
Top achievements
Rank 1
Prangadj
Top achievements
Rank 1
Share this question
or