Hello everyone
In my application I have a Telerik.Reporting.ReportViewer to load a preview of a report. I also have many controls like RadTextBox or RadDropDownList etc. What I'm trying to do is when the user changes the text of a RadTextBox it should reload the ReportViewer. To do this I'm using RefreshReport() method. But when I call this method it loses the focus on the textbox. I already tried refocus the control after calling the RefreshReport() method but this didn't work neither. I found this thread of October 2009:
http://www.telerik.com/forums/winforms-report-viewer-quot-refreshreport-quot-sets-focus
I'm wondering now, 5 years later, if there is a way to prevent losing focus on the control when calling RefreshReport() method?
Ah, if you want to have a look at my code, here it is:
InstanceReportSource report = new InstanceReportSource();
reportSpedi.ReportSource = new Spediauftrag(this);
reportSpedi.RefreshReport();
// active textbox
txtSpediGewicht.Select();
Regards,
Danilo
In my application I have a Telerik.Reporting.ReportViewer to load a preview of a report. I also have many controls like RadTextBox or RadDropDownList etc. What I'm trying to do is when the user changes the text of a RadTextBox it should reload the ReportViewer. To do this I'm using RefreshReport() method. But when I call this method it loses the focus on the textbox. I already tried refocus the control after calling the RefreshReport() method but this didn't work neither. I found this thread of October 2009:
http://www.telerik.com/forums/winforms-report-viewer-quot-refreshreport-quot-sets-focus
I'm wondering now, 5 years later, if there is a way to prevent losing focus on the control when calling RefreshReport() method?
Ah, if you want to have a look at my code, here it is:
InstanceReportSource report = new InstanceReportSource();
reportSpedi.ReportSource = new Spediauftrag(this);
reportSpedi.RefreshReport();
// active textbox
txtSpediGewicht.Select();
Regards,
Danilo