
<
telerik:GridBoundColumn DataField="ID" HeaderText="ID"
<FilterTemplate>
</
FilterTemplate>
</telerik:GridBoundColumn>
but lets say i have a listbox inside the above filterTemplate. how can i add the FilterButton (that shows equalto,notequalto.... when clicked) so a user can choose an item from the listbox, and filters accordingly.
i have already seen this link:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx
but this link adds a dropdownlist to the GridBoundColumn Filtertemplate, but it filters when the selectedValue of the dropdownlist changes. what i need is the same filterButton that appears by default (that contains the filter criteria when selected)
RadGrid1_ItemUpdated
event i'm calling that function. But control is not going inside RadGrid1_ItemUpdated event. I'm binding the grid dynamically from oracle database. Any help would be appreciated.
Aspx:
<
asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" PageSize="5"
Width="612px" AutoGenerateEditColumn="True"
oniteminserted="RadGrid1_ItemInserted" onitemupdated="RadGrid1_ItemUpdated"
onneeddatasource="RadGrid1_NeedDataSource">
<PagerStyle AlwaysVisible="True" />
<
MasterTableView>
<
RowIndicatorColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
RowIndicatorColumn>
<
ExpandCollapseColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
ExpandCollapseColumn>
<PagerStyle AlwaysVisible="True" />
</
MasterTableView>
<EditItemStyle BackColor="#FFFF66" BorderColor="Black" BorderStyle="Solid" />
</telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
protected
void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
{
if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
{
BAL.
BAL balobj = newBAL.BAL(); //Business layer object
int flag = 0;
GridEditableItem item = (GridEditableItem)e.Item;
string cty = item.GetDataKeyValue("city_name").ToString();
string id = item.GetDataKeyValue("city_id").ToString();
//calling validation function
flag = balobj.validate_cityName(cty);
if (flag == 0)
{
balobj.New_City_Name = cty;
balobj.City_Id = int.Parse(id);
balobj.city_modify();
}
else
{
Label1.Visible =
true;
Label1.Text =
"<script>alert('City name already exists')</script>";
}
}
}
RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadComboBox_Make, RadComboBox_Model, RadAjaxLoadingPanel1)
The entire visual studio 2010 project so far can be downloaded here http://www.ignitioncarparts.co.uk/cpc.zip.
I would be very grateful for any help.
Thanks,
Lee
