Telerik Forums
Kendo UI for jQuery Forum
5 answers
205 views
In the technical file specifies what values ​​they can take descriptions of controls. http://docs.kendoui.com/api/web/editor
I translated
controls, and noticed some shortcomings.


$("#MailConf_Podpis").kendoEditor({
            messages: {
                foreColor: "Kolor czcionki",
                backColor: "Kolor wyróżnienia tekstu",
                viewHtml: "Podgląd HTML"   
            }
        });
Additionally I noticed a problem with the use of translations for inactive controls (error.png).

My translation controls.
$("#MailConf_Podpis").kendoEditor({
            tools: [
                "bold",
                "italic",
                "underline",
                "strikethrough",
                "fontName",
                "fontSize",
                "foreColor",
                "backColor",
                "justifyLeft",
                "justifyCenter",
                "justifyRight",
                "justifyFull",
                "insertUnorderedList",
                "insertOrderedList",
                "indent",
                "outdent",
                "formatBlock",
                "createLink",
                "unlink",
                "insertImage",
                "subscript",
                "superscript",
                "viewHtml"
            ],
            messages: {
                bold: "Pogrubienie",
                italic: "Kursywa",
                underline: "Podkreślenie",
                strikethrough: "Przekreślenie",
                superscript: "Indeks górny",
                subscript: "Indeks dolny",
                justifyCenter: "Wyśrodkuj",
                justifyLeft: "Wyrównaj do lewej",
                justifyRight: "Wyrównaj do prawej",
                justifyFull: "Wyjustuj",
                insertUnorderedList: "Punktory",
                insertOrderedList: "Numerowanie",
                indent: "Zwiększ wcięcie",
                outdent: "Zmniejsz wcięcie",
                createLink: "Wstaw odnośnik",
                unlink: "Usuń odnośnik",
                insertImage: "Wstaw obrazek",
                insertHtml: "Wstaw HTML",
                fontName: "Wybierz czcionkę",
                fontNameInherit: "(zmień czcionkę)",
                fontSize: "Wybierz rozmiar czcionki",
                fontSizeInherit: "(zmień rozmiar)",
                formatBlock: "Formatowanie",
                style: "Style",
                emptyFolder: "Pusty Folder",
                uploadFile: "Wyślij",
                orderBy: "Arrange by:",
                orderBySize: "Rozmiar",
                orderByName: "Nazwa",
                invalidFileType: "Wybrany przez Ciebie plik \"{0}\" jest nieprawidłowy. Wspierane typy plików {1}.",
                deleteFile: "Czy jesteś pewien że chcesz usunąć plik \"{0}\"?",
                overwriteFile: "Plik o nazwie \"{0}\" już istnieje w wybranej lokalizacji. Czy chcesz go nadpisać?",
                directoryNotFound: "Lokacja o podanej nazwie nie istnieje.",
                imageWebAddress: "Adres URL",
                imageAltText: "Tekst alternatywny",
                linkWebAddress: "Adres URL",
                linkText: "Tekst",
                linkToolTip: "Opis",
                linkOpenInNewWindow: "Otwórz odnośnik w nowym oknie",
                dialogInsert: "Wstaw",
                dialogButtonSeparator: "lub",
                dialogCancel: "Anuluj",
                foreColor: "Kolor czcionki",
                backColor: "Kolor wyróżnienia tekstu",
                viewHtml: "Podgląd HTML"
            }
        });
Daniel
Telerik team
 answered on 05 Mar 2013
1 answer
201 views
Hello

I am looking for a working example where one can use ASP.NET WEB API CRUD operations, configuration with javascript front end with NO WRAPPERS.
Atanas Korchev
Telerik team
 answered on 05 Mar 2013
4 answers
234 views
I want my grid to have a "create command". I do know that I can achieve it with the toolbar. However, having a toolbar means having an extra row at the top.

I prefered if I could add a command to the bottom Pageable Bar. A "create command" would fit nicely right to the "refresh command".

Is this possible?

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 04 Mar 2013
1 answer
54 views

We have used kendo grid filter (v2012.3.1315), but filter for string colums isn’t working right because cursor hasn’t focused on filter textbox (we see this behavior in last versions of Chrome and Firefox), in IE datepicker filter cann’t set a value. It works in previous version and in v2012.3.1413. What’s wrong with v2012.3.1315? Can we solve this behavior?

Alexander Valchev
Telerik team
 answered on 04 Mar 2013
1 answer
190 views
Here is an example of 4 panes in sync.
layoutChange is used to keep vertical splitter bars lined up.

http://jsbin.com/eyukow/3/

Useful for when you want some static header content above some scrolling content
Iliana Dyankova
Telerik team
 answered on 04 Mar 2013
1 answer
128 views

I have a Kendo grid that displays the Grid with Details being a Tab.  The first tab basically renders a different partial view based on the Row's StatusID column.  The "if" condition within the .Content() method of the tab item script in the template just does not work.  The if condition is always false and falls into the “else” block.  Is there a specific syntax to get the parent field's value to compare? I tried using the escape characters \\ before the pre-processor character #

 

