I've seen this thread: http://www.telerik.com/forums/detail-expands-on-enter
and I am hoping this behavior has changed since or that there is a work around for my case. I have a master grid with some cells having text area editors that can use returns. This worked well until I added a detail template, now when enter is pressed in a master level grid cell, it toggles the detail template. Is there any way to get a return in a top level grid cell without toggling the detail row instead? My only thought for a workaround is a pop up window to edit the cell content. Does anyone have any other suggestions that would keep the editing of the data in the grid cell?
Thank you.
Dear Telerik,
I am faced with the fallowing problem, I want to create a row that contains the the tables column values and beneth them another row or what looks like a row but
is not a new TR that contains , a summery/discription of his row.
I did start out with using a RowTemplate that contained to <tr> tags but that creates problems , the only one row is selected at a time and when the second row is selected only it's data is passed to the server.
I found this post
http://www.telerik.com/forums/multiple-line-template-displays-first-data-element-only that touches on the subject and on of the examples of code that does not work is on .
In my case all the data is displayed correctly but the fact that the RowTemplate contains two rows causes problems is there a way to create a false "row" only for presnetation inside one TR.
Yours,
Ariel
Hi there,
I have this piece of code
$("#dom_imp_doc_assigned_to").kendoAutoComplete({
dataTextField: "dom_display_name", // The widget is bound to the "name" field
dataSource: DOCMAN.USERS,
valid: false,
select: function (e) {
var value = e.item.text()
var returnOBJ = DOCMAN.USERS.filter(function (obj) {
return obj.dom_display_name === value
})[0]
$('#dom_imp_doc_assigned_to_eid').val(returnOBJ.user_login_name)
$('#dom_imp_doc_assigned_to_dpt').val(returnOBJ.dom_org_unit)
this.options.valid = true
}, dataBound: function (e) {
console.log(" initAffectedDOCS DataBound ", e.sender.options.dataSource)
}
});
I get the Popup with the data some times and sometimes I don't get any Popup. Is there any way to find out why and what's causing this to happen. One other thing to note is that locally I have less data like 10-15 values but in production I have around 5000 values. The problem only happens in production.
IE issue : focus is seen to the editable cell with the newly bind data, but when user tries to write '123', it will type '23'.
Thought reason : It shows the cell enable and editable, but internal focus might be on span or td element and with second character it gives focus to the textbox.
********************************
I have a kendo grid with 'in-cell' mode, with server side paging enabled. (Mvc Razor view).
.chstml file
Html.Kendo() ..............Read(read => read.Action("GetInvoiceDataForGrid", "InvoicingCommon")) //POC change.Batch(true).PageSize(5)
Scenario (this works well in chrome and firefox, Issue with IE 10/11) :
I'm having 2 rows displayed in the grid, I click on one cell and give a tab key. This will execute change effect and make a server call and bind the grid.
Now, when the grid is bound the focus to lastly focus cell is lost. (as grid was bind with modified data).
I tried to store the focus element and refocus with below two approaches but they are having issue for IE (10/11) :
Approach 1$("#myGrid").data('kendoGrid').editCell($("#myGrid").find('.k-grid-content tr:eq(0) td:eq(6)'));
Approach 2
$("#myGrid").find('.k-grid-content tr:eq(0) td:eq(6)').click();
Please guide me to focus cell after grid bind, especially that can work in IE. (as above two approaches work in chrome/firefox).
Hi,
We value the clearOnPromt and unmaskonPost much but it does not provide a simple solution for validating data before posting it. Is there any option to disable the mask getting stored in the model if you haven't completely filled in the textbox? (the _ character).
Its getting ugly without this option, I have multiple masked textboxes where the user don't have to fill in the mask completely but where i use the data to validate before posting. i.e. iban, swift and zip codes. I have to deal multiple times with the mask now.
Thx!
Is there any way to determine the type of event from a function callback? I assumed there'd be a type defined but that doesn't seem to be the case. So if I define data-init="init" on my view and had this js:
init:function(e){
console.log(e.type, e.view.id, e);
}
e.type is not defined. I tried inspecting the object and couldn't find a parameter for it.
Dear Telerik,
I am using a DateTimePicker control in a kendo window that I use multiple times to add details for new data row.
After I enter the first Date and Time 1/1/2013 9:00 I programaticly cleare the values bound to the control and the the value of the control itself.
$("#dateTimeControl1").data("kendoDateTimePicker").value(null); Then when the user selects an new date the default hour selected is the previous hour selected before. Could you explane why this is happenning and how to over come it.
I am using 2015 first qorter version of the mvc wapper version.
Yours,
Ariel
Hi,
I have an MVC site using Kendo that shows a popup window when a button is clicked.
This window has a textbox and another button. When the button is clicked another popup window is opened, so we now have 2 popup windows open.
The 2nd popup contains a grid and 2 hidden textboxes that are populated when an item is selected in the grid.
What needs to happen is:
When I submit the popup with the grid, I need to update the model and close it, but leave the parent popup open and populate the textbox with the content of one of the hidden textboxes.
My problem is:
I submit the child popup, but I cannot force the parent popup to stay open and update. I get errors if I call the popup directly and if I call the index the model is updated, but the parent popup is also closed.
If anyone can understand what I have written, please help!?!?
Thanks,
Lee
Hello Telerik team
I use Kendo UI grid MVC. My grid 2 "Price", "Quantity" select from . I want to create in Kendo UI grid "Total price" = Price*Quantity
- How to use Aggregates to create "Total price"
- I don't want to generate "Total price" column from SQL command.
Thank you
I have a menu, which executes a JavaScript call on each item, rather than a link, which then makes an ajax call to update content on the page. This works, however after the menu item is clicked, the menu often stays open.
As the refresh isn't always instant (it's loading the reporting services report viewer, and then opening a report), it can look like the click hasn't registered. How can I force the menu to close after it's been clicked?
The only method I can see is a close method, but that requires passing the menu name, something that the called function isn't going to know (and as the menu is dynamically built, the item name may not be unique either).
I have tried the CloseOnClick option, but this doesn't work.
The menu definition is:-
@(Html.Kendo().Menu() .Name("menu") //The name of the menu is mandatory. It specifies the "id" attribute of the widget. .BindTo(Model, mappings => { mappings.For<BI_II.Models.MenuItem>(binding => binding //define first level of menu .ItemDataBound((item, main) => //define mapping between menu item properties and the model properties { item.Text = main.MenuName; item.Url = main.FullLink; item.ImageUrl = Url.Content("~/Images/") + main.MenuImage; }) .Children(main => main.Children)); //define which property of the model contains the children mappings.For<BI_II.Models.MenuItem>(binding => binding .ItemDataBound((item, child) => { item.Text = child.MenuName; item.Url = child.FullLink; item.ImageUrl = Url.Content("~/Images/") + child.MenuImage; })); }) .HtmlAttributes(new { style = "font-size:x-small" }) )Thanks