Hi Nihir,
You can show the Clear button in the CommandColumn by setting the GridViewCommandColumn.ClearFilterButton.Visible property.
For example:
We look forward to your feedback once you have had the opportunity to review the sample project.[ASPx]<dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0"> <EditButton Visible="True"> </EditButton> <ClearFilterButton Visible="True"> </ClearFilterButton> </dx:GridViewCommandColumn>
-
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.
<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>
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.
Facebook
Twitter
Google+