Telerik Forums
Kendo UI for jQuery Forum
1 answer
338 views
Inside an MVVM bound template, how do I get access to the data item itself?

This doesn't give it to me (clearly eh) :)

<li data-bind="invisible: #= console.log(this) #">
    <span>test</span>
</li>
Petur Subev
Telerik team
 answered on 10 Dec 2012
2 answers
197 views
Hi, I am new here and i have question, I need a help?

I have jQuery Dialog form with tabs.
Inside this tab i want to have Kendo UI Editor but i have this problem when do this, Inside the tab, a kendo editor creates itself 2 times.

<div id="dialog">
<div id="tabs-7" style="height:540px; width:680px;">
                        @(Html.Kendo().Editor()
                          .Name("Editor")
                          .HtmlAttributes(new { style = "width: 500px;height:440px" })
                          .Value(@<text>
                                <p>
                                       Some text
                                </p>
                                 </text>))
                    </div> 
</div>
$("#dialog").dialog( ........);

Thanks,
Milan
                                 
Milan
Top achievements
Rank 1
 answered on 10 Dec 2012
1 answer
209 views
The calendar has a selected dates collection.  Is there an MVC example of binding to this collection.  I wan to be able to display selected dates allow uses to change the selected dates then save these changes back to the database,
Georgi Krustev
Telerik team
 answered on 10 Dec 2012
5 answers
2.8K+ views
So frustrating.

I have a scenario not extremely complicated in which i require items in my drop-down actually be databound before selecting a default item.

So when does this databound event actually run? Inside my databound event handler i am checking the count of items in the dropdownlist and it is ZERO.

I have been trying to track down phantom errors which are a result of either this bug or a misunderstanding of the docs for 2 weeks. Can someone from telerik expand on this? from the telerik api:

dataBound

Fires when the drop-down list has received data from the data source.

Example

$("#dropdownlist").kendoDropDownList({
    dataBound: function(e) {
        // handle event
    }
});

To set after initialization

// get a reference to the dropdown list
var dropdownlist = $("#dropdownlist").data("kendoDropDownList");
// bind to the close event
dropdownlist.bind("dataBound", function(e) {
    // handle event
});


Have i misread "receive" data to mean received and bound the data? When really it's not databound? If so it would be extremely useful to have an actual databound event for the dropdownlist that was fired AFTER the items have been created.
Georgi Krustev
Telerik team
 answered on 10 Dec 2012
2 answers
89 views
Can anyone out there help me with getting a panel bar working correctly?  No matter what tutorial I try, or sample code I use - I cannot get it to work???

Thanx in Advance,
Chris
Chris
Top achievements
Rank 1
 answered on 10 Dec 2012
1 answer
156 views
I meant ClientTemplate. It won't let me edit the title of this post.

        columns.Bound(t => t.IsOpen)
        .Title("Status")
        .ClientTemplate(
            "# if (#=IsOpen# == 'True') { #" +
            "something" +
            "# } else { #" +
            "something else" +
            "# } #"
        );

Uncaught Error: Invalid template:'<tr data-uid="#=uid#"><td ># if (#=IsOpen# == 'True') { #something# } else { #something else# } #</td></tr>' Generated code:'var o,e=kendo.htmlEncode;with(data){o='<tr data-uid="'+(uid)+'"><td >'; if (;o+='=IsOpen'; == 'True') { ;o+='something'; } else { ;o+='something else'; } ;o+='</td></tr>';}return o;'

        
Atanas Korchev
Telerik team
 answered on 10 Dec 2012
1 answer
171 views
Are the WPF/SL diagramming controls to be brought to HTML/JavaScript?
Sebastian
Telerik team
 answered on 10 Dec 2012
1 answer
186 views
I need to create a scheme where my pages open windows within the iframe contained in KendoWindow.
To establish a modal window I need to create it from within my home, because if you create it within a modal child page to only cover the child page.
I'm having to develop a scheme for windows like a desktop application.
Below is the JavaScript library I wrote to do this for me:


