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

Updating RadGrid when ItemCommand fired on another grid using RadAjaxManager

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 10 Jan 2011, 01:50 PM
Ok, I have 2 RadGrids on my page as well as a number of other standard ASP.Net controls.

The first grid shows paged invoice data, displaying breif information for all invoices issued for a customer. This grid has a GridButtonColumn (defined as a LinkButton) on it that fires an event that updates the ASP.Net controls to reflect the standard invoice data (such as invoice and delivery addresses, Net, VAT and total costs, order number etc) for the selected invoice, and SHOULD update the second grid to show the line items for the invoice.

I have the page working so that I can page through the first grid (page size is set to 10 at the moment, but there could be more than 10 invoices) and even when I page through and select an invoice, the standard ASP.Net controls update ok.

However I cannot get the second grid (the one with the invoice line items in it) to update even though it is included in the UpdatedControls section of the RadAjaxManager for the first grid.

These grids aren't in users controls, but are in pages that use a masterpage. Other than that they simply reside in div's

Can anyone offer any suggestions?



1 Answer, 1 is accepted

Sort by
0
Karl
Top achievements
Rank 1
answered on 10 Jan 2011, 04:58 PM
Sorted it.

For reference...

When the LinkButton is clicked, an event is fired that gets the relevant data for the selected invoice and the controls are updated, including the second grid, where the DataSource is set to the invoice.SalesLines collection. What I was missing was a InvoiceItemsGrid.ReBind(); call after the DataSource was set..
Tags
Grid
Asked by
Karl
Top achievements
Rank 1
Answers by
Karl
Top achievements
Rank 1
Share this question
or