Ive been working off this demo
http://demos.telerik.com/aspnet-mvc/treeview/remote-data-binding
And I can populate my treeview without any problems
Ive been trying to get the value of a textbox
<input type="text" class="form-control" id="searchString" placeholder="Leit" value="" size="50" onkeypress="if (event.which == 13) { $('treeview').getTreeView().dataSource.read(); }">
as you can see the textbox is called searchString
this is my treeview in my cshtml file
@(Html.Kendo().TreeView()
.Name("treeview")
.TemplateId("treeview-template")
.DataSource(source =>
{
source.Read(read => read.Action("Read_TemplateData", "Home", new { searchString = "" })) ;
})
)
I dont quite know how to get the contents of that textbox into the searchString = since I usually do this by doing + $('searchString').val() which just concatenates the value on the end of the url.
the read_templateData is also the "standard" action.
I would like to be able to enter a searchtext in the searchbox and only return lines where the .text field contains what is in the searchString textbox. So I would use the .contains(searchString) of a list server side.
any ideas ?
Regards,
Emil

Hi Telerik Team,
I have a KendoGrid defined as below:
@(Html.Kendo().Grid(Model.ExceptionList) .Name("ThesholdGrid") .Columns(columns => { columns.Bound(p => p.StoreID).Title("StoreID").Width(100); columns.Bound(p => p.StoreName).Title("Store Name"); columns.Bound(p => p.StockCode).Title("StockCode").Width(125).EditorTemplateName("StockCodeAutoComplete"); columns.Bound(p => p.ItemDesc).Title("Item Desc"); columns.Bound(p => p.NoThres).Title("No Stock Threshold"); columns.Bound(p => p.LowThres).Title("Low Stock Threshold"); columns.Command(cmd => cmd.Destroy()).Width(150); }) .ToolBar(toolbar => { toolbar.Create(); toolbar.Save(); }) .Editable(editable => editable.Mode(GridEditMode.InCell)) .Sortable() .Resizable(resizable => resizable.Columns(true)) .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) .Model(model => { model.Id(p => new { p.StoreID, p.StockCode }); model.Field(p => p.StoreName).Editable(false); model.Field(p => p.ItemDesc).Editable(false); }) .Update("UpdateInvTransReview", "Inventory") ))The template for the AutoComplete:
@(Html.Kendo().AutoCompleteFor(m=>m) .DataTextField("StockCode") .DataSource(source => { source.Read(read => { read.Action("GetStockCodes", "Inventory").Data(@"function () { return { keyword: ? };}"); }); }) .HtmlAttributes(new { style = "width:100%" }) .Filter("contains") .MinLength(3) .Height(400) .FooterTemplate("Total <strong>#: instance.dataSource.total() #</strong> items found") .Template("#:data.CombinedDesc#"))And the controller for the AutoComplete:
[HttpGet]public JsonResult GetStockCodes(string keyword){ if (string.IsNullOrEmpty(keyword)) return Json(new List<StockCodeDesc>(), JsonRequestBehavior.AllowGet); var stockCodes = _stockcodeClient.SearchStockCode(keyword); stockCodes.ForEach(sc => sc.CombinedDesc = sc.Desc + " (" + sc.StockCode + ")"); return Json(stockCodes, JsonRequestBehavior.AllowGet);}The model for the AutoComplete:
public class StockCodeDesc{ public string StockCode { get; set; } public string Desc { get; set; } public string CombinedDesc { get; set; } <other fields>}The grid takes data from the model and has inline editing enabled. I would like to have the StockCode field as an AutoComplete and when user selects an item, it will populate the ItemDesc field as well.
From the model you may have guessed that the StockCode field is the text of the AutoComplete, the CombinedDesc is used as template for easier viewing and the Desc is meant to populate the column ItemDesc of the KendoGrid.
My first question is what to put as the "keyword" mapping in the definition of the AutoComplete. I've tried to user parameterMap of the Transport like:
parameterMap: function (data, action) { return { keyword: data.filter.filters[0].value };}
But the filter is always null.
My second question is how to populate the other field of the grid based on what user selects from the AutoComplete. I figure I should approach this using select event of the AutoComplete but have found no working example.
Thank you,
Michael.
Noticed that when you call either the toggle, expand, or collapse function calls on a splitter, the corresponding event never fires.
Here's a demo of the behavior:
http://dojo.telerik.com/asOJA
You can see in your console when you double click the bar, the event fires. But when you click the button which makes a toggle call, no event is fired.

