Update webgrid data from outside the webgrid

5 replies. Last post: July 12, 2012 9:50 PM by Hans Kristian
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello,

I have a drop-down list outside the webgrid. The webgrid has two columns -

a) Decision (edittype = dropdownlist) 

b) Checkbox Column


Scenario: The users want to check multiple check boxes in the grid, then use the drop-down list (which is outside the webgrid) to make a selection, click on a button next to the drop-down.

Expectation : The Decision column will show the value selected from the dropdown. And refreshes the data in the webgrid.

What is happening : The data is updated at the back-end in the database, but the grid is not showing the refreshed data. On rt clicking + Refresh, the new data is shown.

What I want - Is there a way to refresh the webgrid on the button click event once the data is written back to the database? I tried WebGrid1.ClientAction.Refresh in btn_Click event but its not refreshing the grid. i also tried WebGrid1.ClientAction.InvokeScript("ISGetObject('" + WebGrid1.ClientID + "').Refresh();") but it doesnt work.


All times are GMT -5. The time now is 11:53 AM.
Previous Next