I made a test project and got everything working just as I wanted it with the RadUpload control. Great control, very helpful, love it.
Then I decided I wanted to use the RadPageNavigation class to make a multi-page RIA. I have everything setup ok and can navigate between pages just fine, but now the RadUpload control doesn't work. I navigate to the page and it loads correctly, but as soon as I select files, it runs through the FilesSelected event with no problems and immediately after the sub, before hitting any of the other events (I added test subs for each of them with breakpoints to see if something else was causing the issue), it jumps to the Application_UnhandledException sub in App.xaml.vb and I can't figure out why. Is there something I'm not doing to enable the RadUpload control to work inside of the RadPageNavigation framework?
Then I decided I wanted to use the RadPageNavigation class to make a multi-page RIA. I have everything setup ok and can navigate between pages just fine, but now the RadUpload control doesn't work. I navigate to the page and it loads correctly, but as soon as I select files, it runs through the FilesSelected event with no problems and immediately after the sub, before hitting any of the other events (I added test subs for each of them with breakpoints to see if something else was causing the issue), it jumps to the Application_UnhandledException sub in App.xaml.vb and I can't figure out why. Is there something I'm not doing to enable the RadUpload control to work inside of the RadPageNavigation framework?
Exception of type 'System.InvalidOperationException' was thrown. |
at Telerik.Windows.Controls.RadUpload.ProcessSelectedFiles() |
at Telerik.Windows.Controls.RadUpload.OnFilesSelected() |
at Telerik.Windows.Controls.RadUpload.ShowFileDialog() |
at Telerik.Windows.Controls.RadUpload.BrowseButton_Click(Object sender, EventArgs e) |
at System.Windows.Controls.Primitives.ButtonBase.OnClick() |
at System.Windows.Controls.Button.OnClick() |
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) |
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) |
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName) |