Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                    I was trying to use a ReportToolbarComboBox to select the displayed Report.

                                    But I can find out how to know which item is selected (not in pageload or javascript).

                                    When I change the Item the clientevent "ItemValueChanged" is raised, but I can't find out which item was selected.

                                    I also cant find the documentation about script "ItemValueChanged" event of the ReportToolbar.

                                    Thanks

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                Hi Pedro,

                                Thank you for your message.

                                I suggest that you use the lastSuccessValue property to accomplish this task. Please review the attached project for additional information.

                                Q425146.zip
                                • Pedro Rodrigues 08.20.2012

                                  Hi Elliot,
                                  How do I know in PageLoad which item is selected. I have to set the report in PageLoad.
                                  In the changes I made to your sample project, I get the combobox in PageLoad, but I cant find out which item is selected...
                                  How do I know in ItemValueChanged, the name of the control that raised the event? (e.item.name have no value...)
                                  Could you also send me the link to the documentation page about this item? I couldnt found it.
                                  Thanks

                                • >>>>
                                  How do I know in ItemValueChanged, the name of the control that raised the event? (e.item.name have no value...)
                                  <<<<
                                  Please use the string.Split method to accomplish this task.

                                       ....
                                          <ClientSideEvents ItemValueChanged="function(s, e) {        
                                  	window.alert(s.name.split('_')[3] + ' ' + s.lastSuccessValue);
                                  }" />
                                       ....
                                  

                                • Pedro Rodrigues 08.20.2012

                                  How do I know in PageLoad which item is selected. I have to set the report in PageLoad.
                                  In the changes I made to your sample project, I get the combobox in PageLoad, but I cant find out which item is selected...

                                • Hi Pedro,

                                  You can use the window.open method to pass a parameter in a Request string.
                                  Please review the attached sample, which illustrates how to accomplish this task.

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Your Privacy - Legal Statements

                                Copyright © 1998-2013 Developer Express Inc.
                                ALL RIGHTS RESERVED
                                All trademarks or registered trademarks
                                are property of their respective owners