Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I have this problem with a button which is in the aspxgridview.The button should show a pop up with some extra details which is located below the aspxgridview, so the ID(I have put it in the commandargument) is needed to show the extra details. But when I use the filterfunction, the commandargument doesn't change. It still has the same ID as before filtering. So when i click on my custom button the wrong data is shown.

                                    Thanks

                                0

                                Hello Wilfredo,

                                Thank you for contacting us. However, your scenario is not quite clear to me. Is it possible to describe it in greater detail and provide us with a working sample project, so that we can examine it on our side (some screenshots, illustrating the actual and expected behavior will be helpful).

                                P.S. Please take a look at the Templates - Cell Online Demo regarding this issue. Does it meet your requirements?

                                Thanks,
                                Mike

                                0

                                Hi

                                I am using asp image buttons and buttons in the devexpress gridview. I am binding the command argument of them with the id of respective records. When we click on that button it will open a popup and will display the details according to the id. So now if I click on the button of a record for the first time, it is displaying the data corresponding to that id. Then I will apply filter to the grid. Now if I click on any other record, it is still taking the previous id in the command argument instead of the fresh record and hence display the wrong data.

                                Thanks

                                0

                                Hello Wilfredo:

                                Unless I am mistaken, you assign the CommandArgument property of the ImageButton as follows:

                                [ASPx]
                                <dx:gridviewdatatextcolumn UnboundType="String" VisibleIndex="4"> <dataitemtemplate> <asp:imagebutton ID="btn1" runat="server" ImageUrl="~/Images/button.jpg" CommandArgument='<%#Eval("ProductID") %>' /> </dataitemtemplate> </dx:gridviewdatatextcolumn>

                                In this situation please set the ViewState property of the ASPxGridView to false.

                                Thanks
                                Kate.

                                0

                                Hi Team

                                Thanks for the support. For now I am doing it other way. I will check the solution you provided in my free time.
                                For now I am closing this issue.

                                0

                                Hi kate

                                I tried this solution. But it is giving me some other issues. Like grouping, sorting not working properly if i make the view state false.

                                Thanks

                                0

                                Hello Wilfredo:

                                In this case I suggest that you do not use the server-side RowConnamd event.
                                This task has many alternative solutions.
                                One of them is to add an attribute to each ImageButton using the HtmlRowCreated event of the ASPxGridView control.
                                On the client Click of this button, you can get the corresponding row ID from this attribute and snow a popup.

                                I have attached a sample that illustrates this solution.

                                Thanks
                                Kate.

                                dxSample_Q300063.zip
                                0

                                Thanks for the sample. I will try it.

                                0

                                Hello Wilfredo:

                                Please keep me informed on your progress. If you have a question related to this issue, please feel free to reactivate this report. We're always ready to help you.

                                Thanks
                                Kate.

                                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.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners