4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 23 Nov 2012, 07:54 AM
Hi,
You can use RadComboBox in FilterTemplate of the boundcolumn as shown in the following demo.
Grid / Filter Templates
Thanks,
Shinu.
You can use RadComboBox in FilterTemplate of the boundcolumn as shown in the following demo.
Grid / Filter Templates
Thanks,
Shinu.
0
Coolbudy
Top achievements
Rank 1
answered on 23 Nov 2012, 08:16 AM
hey shinu u send me the link in this link they using sqldatasource
but i don't want to use sqldatasource is there any other method?
<FilterTemplate>
<telerik:RadComboBox ID="RadComboBoxTitle" DataSourceID="SqlDataSource2" DataTextField="ContactTitle"
DataValueField="ContactTitle" Height="200px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("ContactTitle").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="TitleIndexChanged">
<Items>
<telerik:RadComboBoxItem Text="All" />
</Items>
</telerik:RadComboBox>
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function TitleIndexChanged(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("ContactTitle", args.get_item().get_value(), "EqualTo");
}
</script>
</telerik:RadScriptBlock>
</FilterTemplate>
but i don't want to use sqldatasource is there any other method?
0
Spdev
Top achievements
Rank 1
answered on 23 May 2013, 10:39 AM
I'm in the same case.
I would like to use a RadComboBox without an SqlDataSource. I need to populate this list in the code-behind...
could you help me please ?
I would like to use a RadComboBox without an SqlDataSource. I need to populate this list in the code-behind...
could you help me please ?
0
Hello,
You can place a RadComboBox in the FilterTemplate as demonstrated in the provided demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx
Then, you can use the server events of the combo to add the requested items or implement LoadOnDemand:
http://www.telerik.com/help/aspnet-ajax/combobox-load-on-demand-overview.html
Alternatively, you can access the generated combo on ItemCreated event of the grid and add the items:
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html
Hope this helps.
Regards,
Eyup
Telerik
You can place a RadComboBox in the FilterTemplate as demonstrated in the provided demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx
Then, you can use the server events of the combo to add the requested items or implement LoadOnDemand:
http://www.telerik.com/help/aspnet-ajax/combobox-load-on-demand-overview.html
Alternatively, you can access the generated combo on ItemCreated event of the grid and add the items:
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html
Hope this helps.
Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.