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


                                    I am working on AspxGridview. I need to use clear filter button on header row. I see something like this:


                                    <SettingsText Title="Manage Dashboards" CommandClearFilter /> for ASpXGridView. But I am not sure how to implement CommandClearFilter settings. I want this as image at the right end of the header row


                                    Please let me know


                                    Thanks,

                                    Nihir



                                You must  log in  or  register  to leave comments

                                2 Solutions

                                Creation Date
                                Rating
                                Importance
                                Sort by
                                0

                                Hi Nihir,

                                You can show the Clear button in the CommandColumn by setting the GridViewCommandColumn.ClearFilterButton.Visible property.
                                For example:

                                	
                                [ASPx]
                                <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0"> <EditButton Visible="True"> </EditButton> <ClearFilterButton Visible="True"> </ClearFilterButton> </dx:GridViewCommandColumn>
                                We look forward to your feedback once you have had the opportunity to review the sample project.

                                • Nihir Shah 07.23.2012

                                  Hi,

                                  That will still be a column. Though I found a solution

                                   <Templates>
                                                                  <TitlePanel>
                                                                      <asp:Label ID="headerGridText" runat="server" Text="Manage Dashboards"></asp:Label>
                                                          
                                                                      <div style="float: right">
                                                                          <table class="ClearFilterTable" onclick="dashboardGrid.ClearFilter();">
                                                                              <tr>
                                                                                  <td>
                                                                                      <asp:Image ID="imgClearFilter" runat="server" AlternateText="ClearFilter" ImageUrl="~/Images/FilterRemove.gif"
                                                                                          CssClass="ClearFilterImage" />
                                                                                  </td>
                                                                                  <td>
                                                                                      Clear Filter
                                                                                  </td>
                                                                              </tr>
                                                                          </table>
                                                                      </div>
                                                                  </TitlePanel>
                                                              </Templates>

                                  This solved my issue

                                  Thanks,
                                  Nihir

                                • Hi Nihir,

                                  I am glad to hear that the problem has been resolved. Thank you for letting us know of your progress.
                                  Please feel free to contact us in case of any difficulty. We will be happy to assist you.

                                You must  log in  or  register  to leave comments
                                0

                                 <Templates>
                                <TitlePanel>
                                <asp:Label ID="headerGridText" runat="server" Text="Manage Dashboards"></asp:Label>

                                <div style="float: right">
                                <table class="ClearFilterTable" onclick="dashboardGrid.ClearFilter();">
                                <tr>
                                <td>
                                <asp:Image ID="imgClearFilter" runat="server" AlternateText="ClearFilter" ImageUrl="~/Images/FilterRemove.gif"
                                CssClass="ClearFilterImage" />
                                </td>
                                <td>
                                Clear Filter
                                </td>
                                </tr>
                                </table>
                                </div>
                                </TitlePanel>
                                </Templates>

                                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.