I've implemented the solution documented on one of your blog to load on demand the RadComboBox with a MVC JSON request.
I'm having a hard time trying to figure out if and how I can group entries server side (or even on the client).
Any help would be greatly appreciated :)
Regards,
LF
2 Answers, 1 is accepted
0
Accepted
Atanas Korchev
Telerik team
answered on 18 Dec 2009, 03:11 PM
Hello Laurent Fabre,
I guess that by grouping you mean using separator items as shown here. If yes this can be achieved in mvc as well:
On the server side you need to set a custom attribute of the items which should be separators:
item.Attributes["separator"] = true;
On client side use the OnClientItemDataBound event to make the item a separator:
function onItemDataBound(sender, args)
{
var item = args.get_item();
if (item.get_attributes().getAttribute("separator"))
{
item.set_isSeparator(true);
}