This is a migrated thread and some comments may be shown as answers.

[Solved] ComboBox, DataBinding, T4Support

0 Answers 68 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bbeatty
Top achievements
Rank 1
bbeatty asked on 08 Feb 2012, 06:47 PM
I'm trying to use DataBinding with a combobox. I've been able to get it working as expected.  But now I'd like to use T4MVC for the RouteValueDictionary parameter
I currently have

 
@(Html.Telerik().ComboBoxFor(m => m.ProvinceId)
                          .DataBinding(b => b.Ajax().Select("ComboBox", "Province", "Admin"))
                          .Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.StartsWith))

But when I try to use T4MVC, it needs to know the variable to place in the 1st parameter of ComboBox

@(Html.Telerik().ComboBoxFor(m => m.ProvinceId)
                           .DataBinding(b => b.Ajax().Select(MVC.Admin.Province.ComboBox( ? )))
                           .Filterable(filtering => filtering.FilterMode(AutoCompleteFilterMode.StartsWith))

I've tried creating a dummy method ComboBox(), but it then returns me a 500 error, because server can't tell the difference between the 2 methods



Tags
ComboBox
Asked by
bbeatty
Top achievements
Rank 1
Share this question
or