Page 2 of 2

Re: Wpf ribbon preview command binding

Posted: Fri Jan 10, 2014 10:07 am
by gugler
Hello!

After updating my solution to Version 2013.3 some of the command bindings stopped working. In Detail, the PageSizeCommand, PageDeleteCommand, PageNewCommand and PageDesignCommand are not working.

Have there been any changes in this update?

Here is a snippet of my XAML with the affected bindings:

Code: Select all

<telerik:RadRibbonButton Text="Seitengröße" Command="report:StiWpfViewerControl.PageSizeCommand" CommandTarget="{Binding WorkspaceView.CurrentItem.Viewer}" Size="Large" LargeImage="/SigiNX;component/Images/32/page_size.png" />
<StackPanel>
	<telerik:RadRibbonButton Text="Seite löschen" Command="report:StiWpfViewerControl.PageDeleteCommand" CommandTarget="{Binding WorkspaceView.CurrentItem.Viewer}"  Size="Medium" SmallImage="/SigiNX;component/Images/16/page_delete.png" 
							 telerik:ScreenTip.Description="Löscht die aktuelle Seite aus dem Bericht. Die Änderung ist nur für diesen Ausdruck gültig." telerik:ScreenTip.Title="Seite löschen"/>
	<telerik:RadRibbonButton Text="Seite einfügen" Command="report:StiWpfViewerControl.PageNewCommand" CommandTarget="{Binding WorkspaceView.CurrentItem.Viewer}" Size="Medium" SmallImage="/SigiNX;component/Images/16/page_add.png" 
							 telerik:ScreenTip.Description="Fügt eine leere Seite in den Bericht ein. Die Änderung ist nur für diesen Ausdruck gültig." telerik:ScreenTip.Title="Seite löschen"/>
	<telerik:RadRibbonButton Text="Seite bearbeiten" Command="report:StiWpfViewerControl.PageDesignCommand" CommandTarget="{Binding WorkspaceView.CurrentItem.Viewer}" Size="Medium" SmallImage="/SigiNX;component/Images/16/page_edit.png" 
							 telerik:ScreenTip.Description="Öffnet den Editor. Dort können einzelne Inhalte des Berichts geändert werden. Die Änderung ist nur für diesen Ausdruck gültig." telerik:ScreenTip.Title="Seite löschen"/>
</StackPanel>

Re: Wpf ribbon preview command binding

Posted: Fri Jan 10, 2014 11:16 am
by HighAley
Hello.

These buttons was hidden in this release. And the corresponding commands don't work if there is the buttons are hidden.
There is also the Preview Settings property of the report where these buttons will be disabled.
If you need to these commands be always available. You could set next static options:

Code: Select all

StiOptions.Viewer.Windows.ShowPageNewButton = true;
StiOptions.Viewer.Windows.ShowPageDeleteButton = true;
StiOptions.Viewer.Windows.ShowPageDesignButton = true;
StiOptions.Viewer.Windows.ShowPageSizeButton = true;
Thank you.

Re: Wpf ribbon preview command binding

Posted: Fri Jan 10, 2014 11:30 am
by gugler
Hi!
I tried to include the static Options an also tried to set the Options explicitly on the Viewer, but the commands still don't work.
I'm afraid i don't get it.

Code: Select all

StiOptions.Viewer.Windows.ShowPageNewButton = true;
StiOptions.Viewer.Windows.ShowPageDeleteButton = true;
StiOptions.Viewer.Windows.ShowPageDesignButton = true;
StiOptions.Viewer.Windows.ShowPageSizeButton = true;

viewer = new Stimulsoft.Report.Viewer.StiWpfViewerControl();
viewer.ShowPageNew = true;
viewer.ShowPageDelete = true;
viewer.ShowPageDesign = true;
viewer.ShowPageSize = true;

Re: Wpf ribbon preview command binding

Posted: Sat Jan 11, 2014 10:10 am
by HighAley
Hello.

The Preview Settings of the report should be set too.
We have made an improvement. This options will work in our next prerelease build.

Thank you.

Re: Wpf ribbon preview command binding

Posted: Mon Jan 20, 2014 8:34 am
by gugler
Hi!

Tried the Settings with the internal build from last friday (17.01). Now the commands are working as expected, but when i use the "Page Design" button, the designer only Shows a blank page!

Re: Wpf ribbon preview command binding

Posted: Mon Jan 20, 2014 1:40 pm
by HighAley
Hello.

Please, try to click on the page. Will the report appear?
We are working of the solution of this issue now.

Thank you.

Re: Wpf ribbon preview command binding

Posted: Mon Jan 20, 2014 2:40 pm
by gugler
Hello!

Yes, the Report appears when i click on the page. Can you please inform me as soon as you fixed that?

thank you
Michael

Re: Wpf ribbon preview command binding

Posted: Tue Jan 21, 2014 7:05 am
by HighAley
Hello.

We have fixed this issue.
The patch will be available in our next prerelease build on January 24.

Thank you.