HI all,
I've got a simple HTML table that I'm turning into a Grid. I need to Group the Grid. I have all of that working...
When I define the Grouping I choose which Field to Group on. This automatically sorts the data by this Field. However, my requirement to to actually sort by a different Field.
ie: The Grouping Field is text, but the sorting is a different numeric Field.
I can Group by the numeric Field, but then what I want is to use a groupHeaderTemplate to instead display the text of the other Field.
So, my question is twofold.
- Can I Group by my text Field, but sort the Grouping by my numeric Field?
- Or, can I Group by my numeric Field, but display the text of my other Field?
Just remember...my data is sourced from an HTML table.
I hope all that makes sense.
Thanks
John
Is there a way to apply a regex to a range validation? Here's the gist of what I'm looking for:
var spreadsheet = $("#spreadsheet").kendoSpreadsheet({ rows:10, columns: 1, toolbar: false, sheetsbar: false, sheets: [ { rows: [ { height: 30, cells: [ { value: "Decive Password", background: "#001D42", color: "#fff" } ] } ], columns: [ { width: 130 } ] } ]}).data("kendoSpreadsheet");var range = spreadsheet.activeSheet().range("1:1");range.enable(false);var columnSens = spreadsheet.activeSheet().range("A2:A10");columnSens.validation({ dataType: "custom", from: 'REGEX("^(()|((?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^\da-zA-Z]).{8,60}))$")', type: "warning", allowNulls: true, titleTemplate: "Invalid Password", messageTemplate: "Passwords must be between 8 - 60 characters long and contain the following: 1 number, 1 uppercase letter, 1 lowercase letter, and 1 special (non letter or number) character."});
If this is not possible, is there any way to use javascript to validate the value with a regex in the onChange event and manually set the field to have an error if it doesn't match? (See the commented area of the code).
Dojo: http://dojo.telerik.com/AHefE
var regex = new RegExp("^(()|((?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[^\\da-zA-Z]).{8,60}))$"); arg.range.forEachCell(function(row, col, cell){ debugger; if(!regex.test(cell.value)){ //How to manually show an error in the cell?!?!? console.log("failed!"); } });}var spreadsheet = $("#spreadsheet").kendoSpreadsheet({ change: onChange, rows:10, columns: 1, toolbar: false, sheetsbar: false, sheets: [ { rows: [ { height: 30, cells: [ { value: "Decive Password", background: "#001D42", color: "#fff" } ] } ], columns: [ { width: 130 } ] } ]}).data("kendoSpreadsheet");var range = spreadsheet.activeSheet().range("1:1");range.enable(false);

Hello,
Since Kendo ships with Web Font Icons, I would assume, that they work inside the Kendo Menu when using spriteCssClass on menu items.
Turns out, they are not working in the menu.
http://dojo.telerik.com/amUji
Am I doing something wrong? Fontawesome Icons work fine.
Best regards.
Hi,
I have menu columns in my when we click menu columns, we can decide which columns to display in UI. But when I click menu columns to decide which columns to display in UI, my UI just sucks. Why ? How can I solve?

Is it possible to show the following when looking at the year view?
How custom can we make the header? I would like to have the following rows
Year
Quarter
Month
Weekday start
Week # (of the year)
Dear Sir/Madam,
We are working to build a scheduler based web application and purchased the Kendo UI license to make use of the features that you have build in the control.
While working with our business owners team, we understand that there are some difficulties in achieving some of the below business requirements and we are seeking your help to the identify the approach.
1. We wanted to have the ability to scroll the calendar control, when user prepares schedule for more than 6 weeks.
2. Please refer the attached UI wireframe, where in we have business requirements to display shift allocation for assignee and for a particular day. (We normally have multiple shifts on any day of the scheduling period). Our business owners looking to increase the height of calendar day cell dynamically depending on number of shifts.
3. A Grey line to differentiate the months (Highlighted in red box)
4. Display month name vertically on the left side of the calendar
5. We have requirement to refresh / change shift allocation for a particular day (Day cell) independently in the calendar.
6. Calendar to be displayed for any time range (not just for a month) - Please see the blue highlight in the attached image.
Requesting you provide the guidelines or approaches or examples to implement these features.
Please reply back, in case if you want to have quick discussion to clarify any questions you may have.
Thanks & looking forward to hear from you.
Regards,
Hi,
I am using ASP.NET MVC for kendo grid. I want to Insert Dropdown menu to grid row. But I did not find any related articles.
I assume there will something I insert @(Html.Kendo().Menu() to @(Html.Kendo().grid()