var kendoWindowFactory = new function () {
 
    var __modalKendoWindow;
    var __functionCallback;
 
    this.createKendoWindow = createKendoWindow;
    this.createModalKendoWindow = createModalKendoWindow;
    this.modalReturn = modalReturn;
 
    function createKendoWindow(element) {
 
        var frameId = "___kendoWindow_" + element.id;
 
        var LINK = element.href;
        var TITLE = $(element).attr("data-title");
        var WIDTH = $(element).attr("data-width");
        var HEIGHT = $(element).attr("data-height");
 
        if (!(parseFloat(WIDTH) > 0)) {
            WIDTH = "50%";
        }
 
        if (!(parseFloat(HEIGHT) > 0)) {
            HEIGHT = "50%";
        }
 
        var kendoWindow = document.getElementById(frameId);
 
        if (kendoWindow) {
            $(kendoWindow).data("kendoWindow").toFront();
        }
        else {
            kendoWindow = $("<div />")
                .attr({ id: frameId })
                .appendTo("body");
 
            $(kendoWindow).kendoWindow({
                title: TITLE,
                modal: false,
                width: WIDTH,
                height: HEIGHT,
                content: LINK,
                visible: false,
                deactivate: function () {
                    this.destroy();
                },
            }).data("kendoWindow").center().open();
 
            $(kendoWindow).css({ overflow: "none" });
        }
 
        return false;
    }
 
    function createModalKendoWindow(element, functionCallback) {
 
        var frameId = "___kendoWindowModal_";
 
        __modalKendoWindow = null;
        __functionCallback = functionCallback;
 
        var LINK = element.href;
        var TITLE = $(element).attr("data-title");
        var WIDTH = $(element).attr("data-width");
        var HEIGHT = $(element).attr("data-height");
 
        if (!(parseFloat(WIDTH) > 0)) {
            WIDTH = "770px";
        }
 
        if (!(parseFloat(HEIGHT) > 0)) {
            HEIGHT = "470px";
        }
 
        var kendoWindow = document.getElementById(frameId);
        if (!kendoWindow) {
            kendoWindow = $("<div>").attr({ id: frameId }).appendTo("body");
        }
 
        __modalKendoWindow = $(kendoWindow).kendoWindow({
            title: TITLE,
            modal: true,
            width: WIDTH,
            height: HEIGHT,
            visible: false,
            deactivate: function () {
                this.destroy();
            },
        }).data("kendoWindow").center().refresh(LINK).open();
 
        $(kendoWindow).css({ overflow: "none" });
 
        return false;
    }
 
    function modalReturn(value) {
        __modalKendoWindow.close();
        if (value) {
            if (__functionCallback) {
                __functionCallback(value);
            }
        }
    }
}
The application is being written with Visual Studio 2012 with a WebForms application.


So I set my menu to open the windows. This is the main page:
<script>
     $(function () {
         $('#tabMenu a').click(function (e) {
             e.preventDefault();
             kendoWindowFactory.createKendoWindow(this);
         });
     });
 
     $(document).ready(function () {
         $("#tabMenu").kendoTabStrip();
     });
 </script>


So I set the child pages (which are opened within kendoWindows using iframe) to open a modal window.
Fits a search window, for example:
<script type="text/javascript">
    function returnValue(value) {
        document.getElementById("<%= txtCodigo.ClientID.ToString() %>").value = value;
        __doPostBack("Municipio.aspx", "txtCodigo_TextChanged");
    }
 
    $(function () {
        $("#<%= btnConsultar.ClientID.ToString() %>").click(function (e) {
            e.preventDefault();
            window.parent.kendoWindowFactory.createModalKendoWindow(this, returnValue);
        });
    });
</script>

Every kendoWindow is created and removed dynamically.

To return a selection made in the modal window use this code:
<script type="text/javascript">
    $(function () {
        $("#grvMunicipio").kendoGrid({
            columns: [
                { field: "Codigo", title: "Código" },
                { field: "Descricao", title: "Município" },
                { field: "Uf", title: "Estado" }
            ],
            dataSource: {
                pageSize: 15
            },
            sortable: true,
            selectable: true,
            pageable: {
                refresh: true,
                pageSizes: true
            }
        });
 
        $('#grvMunicipio').dblclick(function () {
            var Grid = $("#grvMunicipio").data("kendoGrid")
            Grid.select().each(function () {
                var dataItem = Grid.dataItem($(this));
                RetornaValor(dataItem.Codigo);
            });
        });
    });
</script>
I use a callback routine passed as a parameter to the main page, the JavaScript function created, which is to destroy the modal window and return the value to the desired field.

My problem is: When I open the modal window by button link child window, the child window is frozen.
I close the modal and I can no longer use the controls / window elements daughter.
However, when moving the child window with the mouse controls are released.

The child page now has no code in your code behind.

Can anyone help me with a particular problem?

From now on, thank you all!
Tiago
Top achievements
Rank 1
 answered on 10 Dec 2012
5 answers
139 views

We are very interesting about the telerik products we have gone through the many kendo examples which provided in telerik official website as well as in other forums but we just get the simple staff.

We are planning to start a new web project with the MVVM frame work with Kendo . We are unable to find the complete real example for Kendo UI for web based systems as you have developed it for telerik Ajax(eg : sales Dash Board).

If it is their sample code please be kind enough to send us

We are very much interesting to get you feed back on this

BS 

Development Team
Dimo
Telerik team
 answered on 10 Dec 2012
1 answer
139 views
Hi ,

when i bind dynamic column to telerik gid, filter(column search) icon is overlapping on  existed column text.PFA(OverlappingColumnName.jpg) for your reference.

I have display the full  column name with filter icon.

Note:
Number of columns will be changed based on permission.(admin role - 20 columns, customer role -10 columns)

please help me on this ASAP.
Nishant
Top achievements
Rank 1
 answered on 10 Dec 2012
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
Drag and Drop
Application
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
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?