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

[Solved] Need a code snippet from demo example converted to VB

0 Answers 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rhek
Top achievements
Rank 1
Rhek asked on 30 Jul 2011, 11:14 PM
I am using Razor with VB.Net and I am trying to convert the demo example "Custom ToolBar Template." I am having some problem converting the toolbar template and was hoping that someone could give me a hand.

Here is the code that I am having problems with:
.ToolBar(toolBar => toolBar.Template(   
@<text>   
  <label class="customer-label" for="Customers-input">Show orders for customer:</label>
  @(Html.Telerik().ComboBox().Name("Customers")
      .DataBinding(binding => binding.Ajax().Select("_GetCustomers", "Grid"))
      .AutoFill(true)
      .Filterable(filtering => { filtering.FilterMode(AutoCompleteFilterMode.StartsWith); })
      .HtmlAttributes(new { style = "width: 300px" }) 
      .HighlightFirstMatch(true)  
      .ClientEvents(events => events.OnChange("customerChange")))
</text>))

Here is a link to the demo: 
http://demos.telerik.com/aspnet-mvc/razor/grid/customtoolbar?theme=vista


Thanks!
Tags
Grid
Asked by
Rhek
Top achievements
Rank 1
Share this question
or