v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

ShowFilterRowMenu icon on the left?

Issue Details

Log in to Track Changes or Edit
Q213809
Question
Donn Edwards
Yes
Processed
Customer Closed
.NET
ASPxGridView and Editors Suite
9.1.3
Windows XP
Microsoft Visual Studio 2008
7/31/2009 6:03:43 PM
-> Created by Donn Edwards 7/23/2009 7:06:28 PM

I am busy testing my Northwind Traders test site at http://www.fishwisepro.com and the tests are going well. ASPxGridView is amazing. Thanks, guys!

One small question: is there any way I can put the ShowFilterRowMenu icon on the left of the filter column, instead of its default position on the right? Even with the grid lines on I keep clicking on the wrong icon %-)

Any suggestions? Thanks in advance
Donn

<- Processed (Answered) by DevExpress Team 7/23/2009 9:22:57 PM

Hi Donn,

Unfortunately, the ASPxGridView doesn't provide a property to set menu icon position.
If it is necessary, try the following code to swap controls in filter row cells:

[VB.NET]

Protected Sub ASPxGridView1_HtmlRowCreated(ByVal sender As Object, ByVal e As
DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs)
    If e.RowType = DevExpress.Web.ASPxGridView.GridViewRowType.Filter Then
        For Each cell As TableCell In e.Row.Cells
            If cell.Controls.Count = 1 Then
                Dim ctbl As Table = TryCast(cell.Controls(0), Table)
                If ctbl IsNot Nothing AndAlso ctbl.Rows(0).Cells.Count = 2 Then
                    Dim c As Control = ctbl.Rows(0).Controls(0)
                    ctbl.Rows(0).Controls.RemoveAt(0)
                    ctbl.Rows(0).Controls.Add(c)
                End If
            End If
        Next cell
    End If
End Sub

I'm looking forward to hearing from you.

Thanks,
Michael.

-> Reactivated by Donn Edwards 7/31/2009 5:50:17 PM

The code isn't working. I checked the name of the grid, and it is definitely ASPxGridView1

I tried commenting out the .Add(c) line but nothing disappeared on the page.

I'll keep trying until I understand what I'm doing ;-)

<- Processed (Customer Closed) by Donn Edwards 7/31/2009 6:03:43 PM

Please IGNORE my last comment. It's working perfectly! You guys are awesome.

Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips