GetTableData question
Hi there,
I have the situation as follows:
I have custom web part, which is provider and consumer at the same time. It implements IWebPartTable interface. When I work with my custom web part in "chain mode", which means web part p1 provides data for web part p2 and web part p2 provides data for web part p3 (p1->p2->p3) the data in all web parts are displayed properly. But, if I work with my web part in "parallel mode", which means web part p1 provides data for web parts p2 and p3 (p1->p2, p1->p3), the data only displayed in last web part p3. All connections are there!
The problem is that I must move using TableCallback object from GetTableData method on class level. Before moving it on class level, it looked as follows:
public void GetTableData(TableCallback callback)
{
callback(_table.Rows);
}
After moving it, it looks as follows:
public sealed class TableProviderWebPart : WebPart, IWebPartTableExtended
{
private TableCallback tableCallback;
...
public void GetTableData(TableCallback callback)
{
this.tableCallback = callback;
}
}
Do you have any suggestion how to make my web part work in "parallel mode" as well?
Thank you in advance.
Goran Tesic
|