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

Radwindow close refresh event no causing needDataSource event to be fired on rebind

1 Answer 44 Views
Window
This is a migrated thread and some comments may be shown as answers.
Steve Holdorf
Top achievements
Rank 1
Steve Holdorf asked on 06 Aug 2012, 04:11 PM
I have created a RadWindow/RadGrid combination that displays the RadWindow when a row on the grid is doubled clicked. I have javascript methods in both the RadWindow asp page and the grid's page (see code below) now when the window closes I need the NeedDataSource event to be fired when the rebind in the javascript is executed. I don't think that I am wiring the event correctly or performing the process correctly. Can you provide some advise?

RadWindow page javascript:

function CloseAndRebind {
    GetRadWindow().BrowserWindow.RefreshGrid(arg);
    RadWindow().Close();
}

RadGrid page javascript:

function RefreshGrid(arg) {
    $find("<%= RaidAjaxManager1.ClientID %>").AjaxRequest("Rebind");
}

Please note that the RadGrid is the UpdateControl in the RadAjaxManager. Also, the grid does appear to have an effect of all rows being highlighted on the rebind but the NeedDataSource is never called.

Thanks,

Steve Holdorf

1 Answer, 1 is accepted

Sort by
0
Steve Holdorf
Top achievements
Rank 1
answered on 06 Aug 2012, 05:50 PM
 Got it working! what I had to do was set the MasterTableView EnableViewState="false" and it worked!
Tags
Window
Asked by
Steve Holdorf
Top achievements
Rank 1
Answers by
Steve Holdorf
Top achievements
Rank 1
Share this question
or