Telerik Forums
Kendo UI for jQuery Forum
6 answers
981 views
I am using kendo with the ASP.Net MVC wrapper.  I have a grid that has two columns with dropdowns in them, a column with a numeric up/down textbox, and a column with a delete button.  I am using the InCell edit mode.  I am using ClientTemplates for each of my columns to output a hidden field that I can use to submit the values from the grid with the rest of the page.  I have validations set up on each of the columns via .Net attributes.  The columns with the dropdowns are in an invalid state by default, as the user should select a value from each of them before the row is valid.

When I add a new row to the grid, the dropdown in the first column appears automatically, and if I try to submit without selecting a value, I get a validation error for that column and the form is not submitted.  This is working as expected.  I don't get a validation message for the second column though, so if I select a value in the first dropdown I can submit the form.  If I click into the second cell, the dropdown for that cell appears.  If I try to submit at this point, I get a validation error and am not able to submit.  Also as expected.

The problem seems to be that the inputs are not created for the row until their cell receives focus, and validation doesn't run until the inputs exist.  Is there a way to get validation to run on all of the cells of a row, even if the cell has not received focus?

Thanks,
Brian
Alexander Popov
Telerik team
 answered on 06 May 2014
1 answer
111 views
As you can see in the attached screenshot, when you insert an image into the Editor, align it to the right, then add in lots of text, the text runs right up to the image's edge. It obviously looks terrible. In other WYSIWYG editors, like CKEditor (see other attachment), they allow "HSpace" and "VSpace," which adds margin to the image. Is there a way to do this with the Kendo Editor (outside of manually coding it, since our users won't know how to do that)?
Alex Gyoshev
Telerik team
 answered on 06 May 2014
2 answers
652 views
There is no kendo.aspnetmvc.min.js in Kendo UI Professional, which is in opposition to official Kendo installation guide. Which JS files should be included now?
Atanas Korchev
Telerik team
 answered on 06 May 2014
1 answer
84 views
See the attached image where we are having charts next to next. The tool tip is not staying on top and is going behind the juxtaposed control. What configuration we can use to keep the tooltip always on the top.

This is a usual problem that we have...
Hristo Germanov
Telerik team
 answered on 06 May 2014
5 answers
1.5K+ views
I am rendering a Kendo Window in my view like the following:
@(Html.Kendo().Window()
    .Name("FeedbackWindow")
    .Title(Resources.Title_Feedback)
    .LoadContentFrom("Index", "Feedback")
    .Actions(action => action.Maximize().Close())
    .Modal(true)
    .Iframe(true)
    .Visible(false)
    .AutoFocus(true)
    .Events(events => events.Refresh("FeedbackWindow_Refresh"))
)

While the window starts off hidden (Visible == false) upon view render, it still loads the content on view render.  While this is likely due to using an iframe (so that the window can internally navigate between the different Feedback steps), is there any way to prevent the initial content load until the first time the window is opened (similar to how the ajax window works)?
Alex Gyoshev
Telerik team
 answered on 06 May 2014
2 answers
120 views
I'm trying to load from a kendo-template a window and here is my code. The windows goes empty.

@Html.Kendo().Window().Width(500).Height(275).Modal(true).Visible(false).Name("newPersonWin").Title("Añadir Estudiante")

<script>
function openWindow() {
var win = $("#newPersonWin").data("kendoWindow");
                $("#newPersonWin").data("kendoWindow").refresh({
                    content: {
                        template: $("#newPersonTemplate").html()
                    }
                });
                
                win.open().center();
}

</script>
<script id="newPersonTemplate" type="text/x-kendo-template">
    <div class="container" id="newPersonForm">
            <div class="form-group">

                <input class="k-textbox" id="ActivityPersonFirstName" name="ActivityPersonFirstName" placeholder="Nombre" required="required" style="text-transform:capitalize;" type="text" value="" />
                <input class="k-textbox" id="ActivityPersonInitName" name="ActivityPersonInitName" placeholder="Inicial" style="text-transform:capitalize;" type="text" value="" />
            </div>
            <div class="form-group">

                <input class="k-textbox" id="ActivityPersonLastName1" name="ActivityPersonLastName1" placeholder="Apellido P" required="required" style="text-transform:capitalize;" type="text" value="" />
                <input class="k-textbox" id="ActivityPersonLastName2" name="ActivityPersonLastName2" placeholder="Apellido M" required="required" style="text-transform:capitalize;" type="text" value="" />
            </div>
            <div class="form-group">

                <input class="k-textbox" id="ActivityPersonPhone1" name="ActivityPersonPhone1" placeholder="Telefono 1" required="required" type="text" value="" />
                <input class="k-textbox" id="ActivityPersonPhone2" name="ActivityPersonPhone2" placeholder="Telefono 2" type="text" value="" />
            </div>
            <div class="form-group">

                <input class="k-textbox" id="ActivityPersonSocSec" name="ActivityPersonSocSec" placeholder="Seguro Social" required="required" type="text" value="" />
            </div>
            <div class="form-group">

                <a id="btnSometer" onclick="someter()" class="k-button">Someter</a>
                <a id="btnCancelar" onclick="cancelar()" class="k-button">Cancelar</a>
            </div>
        </div>
