Hey Telerik team .
i'm using Telerik Gantt Chart. it's great really awesome.
I have a requirement to add my custom Recources dialog in the Gantt chart or populate existing resources dialog based on the StartDate and EndDate of the selected task.
when dialog is open to assign resources to task based on the StartDate and EndDate of the selected task the resources dialog will be populated after checking from the server that is the resources are available on the selected DateTime or not. if available then all will be in the dialog box to be selected as a assignee which are not available on that date will not be there in the list !
is that possible in this gantt chart with the existing resources dialog or not ? or is this possible to use my own resource dialog box and do all this stuff ?
please let me know.
Thankyou.
Regards: Nabil Nawaz

Hi,
i am facing issue with Kendo Combo boxes, where the Change event is getting fired two times, please find the below code.
<table>
<tr id="controls">
<td>
<label id="lbl1">Config Type:</label>
</td>
<td>
@(Html.Kendo().ComboBox()
.Name("cmb_configType")
.HtmlAttributes(new { @class = "fieldentertext", required = "required", style = "width:85%;", validationmessage = "" })
.Placeholder("Select Config Type...")
.DataTextField("ConfigTypes")
// .DataValueField("Names")
.Filter(FilterType.Contains)
.Events(e =>
{
e.Change("OnChange_ConfigType");
//.Select("OnSelect_Config")
//.Open("OnOpen_Config")
//.Close("OnClose_Config")
//.DataBound("OnDataBound_Config")
//.Filtering("OnFiltering_Config");
})
)
</td>
<td>
<label id="lbl3">Config Name:</label>
</td>
<td>
@(Html.Kendo().ComboBox()
.Name("cmb_confignames")
.HtmlAttributes(new { @class = "fieldentertext", required = "required", style = "width:85%;", validationmessage = "" })
.Placeholder("Select Config Name...")
.DataTextField("ConfigNames")
// .DataValueField("Names")
.Filter(FilterType.Contains)
.Events(e =>
{
e.Change("OnChange_ConfigNames");
//.Select("OnSelect_Config")
//.Open("OnOpen_Config")
//.Close("OnClose_Config")
//.DataBound("OnDataBound_Config")
//.Filtering("OnFiltering_Config");
})
)
</td>
<td>
<button class="btn-brdr" id="btnctrl">+</button>
</td>
</tr>
</table>
i am creating two combo boxes 1. Config Type 2. Config Name
when user clicks on first combo, based on the selection i am loading data to second combo box.
when User clicks on Second Combo box(Config Name), It is firing the event for(Config Type) once again and then it is firing event for(Config Name), Why it is firing event for First combo box, when i select on Second combo box?
And also i observed that, if i click on any where in the page these two events are firing, What is wrong in this code?
Here are my fucntions which gets hit on event.
function OnChange_ConfigType(obj)
{
---------------------
}
function OnChange_ConfigName(obj)
{
--------------------
}
Please help on this.
@(Html.Kendo().Grid<CourseVM>() .Name("CourseGrid") .DataSource(ds => ds .Ajax() .Events(events => events.Error("courseGridError")) .Model(model => model.Id(o => o.Id)) .Read(read => read.Action("Course_Read", "Course")) .Destroy(destroy => destroy.Action("Course_Destroy", "Course")) .ServerOperation(false)) .Columns(columns => { columns.Bound(c => c.Id).Hidden(); columns.Bound(c => c.Number); columns.Bound(c => c.OrganisationDisplay); columns.Bound(c => c.BeginDate); columns.Bound(c => c.EndDate); columns.Command(commands => { commands.Custom("Aanpassen").Click("courseEdit"); commands.Destroy().Text("Verwijderen"); }).Title("Commands").Width(200); }) .ToolBar(toolbar => { toolbar.Custom().Text("Nieuwe cursus inrichten").Action("Create", "Course"); }) .Pageable() .Sortable() .ClientDetailTemplateId("courseDetailTemplate") .Selectable(selectable => selectable.Mode(GridSelectionMode.Single)) ) <script id="courseDetailTemplate" type="text/kendo-tmpl"> @(Html.Kendo().TabStrip() .Name("tabStrip_#=Id#") .SelectedIndex(0) .Animation(animation => animation.Open(open => open.Fade(FadeDirection.In))) .Items(items => { items.Add().Text("Inschrijvingen").Content( @<text> @(Html.Kendo().Grid<CourseEntryVM>() .Name("entryGrid_#=Id#") .Columns(columns => { columns.Bound(c => c.StudentDisplay); columns.Bound(c => c.EntryDate); }) .DataSource(dataSource => dataSource .Ajax() .Model(model => { model.Id(c => c.StudentPersonAccountId); }) .PageSize(30) .Read(read => read.Action("Entry_Read", "Course", new { courseId = "#=Id#" })) .Create(create => create.Action("Entry_Create", "Course", new { courseId = "#=Id#" })) .ServerOperation(false) ) .ToolBar(toolbar => { toolbar.Create().Text("Inschrijving toevoegen"); }) .Editable(editable => editable.Mode(GridEditMode.PopUp)) .Pageable() .Sortable() .Events(events => events.Save("entryGridSaving")) .ToClientTemplate()) </text> ); }) .ToClientTemplate() ) </script>
Hi,
The snippet in the dojo link below works fine in Chrome.
In firefox the input field vanishes. I think this has something to do with the float of the two panes, I need this as it is part of the site design.
http://dojo.telerik.com/OGazIYiQ/2
Can anyone help?
Thanks.

I'm trying to create a custom number format for a bound column using MVC/Grid like you see in Excel where you have a positive;negative;zero formats I keep getting errors this is what I've tried:
.ClientTemplate("#= kendo.toString(RegularTimeHours, '##,##0.00;(##,##0.00);-' ) #")
.ClientTemplate("#= kendo.toString(RegularTimeHours, '{0:##,##0.00;(##,##0.00);-}' ) #")
Could I get some direction on how to do this?
Thanks
Lee

The MultiSelect-control is bound to a list of strings and it's required that the user select exactly four items.
How can I validate that with Kendo Validator or ASP.Net Validation?
I have also tried to use the Required annotation on the model property, but only that doesn't work.
Neither do the Range-keyword since it only works for numeric fields.
HI I have asp.net mvc application with below telerik grid whcih i want to bind with asp.net webapi hosted on IIS. i can't find any ecample where to put the webapi url and how weapi's controller is invoked. please help in responding to this
@(Html.Kendo().Grid<TelerikMvcApp131.Models.DeviceDetailsChild>()
.Name("webapi_grid")
.Columns(columns =>
{
columns.Bound(p => p.person).Title("ID").Width(100);
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
})
.ToolBar(tools =>
{
tools.Create();
})
.Sortable()
.Pageable()
.Filterable()
.DataSource(dataSource =>
dataSource
.WebApi()
.Model(model =>
{
model.Id(p => p.Network);
})
.Events(events => events.Error("error_handler"))
.Read(read => read.Url(Url.HttpRouteUrl("DefaultApi", new { controller = "product" })))
)
)
Where should i define DefaultApi inside asp.net mvc application (note DefaultApi is defined inside webapi already)
So I pass in a model list of objects into my view, I reference this in my foreign key column and use filterable.UI to link to a separate function to control the filter. But when I try to do this the grid ignore my .Filterable options and uses the data from my Model.List to populate the filter, this is not the case with a non-foreign key column.
Does anyone know how to use custom filter options with a foreign key column in a kendo grid?