Hi
While page refreshes and reloads, DropDown list shows Drop Down's selected value in a textbox. Though Once page is loaded it is all fine. But for our purpose it is not desirable to show value that dropdown is binded to. If it had shown the selected text it would have been ok. We also don't want to hide the drop down untill page is ready and show it.
I dont see it is a performance issue as well since i created a seperate view and had only dropdown control in the entire view. Have provided sample code that you can execute to test the behavior
@model ViewModels.DdlVM
@using (@Html.BeginForm())
{
@(Html.Kendo().DropDownListFor(m => m.ddlprop)
.DataTextField("Text")
.DataValueField("Value")
.BindTo(Model.ddlOptions )
)
<input type="submit"
value="save" />
}
namespace ViewModels
{
public class DdlVM
{ public List<SelectListItem> ddlOptions { get; set; }
public string ddlprop{ get; set; }
}
}
controller
public ActionResult ClickMe()
{
DdlVM testvm = new DdlVM();
testvm.ddlOptions = new List<SelectListItem>();
for (int i = 0; i < 100; i++)
{
testvm.ddlOptions.Add(new SelectListItem()
{
Text = "TAB- " + i.ToString(),
Value = i.ToString()
});
}
return View("TestClickMe", testvm);
}
[HttpPost]
public ActionResult ClickMe(DdlVM testvm)
{
testvm.DelimiterOptions = new List<SelectListItem>();
for (int i = 0; i < 100; i++)
{
testvm.ddlOptions.Add(new SelectListItem()
{
Text = "TAB- " + i.ToString(),
Value = i.ToString(),
Selected = testvm.ddlprop== i.ToString()
});
}
return View("TestClickMe", testvm);
#endregion
}
I am unable to create a new record, i.e. nothing pops up, when my grid is bound to my Person.Employer's EmployerName string property.
@model IList<EmployeeManager.Web.EmployeeServiceRef.Person>@(Html.Kendo().Grid(Model) .Name("grid") .Columns(columns => { columns.Bound(p => p.PersonName); columns.Bound(p => p.PhoneNumber); columns.Bound(p => p.Employer.EmployerName); columns.Bound(p => p.Address); }) .ToolBar(toolbar => toolbar.Create()) .Editable(editable => editable.Mode(GridEditMode.PopUp))When I comment out p.Employer.EmployerName, the New button pops up a dialog as expected. Is there any way I can bind my Employee object to the grid so that I can edit these details as well? The plan is to create a dropdown list of the Employer Name's once I can figure out how to bind it to an Add New call.
Any help would be greatly appreciated.
Asking for clarification on dataType: "json". In an example I created at http://dojo.telerik.com/AQEpe, when I run the code the debugger will display only one call to the customers api if I just list the URL in the transport read section. But when I add dataType: "json" as a property below the url and run the code the datasource will be retrieved twice now as shown in the debugger.
The Callback1.png displays the first method with no dataType and only one call to the api. Callback2.png displays the second method described with a datatype and two calls to the api.
Should I not include dataType: "json" in my code for shared calls? Is including dataType necessary at all? I am trying to limit the calls to the database and in my application the filters similar to the example are creating duplicate calls slowing the page.
I have a kendo gird displaying on the screen. When I click on a kendo menu item, I need to close this grid and save all data that are changed on the grid, and open/display another grid.
How to archive this?
Link to chart: Example
I have tried using the "baseUnit", "maxDateGroups", and "autoBaseUnitSteps" with no success.
I also tried applying this to the category axis with no success:
valueAxis: {
min: new Date("2016/02/01").getTime(),
max: new Date("2016/05/16").getTime(),
majorUnit: 60 * 60 * 1000 * 24 * 7 * 2, // 14 days in milliseconds
labels: {
template: "#= kendo.toString(new Date(value), 'MM-dd-yy') #"
}
},
Thank you for you help,
Ted
Hi,
We have a shape design that consists of a large circled icon and a balloon style label above it.
The problem we're encountering, is that we have a hard time selecting shapes that are visible in the "empty" areas of the shape, since the diagram determines which shape is hovered according to the bounding box of the shape. In the case of a group, this is the bounding box that encompasses every shape inside the group. What makes things even worse, is that our graphical design dictates that there's no marking of a surrounding box.
I've altered one of your Diagram example to resemble our situation, please play with it for a while and see what I'm talking about: http://dojo.telerik.com/IqAlI/8
Can you please offer solutions, or consider changing the current implementation ?
Thanks in advance