Thanks!

 

    @(Html.Kendo().Grid(Model)

    .Name("Grid")   

    .Columns(columns =>

    {

        columns.Bound(p => p.Name).Groupable(false);

        columns.Bound(p => p.StatusName).Width(100);       

        columns.Bound(p => p.Description).Title("Description").Width(150);

        columns.Bound(p => p.City).Width(100);

        columns.Bound(p => p.State).Width(70);

        columns.Bound(p => p.AssignedTo);

        @*

        columns.Command(command => command.Custom("View Details").Click("showDetails"));

        *@

 

    })

        .ClientDetailTemplateId("detailsTemplate")

        .Pageable()

        .Sortable()

        .Scrollable(src => src.Height(500))

        .Filterable()

             .DataSource(dataSource => dataSource

                .Ajax()

                .Read(read => read.Action("ViewDetails", "Site"))

                .PageSize(20)

             )

             .Events(events =>

                    {

                        events.DataBound("dataBoundDetails");

                        events.DetailExpand("expandDetails");

                    })

    )

@(Html.Kendo().Window().Name("Details")

        .Title("Site Details")

    .Visible(false)

    .Modal(true)

    .Draggable(true)

    .Width(500)

)

 

<script id="detailsTemplate" type="text/kendo-tmpl">

   

    @(Html.Kendo().TabStrip()

            .Name("TabStrip_#=Id#")

            .SelectedIndex(0)           

            .Items(items =>

            {  

                //Main            

                items.Add()

                    .Text("Details")

                    .Encoded(false)                 

                    .Content(@<text>

                    @if("#= StatusId #" == "1")

                    {                                     

                        @Html.Action("SiteRequestView", "Site")

                       

                    } 

                    else

                    { 

                        @Html.Action("EvaView", "Site")

                    }

 

                    </text>);                                                          

               })

            .ToClientTemplate())

</script>

Daniel
Telerik team
 answered on 04 Mar 2013
1 answer
136 views
I have a datasource setup (JSON) to populate a grid...Maybe I am missing something simple, but since the grid will be populated by the results of a query, the number of titles (and of course data type) for each column will change just about each time a query is run.  How do I programmatically set the column headers and associated details based on the returned JSON?
Alexander Valchev
Telerik team
 answered on 04 Mar 2013
1 answer
370 views
I have a simple grid bound to server data (asp.net mvc). I noticed that in IE8 (or IE9 compatibility view), the grid column headers don't respect the width settings. However, the actual column data does. See attached image (grid not aligned.png).
Here's my razor code - 
<div id = "griddisplay">
         @(Html.Kendo().Grid(Model)
            .Name("MyGrid")
            .Columns(columns =>
                {
                    columns.Bound(p => p.RegionId).Title("Region ID").Width("100px");
                    columns.Bound(p => p.RegionName).Title("Region Name").Width("150px");
                })
            .Pageable()
            .Resizable(r=>r.Columns(true))
            .Sortable()
            .Scrollable(scr => scr.Height("200px"))
            .DataSource(dataSource => dataSource
                .Ajax()
                .Read(read => read.Action("GridTest", "MyController")
                )
            )
         )
    </div>
The only style I have applied is this -
#griddisplay {width:520px;font-size:12px}
I did notice that -
1) It works correctly in IE9 and Chrome all the time (with our without resizable() configuration).
2) I want my column non-resizable. But if I make them resizable, then initially the columns render mis-aligned (in IE8) as in the image but as soon as I try to resize a column by dragging the column header, they all immediately line up correctly. So, it's just the initial layout that is not respecting the width settings I believe.

I'm using the Kendo mvc library version 2012.3.1315.340 (trial version).

Any idea of what I need to do to make it work in IE8?
Dimo
Telerik team
 answered on 04 Mar 2013
3 answers
84 views
I read some data via Ajax as follows.

var data = {
   id: 4711,
   task: {
      name: "coding"
   }
};
var options1 = {
   type: "POST",
   dataType: "json",
   contentType: "application/json",
   data: JSON.stringify(data)
};
 
$.ajax("/api/Person/", options1);

This works perfectly. Then I try to do the same with a datasource.

var options2 = {
   transport: {
      read: {
         url: "/api/Person/",
         type: "POST",
         dataType: "json",
         contentType: "application/json",
         data: JSON.stringify(data)
      }
   }
};
 
var datasource = new kendo.data.DataSource(options2);
datasource.read();

As it fails, I also tried to remove the "JSON.stringify". However, that one also fails. Looking at the request's body with Fiddler, I see

Reading via Ajax
   {"id":4711,"task":{"name":"coding"}}
 
Reading via Datasource (with stringify)
   0=%7B&1=%22&2=i&3=d&4=%22&5=%3A&6=4&7=7& (rest stripped)
 
Reading via Datasource (without stringify)
   id=4711&task%5Bname%5D=coding

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 04 Mar 2013
1 answer
175 views
I have a popup editor for a grid

<

 

 

script id="TopRoleEditorTemplate" type="text/x-kendo-template">

 

<table >

<tr>

<td align="right">

<label for="RoleCode" class="k-Label">

<span id="rolename" style="padding: 0px 1px 0px 1px; font-family: Verdana; color: Red; font-size:xx-small; font-weight:bold">* </span>

Service Owner Group:</label>

</td>

<td>

<input type="RoleCode" id="RoleCode" name="RoleCode" class="k-textbox" style="width: 200px" data-bind="value:RoleCode"

required validationMessage="Service Owner Group is required" />

 

 

<span class="k-invalid-msg" data-for="RoleCode"></span>

 

 

</td>

</tr>

when the popup is submitted i can see a div is generated with a hard coded margin (0.5em) , becuase of this the validation message appears away from (not inline) the input control

<div class="k-widget k-tooltip k-tooltip-validation k-invalid-msg" role="alert" style="margin: 0.5em; display: block;" jQuery18206744028167790009="318" data-for="RoleScope">

how do i override the margin?
Alexander Valchev
Telerik team
 answered on 04 Mar 2013
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
Map
Drag and Drop
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?