Telerik Forums
Kendo UI for jQuery Forum
1 answer
160 views
I am trying to disable the kendo combobox.

    $("#comboBoxid").kendoComboBox({
                                                            enable: false
                                                        });

this makes the _current property and datasource's data property  null.
 $("#comboBoxid").data(constKendoComboBox).current() is null.

How do I stop this? I don't want to delete the data attached to the kombobox.
subrat
Top achievements
Rank 1
 answered on 04 Jul 2014
1 answer
1.1K+ views
I have a grid that uses a ClientDetailTemplate.  The template is defined as: 

<script id="plan_client_template" type="text/kendo-tmpl">
 
    @(Html.Kendo().Grid<Rep.Models.BuildingChangeValidationViewModel>()
          .Name("CVGrid")
          .Scrollable()
          .Selectable()
          .Editable(editable => editable.Mode(GridEditMode.InLine))
          .Columns(columns =>
          {
              columns.Bound(b => b.Field);
              columns.Bound(b => b.BuildingChangeValidationStatusType).ClientTemplate("#=BuildingChangeValidationStatusType.Value#").Width(250);
              columns.Command(command => command.Custom("Update").Click("updateValidation"));
              columns.Command(command => { command.Edit(); }).Width(172);
          })
          .DataSource(dataSource => dataSource
              .Ajax()
                .Model(model =>
                {
                    model.Id(b => b.BuildingId);
                    model.Field(b => b.BuildingChangeValidationStatusType).DefaultValue(
                        ViewData["defaultBuildingChangeValidationStatuses"] as Rep.Common.LookupItem);
                })
              .PageSize(5)
            .Read(read => read.Action("BuildingValidations_Read", "Plan", new { buildingId = 0 }))
            .Update(update => update.Action("BuildingValidations_Update", "Plan"))
 
          )
          .ToClientTemplate()
    )
</script>

Note that a column uses a ClientTemplate.  The client template is simply a dropdown list. However, the grid is unable to locate the client template and instead returns the error:  "Uncaught ReferenceError: BuildingChangeValidationStatusType is not defined"

However, If I remove the detail grid from the Client Detail Template and put it in a div alongside the parent grid, and remove the ".ToClientTemplate()" call, it works perfectly. So there's something about placing a grid containing a column client template inside of a parent grid's client detail template that make it not work.  Any ideas? 

Dimiter Madjarov
Telerik team
 answered on 04 Jul 2014
1 answer
118 views
I have the following function that resets grid data:

function ReSetGridDataSource(grid, data, sort, emptyMessage) {
    if(grid.length > 0) {
        if(grid.substring(0, 1) !== '#') {
            grid = '#' + grid;
        }

        var grd = $(grid).data("kendoGrid");
        var ds =  new kendo.data.DataSource();
        
        
        ds.data(data);
        if(sort !== null && isArray(sort)) {
            ds.sort(sort);
        }
        
        if(emptyMessage !== null && emptyMessage !== undefined) {
            if(emptyMessage.length > 0 && ds.total() === 0 && $("#emptyMessageRow_" + grid) == null) {
                var colCount = $(grid).find('.k-grid-header colgroup > col').length;
                $(grid).append('<tr id="emptyMessageRow_' + grid + '" class="kendo-data-row"><td colspan="' + colCount + '" style="text-align:center; font-family:arial; font-size:24px;"><b>' + emptyMessage + '</b></td></tr>');
            }
        }
        else {
            try {
                $("#emptyMessageRow_" + grid).remove();
            }
            catch(err) {}
        }

        grd.setDataSource(ds);
        grd.refresh();
    }
}

The data is a JSON array of objects.  The application is designed specifically for an IPAD, after making changes to the data the above function is called, the grid content area blanks out, if I tap the blank area several times the data reappears, if I leave the grid alone (do not tap the blank area) the data never reappears.

I have alter the function for testing where the data is not refreshed if the grid has been previously bound, the content are remains visible.  



Dimo
Telerik team
 answered on 04 Jul 2014
2 answers
178 views
Hi
  How configurable is the Telerik Grid?

  I have just bound some json to the grid, the json includes some raw html, e.g. "<span class=MyClass>test</span>". It appears to bind to innerText so the '<span' shows on the screen. Is it possible to override this to bind to innerHtml instead?

thanks
Anthony
Top achievements
Rank 1
 answered on 04 Jul 2014
3 answers
180 views
Is it possible to color the chart's plot area ranges?

In my chart the yaxis runs from 0-100 and I'd like to background color range 0-25 in color x, 25-50 in color y and 50-100 in color z.
Iliana Dyankova
Telerik team
 answered on 03 Jul 2014
1 answer
104 views
If grouping by resource, is there a way to show ALL resources regardless if they have a corresponding event for that time period? We want to be able to create an event to allow a blank area to be selected to create a new event but some of the resources don't have corresponding events yet so they do not show in the scheduler.
Vladimir Iliev
Telerik team
 answered on 03 Jul 2014
6 answers
424 views
Hi,

I have popup Edit  Grid with Save and cancel buttons.

But for some reason the cancel button for new Model working fine, but for existing record the cancel button doesn't revert the changes on the record/row. But assigns back to grid. Can any one  let me know what could be the reason. Here s the snippet for cancel button event; which I ended up to try it but  doesn't succeeded.

 editable: {
                mode: "popup",
                template: kendo.template($("#tapopup_editor").html())
            },
            edit: function (e) {

//Cancel  Event
e.container.find(".k-grid-cancel").bind("click", function () {
                    // e.preventDefault();
                    // $('#Grid').data("kendoGrid").cancelChanges();
                    $("#Grid").data("kendoGrid").dataSource.read();
                });

}

Thanks,
Chatrapathi Chennam






Vladimir Iliev
Telerik team
 answered on 03 Jul 2014
3 answers
300 views
I want to configure a validator so that when I fill a cell with a correct value and leave the cell, that cell should be locked and not be touched again. The problem is how to mark those cells that are read only and how to save a list so that with every call every user has the read only cells.
Vladimir Iliev
Telerik team
 answered on 03 Jul 2014
1 answer
168 views
Hi,

we are developing a hybrid app with kendo ui mobile.
The app receives html/json content from our server and shows this content to the user.
We also have some external html 5 exercises (consisting of some html pages, js and css) on our server.
We are looking for a way to integrate these exercises into our app so that we can open these external pages with a hyperlink from our app (in webview/inappbrowser) and after the user have finished the exercise to go back to the last app view.

Is there a way to show external pages in a view so that it appears that the page is inside the app (with header and footer)?

We already tried to open the external page with javascript in the inappbrowser (window.open(myURL, '_blank', 'location=no'));
This works well so far and the exercise shows up in the new browser window but with location=no we don't have any buttons to go back to the previous page (the last app view).
With location=yes there are buttons, but also shows the url of the external page which we want to avoid.

Thank you very much
Best regards Mark
Kiril Nikolov
Telerik team
 answered on 03 Jul 2014
5 answers
184 views
Hi,

I found it's difficult to remove HTML element that are pasted from existing document.

I took a short video: https://www.youtube.com/watch?v=Jw0ErtXSRNQ

The attached image shows another example.

Please let me know if there is a tip.
Dimo
Telerik team
 answered on 03 Jul 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?