One suggestion to achieve this is placing the TextBoxes (outside grid) and RadGrid in a UpdatePanel/RadAjaxPanel. Then in ItemCommand event check for the CommandName 'RowClick' (when setting EnablePostBackOnRowClick to True) and get the selected row and set the TextBoxes value.
Another option is using an AjaxManager on page and invoking the ajaxRequest from 'OnrowSelected' client event. In AjaxManager_AjaxRequest server event, get the selected item and set the TextBoxes value as per the cell value for selected row.
i want to do same thing i want to do like if user click on single row from the radgrid the value should be auto populated in the text box which is not wrapped by rad ajax panel. it is out side of the radgrid. also rad grid is wrapped by ajaxmanager.
now using this code i can successfully get the value at server side.
but when i assign the value to the textbox which is showing me properly at code behind but is does not display in the textbox at browser side. no value display in the textbox but if i removed the
this code above the grid then the value will display in textbox when i select the row from the grid. please help me how do i assign the value to the textbox when row is selected and also page should not be refreshed i have tried radajaxpanel, update panel, same problem occurs. without ajax its work perfectly but when i tried to put ajaxpanel or ajax manger i can not see the assigned value in textbox at browser side i am using firefox browser, ASP.net 4.0..
let me know how to deal with this problem.......
answered on 10 Aug 2012, 07:56 AM
I you assign the value on the server-side when a postback from RadGrid occurs, you need to have an AjaxSetting in RadAjaxManager where the grid updates the textbox:
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.