Telerik Forums
UI for ASP.NET MVC Forum
1 answer
163 views
Hello,

I have an issue with the Kendo Editor. I save some html using the ViewHtml options as in the screenshot (BeforeSaving). The data gets saved and when reloading it looks like screenshot ( AfterSaving ). 

Can I do anything to get the editor to save as I type it with all the formatting ? Otherwise the html editor is pretty much unusable
Dimo
Telerik team
 answered on 03 Oct 2013
6 answers
546 views
I am having an issue with combo boxes in my Kendo grid when the text includes special characters.

I have this setup...
// Grid column definition
columns.ForeignKey(b => b.OreSourceId, (System.Collections.IEnumerable)ViewData["OreSources"], "Id", "Description")
// Foreign key editor template
 
@using System.Collections
@using Kendo.Mvc.UI
 
@(Html.Kendo().DropDownList()
    .Name("OreSourceId")
    .DataTextField("Description")
    .DataValueField("Id")
    //.Value(Model)
    .SelectedIndex(0)
    .OptionLabel(">> Select <<")   
    .BindTo((IEnumerable) ViewData["OreSources"]))
// Filling of the ViewData
var dbDataService = GetService<IDBDataService>();
ViewData["OreSources"] = dbDataService.ToLookUp<OreSource>();
This generally works perfectly and no issues.
Then suddenly the entire grid stopped functioning properly (after user edits). All combos (there are many in the grid) stopped working, edit mode would not work, and the delete button generated an error (not important what the error is - just saying).

I tracked it down to being a dodgy text value in one of the records being used by the combobox.
This text "21 Central Reef BH 1#*" caused the page to break. If I updated the database and removed the #* then everything works perfectly again.
It is however a requirement by the client that they are able to use special characters as part of their naming conventions so I have to find a way to work around this.

Any ideas please?
Vladimir Iliev
Telerik team
 answered on 03 Oct 2013
1 answer
111 views
Hi,

In the previous version of the controls I have used the theme builder to set the foreground and border color of tabstrip tabs, but this has stopped working since I have upgaded to the current version of the controls.

I have tried to import and edit my previous css in the theme builder on the telerik website, but I cannot find any option that changes these colors now?

Thank you
Iliana Dyankova
Telerik team
 answered on 02 Oct 2013
1 answer
195 views
Hi,

I have a question - maybe something simple and not really linked to Kendo, but to be honest, I just do not know: We want to integrate the scheduler in our web app, so that customers can use this calendar (all together) and then sync it to their mobile devices. I guess this needs to be done via google calendar, windows live or whatever.

Can you point me in some direction? Or is this not possible at all?

Thanks,
Volker
Vladimir Iliev
Telerik team
 answered on 02 Oct 2013
5 answers
859 views
Hi,

I'm using Kendo grid within div and while reading data I'm blocking to prevent user activity on it. I need to put long process cancellation button in order to cancel ajax grid request.
$('#div').block({
message: '<h1 style="color:blue;">אנא המתן...</h1><br><input type="button" value="CANCEL" onclick="cancelSemHours()"/>'
});

On server side I'm supposed to implement following in data read action :
if (!Response.IsClientConnected)
{
    Response.End();
}
How do I implement the client-side cancellation with kendo grid? (cancelSemHours function) 

Thank you in advance,
Waiting for your kind and prompt reply
Shabtai

Alexander Popov
Telerik team
 answered on 02 Oct 2013
1 answer
101 views
Is there a way (an api) to validate a resource against a date on the server side? I saw the Restrictions demo, but that shows how to handle restriction on the client side using JavaScript. I want to be able to find out if a resource is available at a given date on the server side. I can probably try to make sense of how data is being stored in database and then parse it, but was wondering with all the exceptions and recurrence rules in effect, there might already be something you guys have that I can reuse?

Thanks,
Georgi Krustev
Telerik team
 answered on 02 Oct 2013
1 answer
309 views
Hi, we have a grid that uses the Change event to go to a new screen, but the Change event is fired multiple times. Is this as expected or a bug?  
In the example below, the "Change" dialog is shown twice in Chrome and 3 times in FF.

