Hi everybody,
I'm having trouble with the RadGrid displaying the items from its associated data source. My scenario is as follows:
a user clicks a save-button outside the RadGrid (which itself is in a user control). A modal RadWindow pops up and asks the user for a name to save and then certain database insert-operations take place. After that is successfully done the DataSource of the grid is set to null and the Rebind() is called on the grid. There is a NeedDataSource handler which populates a DataTable and binds it to the DataSource of the RadGrid.
When I check the number of items in the itemcollection I can see that the number has correctly been increased by 1, however that added item
does not display in the grid: I have to click on some button and only then it shows up.
On the other hand if a delete is being done (using a delete button inside the RadGrid) everything works fine, the particular item is immediately removed from the grid. The RadGrid is added to the RadAjaxManager and I'm using Q3 2010. So is there some way to update that view on the itemcollection after an insert ? Any suggestions are highly appreciated.
Thanks, Wolfgang
I'm having trouble with the RadGrid displaying the items from its associated data source. My scenario is as follows:
a user clicks a save-button outside the RadGrid (which itself is in a user control). A modal RadWindow pops up and asks the user for a name to save and then certain database insert-operations take place. After that is successfully done the DataSource of the grid is set to null and the Rebind() is called on the grid. There is a NeedDataSource handler which populates a DataTable and binds it to the DataSource of the RadGrid.
When I check the number of items in the itemcollection I can see that the number has correctly been increased by 1, however that added item
does not display in the grid: I have to click on some button and only then it shows up.
On the other hand if a delete is being done (using a delete button inside the RadGrid) everything works fine, the particular item is immediately removed from the grid. The RadGrid is added to the RadAjaxManager and I'm using Q3 2010. So is there some way to update that view on the itemcollection after an insert ? Any suggestions are highly appreciated.
Thanks, Wolfgang