I have a rad grid that I have set up filtering like this demo:
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Programming/FilteringTemplateColumns/DefaultCS.aspx,
except all fields are filtered with a rad combo box. Now I need a way to clear all filtering. I have been able to clear the grid, and reset all of the lists in the rad combo boxes. What I have not been able to do is clear the selected item from the combo, so that when I clear the filtering all of the combos have a blank selection.
Any ideas?
Thanks,
Jim
http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Programming/FilteringTemplateColumns/DefaultCS.aspx,
except all fields are filtered with a rad combo box. Now I need a way to clear all filtering. I have been able to clear the grid, and reset all of the lists in the rad combo boxes. What I have not been able to do is clear the selected item from the combo, so that when I clear the filtering all of the combos have a blank selection.
Any ideas?
Thanks,
Jim
4 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 23 Apr 2008, 12:41 PM
Hi Jim,
Go through the following help document link.
http://www.telerik.com/help/radcontrols/prometheus/grdSettingFilterTextBoxDimensions.html
Princy.
Go through the following help document link.
http://www.telerik.com/help/radcontrols/prometheus/grdSettingFilterTextBoxDimensions.html
Princy.
0
Jim
Top achievements
Rank 2
answered on 23 Apr 2008, 03:14 PM
Thanks Princy,
That was exactly what I needed, with a little tweeking I got it to work just perfectly.
Thanks again,
Jim
That was exactly what I needed, with a little tweeking I got it to work just perfectly.
Thanks again,
Jim
0
Anil Mandava
Top achievements
Rank 1
answered on 30 Oct 2009, 06:48 PM
Hi,
I have a details grid inside a radgrid.
<telerik:RadGrid ID="QueueGrid" runat="server" AutoGenerateColumns="False" AllowMultiRowSelection="False"
OnDetailTableDataBind="QueueGrid_DetailTableDataBind" OnItemCommand="QueueGrid_ItemCommand" OnItemDataBound="QueueGrid_ItemDataBound"
Skin="Office2007" GroupingSettings-CaseSensitive="false">
<MasterTableView DataKeyNames="QueueID" Name="Queues">
<Columns>
<telerik:GridBoundColumn DataField="Email" HeaderText="Queue" />
<telerik:GridBoundColumn DataField="Fax" HeaderText="Fax" />
<telerik:GridNumericColumn DataField="QueueAccessTypeID" Visible="false" EmptyDataText="0" />
</Columns>
<DetailTables>
<telerik:GridTableView DataKeyNames="QueueItemID" Name="QueueItems" Width="100%"
AllowPaging="true" AllowFilteringByColumn="true" AllowSorting="true" HeaderStyle-CssClass="HeaderTable">
<HeaderStyle HorizontalAlign="Center" />
so on...........
I dont have filters for my mastertableview but I have them for a the detailstable I want to clear the filters in detailsgrid.
can you please provide me with the solution.
i had tried all the solutions in the forum but no use.
I should be able to place a button in the page and when I click I shoud clear the details grid filters.
I have a details grid inside a radgrid.
<telerik:RadGrid ID="QueueGrid" runat="server" AutoGenerateColumns="False" AllowMultiRowSelection="False"
OnDetailTableDataBind="QueueGrid_DetailTableDataBind" OnItemCommand="QueueGrid_ItemCommand" OnItemDataBound="QueueGrid_ItemDataBound"
Skin="Office2007" GroupingSettings-CaseSensitive="false">
<MasterTableView DataKeyNames="QueueID" Name="Queues">
<Columns>
<telerik:GridBoundColumn DataField="Email" HeaderText="Queue" />
<telerik:GridBoundColumn DataField="Fax" HeaderText="Fax" />
<telerik:GridNumericColumn DataField="QueueAccessTypeID" Visible="false" EmptyDataText="0" />
</Columns>
<DetailTables>
<telerik:GridTableView DataKeyNames="QueueItemID" Name="QueueItems" Width="100%"
AllowPaging="true" AllowFilteringByColumn="true" AllowSorting="true" HeaderStyle-CssClass="HeaderTable">
<HeaderStyle HorizontalAlign="Center" />
so on...........
I dont have filters for my mastertableview but I have them for a the detailstable I want to clear the filters in detailsgrid.
can you please provide me with the solution.
i had tried all the solutions in the forum but no use.
I should be able to place a button in the page and when I click I shoud clear the details grid filters.
0
Shinu
Top achievements
Rank 2
answered on 02 Nov 2009, 07:49 AM
Hi,
Try the code snippet below to access the filter textbox of a detail table in a Button Click
C#
Thanks,
Shinu
Try the code snippet below to access the filter textbox of a detail table in a Button Click
C#
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| foreach (GridDataItem item in RadGrid2.Items) |
| { |
| if (item.Expanded) |
| { |
| GridTableView nestedTableView = (GridTableView)item.ChildItem.NestedTableViews[0]; |
| foreach (GridFilteringItem filteringItem in nestedTableView.GetItems(GridItemType.FilteringItem)) |
| { |
| TextBox box = filteringItem["Name"].Controls[0] as TextBox; |
| box.Text = "My Filter"; |
| } |
| } |
| } |
| } |
Thanks,
Shinu