</script>
Ricardo
Top achievements
Rank 1
 answered on 05 May 2014
2 answers
215 views
Our Editor, with ImageBrowser, code is like so:

$("#Html").kendoEditor({
    encoded: false,
    imageBrowser: {
        schema: {
            model: {
                id: "EntFileId",
                fields: {
                    name: "name",
                    type: "type",
                    size: "size",
                    EntFileId: "EntFileId"
                }
            }
        },
        transport: {
            read: "@Url.Action("Index", "EditorImageBrowser", new { area = "" })",
            destroy: {
                url: "@Url.Action("Delete", "EditorImageBrowser", new { area = "" })",
                type: "POST"
            },
            create: {
                url: "@Url.Action("Create", "EditorImageBrowser", new { area = "" })",
                type: "POST"
            },
            thumbnailUrl: function (path, name) {
                var entFileId = "";
                var data = $(".k-imagebrowser").data("kendoImageBrowser").dataSource.data();
                $.each(data, function (key, obj) {
                    if (obj.name == decodeURI(name))
                        entFileId = obj.EntFileId;
                });
                var ext = name.substring(name.lastIndexOf("."));
                var url = "@Model.BlobPath" + entFileId + "/thumb" + ext;
                return url;
            },
            uploadUrl: "@Url.Action("Upload", "EditorImageBrowser", new { area = "" })",
            imageUrl: function (name) {
                //get only filename
                if (name.indexOf('/') !== -1) {
                    name = name.substring((name.lastIndexOf("/") + 1));
                }
 
                var entFileId = "";
                var data = $(".k-imagebrowser").data("kendoImageBrowser").dataSource.data();
                $.each(data, function (key, obj) {
                    if (obj.name == decodeURI(name))
                        entFileId = obj.EntFileId;
                });
                var url = "@Model.BlobPath" + entFileId + "/" + name;
                return url;
            }
        }
    },
    tools: [
        "clear", "bold", "italic", "underline", "strikethrough", "justifyleft", "justifycenter", "justifyRight", "justifyFull",
        "insertUnorderedList", "insertOrderedList", "indent", "outdent",
        "createLink", "unlink", "insertImage", "createTable", "addColumnLeft", "addColumnRight", "addRowAbove", "addRowBelow", "deleteRow", "deleteColumn",
        "viewHtml", "formatting", "fontName", "fontSize", "foreColor", "backColor"
    ]
});

Everything is working great, except when I click on a Directory in the ImageBrowser and click the Delete button. When I click the Delete button, the alert pops up asking if I want to delete the directory . When I click OK, the directory disappears from the ImageBrowser, but a call to the server is never made. No errors appear in the console of Developer Tools in Chrome 34 or IE11.

I should note that deleting individual images works fine. It's only deleting directories that doesn't currently work.

I notice that the demo on demos.telerik.com does work with deleting directories, so it has got to be a problem with our code. But what from my code above could be causing this issue? Why are no errors appearing in the console? Any tips, advice, or thoughts of possible things that could be wrong are appreciated. Thank you for your time.
JohnVS
Top achievements
Rank 1
 answered on 05 May 2014
1 answer
345 views
I have the following that works fine to show a series of images I have stored on AWS using a list view

<div id="reports-detail-images-view" data-role="view" data-title="Report Images"
    data-layout="back-layout" data-show="Schoofo.reportsDetailImagesView.show">
    <div data-role="listview" data-source="Schoofo.reportsDetailImagesView.listData"
        data-template="reports-detail-images-binding-template">
    </div>
</div>
</div>
<script id="reports-detail-images-binding-template" type="text/x-kendo-template">
 <img style="max-width: 100%; max-height: 100%;" src='https://schoofofile.s3.amazonaws.com/#: FileKey #'></div>
</script>

I am trying to get this working using the scroll view - thought it would be a simple case of changing the data-role to "scrollview" but I get nothing 

What am I missing??

Many thanks in advance
Petyo
Telerik team
 answered on 05 May 2014
1 answer
132 views

I am copy pasting the content or bulleted list from PDF. But its not working as expected and single paragraph displaying in more than 3 paragraphs sometimes. ie it is not displaying as it is in PDF.

Is there any attributes available in editor to resolve this?

Suresh.
Alex Gyoshev
Telerik team
 answered on 05 May 2014
1 answer
112 views
I understand how to create a grid with a detail template that displays *related* detail data, but I need to do something slightly different. The scenario is that I have a grid with a handful of fields displayed on the row, I would like to expand the row to show the rest of the fields in a "card view" under the expanded row. Since I already have the data in the grid, how can I achieve the desired result with the least amount of data retrieval from my controller (I am using MVC/Razor and the Kendo MVC wrappers) Any advice on the best way to do this would be appreciated. Thanks.
Petur Subev
Telerik team
 answered on 05 May 2014
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Drag and Drop
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?