Telerik Forums
Kendo UI for jQuery Forum
1 answer
72 views

Hello,

I have a function to check for duplicates when an email inserted. It worked fine in Firefox and Google Chrome - no error, no warning. In IE it reports error:

"0x800a138f - JavaScript runtime error: Unable to get property 'Email' of undefined or null reference" in line : "if (cnt > 1 && $.trim(data[item].Email).toLowerCase() == currentEmail) {"

Did I miss some javascript settings for IE?

Thanks!

 

                                        (function ($, kendo) {
                                            $.extend(true, kendo.ui.validator, {
                                                rules: {
                                                    dupemailvalidation: function (input, params) {
                                                        if (input.is("[name='Email']") && input.val() != "") {
                                                            input.attr("data-dupemailvalidation-msg", "Duplicated email address");
                                                            var currentEmail = $.trim(input.val()).toLowerCase();
                                                            var cnt = 0;
                                                            var data = $('\#GridEmails').data('kendoGrid').dataSource.data();
                                                            for (item in data) {
                                                                cnt++;
                                                                if (cnt > 1 && $.trim(data[item].Email).toLowerCase() == currentEmail) {
                                                                    return false;
                                                                }
                                                            }
                                                            return true;
                                                        }
                                                        return true;
                                                    }
                                                },
                                                messages: {
                                                    dupemailvalidation: function (input) {
                                                        return input.attr("data-val-dupemailvalidation");
                                                    }
                                                }
                                            });

Andrey
Top achievements
Rank 1
Veteran
 answered on 12 Nov 2018
2 answers
368 views

Hi, 

So as my title says I want to be able or remove the detail template of my grid . Is such a thing possible?

Regards, 

Grant

Grant
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 12 Nov 2018
1 answer
117 views

I have a Kendo Grid with a field (Date) that contains values like:

Date

2018.03.05 10:33

2018.03.05 11:20

2018.04.11 14:30

Now I want to group based on the date, but I don't want to include the time - or I would get all distinct groupings. I still want to display the time to the user, however.

I cannot find somewhere to modify the value before it's send to the grouping function. I could create an extra hidden field, populate it with the data, and somehow redirect the grouping to use that field, but this seems like an ugly solution, and I'm not even sure it's possible.

What can I do to archive the desired effect: 2 groups called 2018.03.05 and 2018.04.11?

Tsvetina
Telerik team
 answered on 12 Nov 2018
1 answer
113 views

I have a tab url that i want to give a link in column and my url contains # in it. couldn't figure out how to make it work.

 

url: "/Admin/OfferIndex#offers-received"

template: "#if (OfferCount > 0 && Unread == 0) {# <a href='/Admin/OfferIndex#offers-received' onclick='javascript:OpenWindow(this.href, 800, 600, true); return false;'>#=OfferCount # </a>' #}else if (OfferCount > 0 && Unread > 0) {# <a href='/Admin/OfferIndex#offers-received' onclick='javascript: OpenWindow(this.href, 800, 600, true); return false; '>#=OfferCount # <span style='color:red'>( #=Unread # New )</span></a> #}else{# No Offers #}#",

 

 

 

Bulut
Top achievements
Rank 1
 answered on 11 Nov 2018
9 answers
240 views
I am trying to implement datetime picker on google maps but somehow it is not working. here is my not working fiddle :)
Bulut
Top achievements
Rank 1
 answered on 11 Nov 2018
3 answers
123 views

Hello,

I recently switched from textarea/iframe based classic mode to div based inline mode which works fine except that the toolbar is only blended in when one is typing. Is there a way to have the fixed/permanently visible toolbar and the general look and feel of classic mode in inline mode also?

Thank you very much for your thoughts.

Dimitar
Telerik team
 answered on 09 Nov 2018
5 answers
3.8K+ views
Can I set the top left X and Y position of a kendoWindow?

Mike B
Petr
Top achievements
Rank 1
 answered on 09 Nov 2018
8 answers
550 views

I added a kendo grid in the kendo dialog, there were two rows in the grid, the grid's height didn't auto fill the dialog, its height would be correct if I click the header of a column. I attached the screenshot.Is there any one to tell me how to solve it? Thanks

 

 

Eyup
Telerik team
 answered on 09 Nov 2018
3 answers
1.3K+ views
I am using some code pulled from one of the Kendo examples for connecting two ListBoxes (populating the first with an AJAX call, and then letting the user transfer some of the items to the second listbox.

 

I currently have this set with an "EditorFor" approach.

Everything works fine, except that my Model never gets the selected users.

In the Model, that field is: 

IEnumerable<UserModel> SelectedEmployees

 

No matter what I've tried, the selected employees never get sent back to the Model with the other bits.

If I use jQuery to dump the dataitems to the Console, I can see what users have been selected.  They just don't go back to my model.

 

Is this possible?  Am I way out to lunch?  Or just missing something?

 

@using WMGPipeline.Models
@model IEnumerable<UserModel>
 
<div>
  <input type='text' id='searchBox' class='k-textbox' placeholder='Search By Name' />
  <br />
 
  @(Html.Kendo().ListBox()
        .Name("employees")
        .Toolbar(toolbar => {
          toolbar.Position(Kendo.Mvc.UI.Fluent.ListBoxToolbarPosition.Right);
          toolbar.Tools(tools => tools
            .TransferTo()
            .TransferFrom()
            .TransferAllTo()
            .TransferAllFrom()
            .Remove()
            );
        })
        .ConnectWith("SelectedEmployees")
        .DataTextField("LastFirst")
        .DataValueField("UserID")
        .DataSource(source => {
          source.Custom()
          .ServerFiltering(true)
          .Type("aspnetmvc-ajax")
          .Transport(transport => {
            transport.Read("getEmployees", "Pipeline");
          })
          .Schema(schema => {
            schema.Data("Data").Total("Total");
          });
        })
  )
  @(Html.Kendo().ListBox()
        .Name("SelectedEmployees")
        .DataTextField("LastFirst")
        .DataValueField("UserID")       
        .BindTo(Model)
        .Selectable(ListBoxSelectable.Multiple)
  )
/div>
Viktor Tachev
Telerik team
 answered on 09 Nov 2018
4 answers
1.2K+ views

I have a number of Drop Downs on a page, each representing a separate asset with their own identifier.  The drop down options for each of these lists should be populated using an AJAX call to a service page that I have written which expects to be sent the identifier in the request.  Here is a stripped down version of the code: 

<script language="JavaScript">
 
$(document).ready(function() { 
 
$(".id_select").kendoDropDownList({
    dataTextField: "name",
    dataValueField: "my_id",
    dataSource: {
        transport: {
            read: {
                url: "service_page.cfm",
                data: {
                    identifier: ????
                }
            }
        }
    }
});
 
});
     
</script>
 
<html>
 
<input name="id_ABC" id="id_ABC" data-identifier="ABC" class="id_select"></input>
 
<input name="id_DEF" id="id_DEF" data-identifier="DEF" class="id_select"></input>
 
<input name="id_GHI" id="id_GHI" data-identifier="GHI" class="id_select"></input>
 
<input name="id_JKL" id="id_JKL" data-identifier="JKL" class="id_select"></input>
     
</html>

 

 

So what I want is when each input is instantiated as a KendoDropDownList for the DataSource's Read to be executed for each of the inputs with class "id_select" and sent the value of that input's particular "data-identifier" value (where I have put the ????'s in the example above).  However I don't see any way to reference the data for the particular input from within the inline DataSource.  

I have tried making the transport.read a function, using a parameterMap and anything else I could think of to throw at this.  I'm beginning to wonder whether this is possible at all. 

 

Thank you,

Matt

 

Eyup
Telerik team
 answered on 09 Nov 2018
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?