@(Html.Kendo().Grid<VorDNAModel.SimpleModel.SimpleMixture>()
                        .Name("grid")
                        .Columns(columns =>
                        {
columns.Bound(p => p.MixtureId).Filterable(false).Title("Identification").Width(100);
                            columns.Bound(p => p.ReferenceNumber).Title("Reference #").Width(100);
columns.Bound(p => p.CaseName).Title("Case").Width(100);
columns.Bound(p => p.Description).Title("Description").Width(100);
columns.Bound(p => p.CollectionLocation).Title("Collection Location").Width(100);
columns.Bound(p => p.CollectedOn).Format("{0:MM/dd/yyyy}").Title("Collection Date").Width(100);
columns.Bound(p => p.LabAnalysisDate).Format("{0:MM/dd/yyyy}").Title("Lab Analysis Date").Width(100);
                        })
                        .Pageable()
                        .Sortable()
                        .Scrollable()
                        .Filterable()
                        .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
                        .Events(events => events.Change("onRowSelectionChanged"))
                        .HtmlAttributes(new { style = "height:740px;" })
                        .DataSource(dataSource => dataSource
                            .Ajax()
                            .PageSize(20)
                            .Read(read => read.Action("ListMixtures", "Mixture"))
                        )
                    )

function onRowSelectionChanged(arg) {
    alert("Change!");
}
Dimiter Madjarov
Telerik team
 answered on 02 Oct 2013
1 answer
304 views
We are adding a checkbox column to the grid to allow user to select row through it.

I renders good on chrome however it cannot do so on IE 10

Please have a look at attached images for the issue.

We have following code in to add checkbox column as a first column of the grid.

var options = ko.utils.extend({}, allBindingsAccessor());
options.customKendoGrid.columns.unshift({ template: "<input type='checkbox' class='checkbox' />" });

Please advise.
Alexander Popov
Telerik team
 answered on 02 Oct 2013
2 answers
152 views
Hi,

I'm using Kendo Menu in horizontal mode for my application. The problem is that there is a blank space with a border at the end of menu. How can i remove this blanck space ? (My menu can contains 1 to 5 items)

Thanks
Jean-Charles
Top achievements
Rank 1
 answered on 02 Oct 2013
10 answers
642 views
I have a drop down in a grid.  Some of my data contains the pound character '#'.

When I have an even number of occurrences of the '#' in my drop down choice data, there is no issue.  I assume this is because the characters cancel out.

However, when I have an odd number of choices, I get an Invalid Template error.  I assume that this is most likely me screwing something up, but I am also aware that the '#' character is used to help mark the beginning and end of kendo template logic.

Also, along with this issue, even if I avoid the meltdown of the template, I do get a a weird rendering of drop down values that have a '#' character when I exit that cell's edit mode.  I believe the garbled replacement for the pound sign is part of the generated template code (See attached image for this).

Grid code - Not that my drop down list is a ForeignKey column (Not sure if that's relevant, but I thought I'd point it out):
@(Html.Kendo().Grid(Model.EnterpriseModel.EnterpriseReferenceBook)
    .Name("EnterpriseReferenceTypeDictionaryGrid")
    .Columns(columns =>
    {
        columns.Bound(item => item.Value);
        columns.ForeignKey(i => i.RefReferenceTypeID,
            (System.Collections.IEnumerable)ViewBag.RefReferenceTypeFamilyListing, "RefReferenceTypeID", "Type");
        columns.Command(command =>
        {
            command.Destroy();
        }).Width(100);
    })
    .ToolBar(toolbar =>
    {
        toolbar.Create();
        toolbar.Save();
    })
    .Editable(editable => editable.Mode(GridEditMode.InCell).CreateAt(GridInsertRowPosition.Top))
    .Navigatable(navigatable => navigatable.Enabled(true))
    .Pageable(pageAction =>
    {
        pageAction.PageSizes(new int[] { 25, 50 });
    })
    .Sortable()
    .Scrollable()
    .Filterable()
    .Resizable(resize => resize.Columns(true))
    .DataSource(dataSource => dataSource
        .Ajax()
        .Batch(true)
        .ServerOperation(false)
        .Events(events =>
        {
            events.Error("EnterpriseReferenceTypeDictionaryGrid_ErrorHandler");
        })
        .Model(model =>
        {
            model.Id(i => i.EnterpriseReferenceTypeID);
        })
        .Read(read => read.Action("GetEnterpriseReferences", "ReferenceGrid"))
        .Create(create => create.Action("CreateEnterpriseReferences", "ReferenceGrid"))
        .Update(update => update.Action("UpdateEnterpriseReferences", "ReferenceGrid"))
        .Destroy(delete => delete.Action("DeleteEnterpriseReferences", "ReferenceGrid"))
    )
)

Please let me know if there is anything else I can provide.
Kiril Nikolov
Telerik team
 answered on 02 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?