Hi,
I have a radGrid,
in RadGrid1_ItemDataBound, i am attaching clientside event
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem && e.Item.IsInEditMode)
{
GridDataItem item = (GridDataItem)e.Item;
TextBox textBox = item["CompanyName"].Controls[0] as TextBox; // Get the textbox for column CompanyName
textBox.Attributes.Add("onFocusout", "OnRadGridCellFocusOut("+ parameters +")");
}
This client event makes an AjaxRequest when the column loose focues
function OnRadGridCellFocusOut(RowIndex, ColumnIndex)
{
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(RowIndex + ":" + ColumnIndex);
}
In AjaxRequest Handler
protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
//do some processing to update the next column
}
after the processing, i want to update the value of next column.
for example
if Col1 is updated to IBM i will make Col2 as 'Partener'.
i was thinking if AjaxRequest can return a value to clientside caller, i could update it from there.
What is the best way to do it?
thanks
virendra