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

Radgrid not updating on first update, works perfect from second call on

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tyler
Top achievements
Rank 1
Tyler asked on 12 Jun 2015, 07:26 PM

Hello,

I have implemented a drag-drop from one Radgrid to another. When the target grid receives a drop, it updates a SQL table. The target grid is using a DataSourceID to the said SQL table. I have placed a Radgrid.Rebind() in the postback call. Everything works great - except for the first time. When I drop the first item, the target grid does not update but I can see that it updated the SQL table. After the first item, I can continuously drop more items from the source grid and the target grid will refresh every time to represent the data in the SQL table using the Rebind in postback. What would cause the first instance of a rebind to not work properly?

I saw on some posts to place the Rebind in the page's PreRender event but that also did not work. Any suggestions are much appreciated. Thank you.

1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 12 Jun 2015, 09:37 PM

Hey Tyler,

We all are experiencing the same problem. It appears to be a breaking change related to changes they made since Q3. I posted a work around for someone else using client side data binding in another thread. Basically, if you make a call to RadGrid.MasterTableView.set_currentPageIndex(1); when the number of DataItems = 0, immediately after the update, it will refresh the grid. Have a look at that thread and see if it will help.

Cheers,

Jonathan

Tags
Grid
Asked by
Tyler
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Share this question
or