Telerik Forums
Kendo UI for jQuery Forum
2 answers
226 views

In an Angular 1.4.8 application I am using several similarly configured Dropdowns and Combo Boxes (version 2015.3.1111) that will intermittently fail to initialize existing numeric values correctly and result in Angular form validation errors. I am only seeing this behavior in IE 11, maybe 1 out of 10 times the form loads. The data source in each case is the same $http service call (differing only by parameter) to another local machine located on the same network subnet.

Below is a sample of the markup and controller code, and attached are screenshots that show what is in the DOM when loading fails and succeeds. Note in the screenshots how in the failed view option value 27 (the pre-existing value) is marked as selected, while in the success screenshot, value 29, the pre-existing value is not a selected option value. I have seen this symptom repeatedly when examining the output when this condition occurs. In the UI screenshot, the "Description of Duties" label is showing an error style, despite the fact that the DDL is displaying the correct value.

Please advise how this behavior could be eliminated. I have tried k-ng-delay on the options elsewhere in the codebase without success, and would prefer not to use primitives since it would require substantial modifications to the application, and this works already most of the time (and apparently always in Chrome).

 

//Duty Description DDL configuration
vm.dutyOptions = {
   dataValueField: "dynamicListID",
   dataTextField: "dynamicListValue",
   dataSource: new kendo.data.DataSource({
      type: "json",
      transport: {
         read:
            function (e) {
               var listId = myConstants[0].dutyDescriptionListNameID;
               itrsDataService.getDynamicListData(listId)
                  .then(function (data) {
                     e.success(data);
                  });
            }
      }
   }),
   optionLabel: " ",
   autoBind: true,
};

 

<div class="form-group" ng-class="{'has-error': insVM.form.dutyDescription.$invalid, 'required' : insVM.insurance.fundingSourceID === 1}">
<label for="dutyDescription"
       class="col-sm-3 control-label">Description Of Duties
</label>
<div class="col-sm-7">
  <select kendo-drop-down-list
          name="dutyDescription"
          ng-required="insVM.insurance.fundingSourceID === 1"
          k-options="insVM.dutyOptions"
          ng-model="insVM.insurance.dutyDescription"
          style="width:100%" />
<div class="help-block"
     ng-messages="insVM.form.dutyDescription.$error"
     ng-if="insVM.form.dutyDescription.$touched &&
        insVM.form.dutyDescription.$invalid">
     <div ng-messages-include="app/shared/validationMessages.html"></div>
</div>
</div>
</div> 

Russell
Top achievements
Rank 1
 answered on 20 Jan 2016
1 answer
379 views

I receive an error when I am trying to freeze a column in KENDO grid with a detail template.

Error is: Having Both Detail Templates and Locked columns is not supported.

Suggest the best possible solution to resolve this issue.

 

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 20 Jan 2016
3 answers
169 views

Hey All,

I'm using Kendu UI Map object; I'm finding that larger GeoJSON data sets (even simplified ones using mapshaper.org) take a bit of time to load each time I zoom, for each zoom level. I'm working with GeoJSON data, specifically the US Counties data.  I've simplified it a bit in an attempt to shrink the filesize, but simplifying it any more distorts the county lines too much.

Is there any way to dynamically load only the counties in view?  I'm basically loading the counties on one layer.  There are a couple other layers, but I've turned them off.  I've not separated the counties by state and tried turning on and off the states that are in view, nor do I know if determining the view port vs. map items to load is trivial or not.  It would take a bit of time to extract all the states or convert them from the stl file to GeoJSON.

Any ideas?  Am I going about this all wrong?

T. Tsonev
Telerik team
 answered on 20 Jan 2016
6 answers
505 views
Hi,

I am using the Kendo UI v2015.1.429 with Scheduler Recurrence feature. I create a recurrence event with information
[Repeat:Monthly/Yearly
Repeat every: 1
Repeat on: first/second/... -> "weekday"/"weekend day"
End:Never]

Then I see the displaying result only shows 1 event in day of month. I think the "weekday" will show from Monday to Friday and the "weekend day" will show satuday and sunday.

Can you help to give me your suggestion?

Regards,

Jason
Georgi Krustev
Telerik team
 answered on 20 Jan 2016
1 answer
106 views

I want to be able to convert Date into a "Time from now" format. I can accomplish the same using Moment.js library, but if I achieve the same using Kendo UI, I see no point in using Moment.js  

http://jsbin.com/bufikakufu/2/edit?html,output

What's the simplest way to get this done using Kendo. I don't want to get into manually parsing date object, and then diffing the date from now etc.. 

Konstantin Dikov
Telerik team
 answered on 20 Jan 2016
3 answers
272 views

Hi,

I have a complex object like

ID 

Name

Dob

EmploymentDetailsObject

EmergencyContactObject

I want to bind this to a Kendo Grid so the ID/Name/Dob/ are the parent row and the EmploymentDetails and EmergencyContact are child rows to this parent

I return a collection of these from an API. I thought I could just bind this collection to the Grid but it doesn't seem to work?

 Can I do this? What do I need to do?

 

Thanks

Alexander Popov
Telerik team
 answered on 20 Jan 2016
6 answers
145 views

Hi,

we're strongly interested in the Spreadsheet control for a new product we should release around march/april.

Since we are already using Telerik we could be willing to taka a bet and develop in february using the beta release.

A couple of points though:

- is there a SP2 release for UI/MVC for january, that could improve on the current status of the Beta

- is this issue about cell alignment (due apparently to cells with content wrapped on more than one line - see attached file) known and planned for fixing in the official release
- is there any "tentative" date for the final Q1 release of the widget?

thanks and regards,

Andrea Imberciadori

Senior Consultant
Capgemini Italy

Atanas Georgiev
Telerik team
 answered on 20 Jan 2016
2 answers
402 views

Hi

I need quite a complex validation mechanism as various inputs are related to each other.
I never had problems so far but in my newest application I struggle with the combination of two custom validation rules.

Each rule is applied to an autocomplete input and validation is fired on blur and on various change events. Now, the problem is, that both validation messages are shown on the same input element and not separately for each of them.
Here is my validator setup:

classifiedTaxaValidator = $("#classified_taxa_form").kendoValidator({
            validateOnBlur: true,
            messages: {
                required: "Dieses Feld ist obligatorisch",
                subordination: "Diese Unterordnung ist nicht möglich",
                correctrank: "Der Name passt nicht zur gewählten Rangstufe"
            },
            rules: {
                correctrank: function (input) {
                    if (input.is("[id=taxon_names_autocomplete]")) {
                        console.log('validating name');
 
                        // binomial name chosen ?
                        var nam = input.val();
                        var parts = nam.split(" ");
                        var rank_id = $('#taxon_rank_id').val();
 
                        // exactly uninomial
                        if (parts.length === 1) {
                            return rank_id > 5;
                        }
 
                        // at least binomial name
                        if (parts.length > 1) {
                            return rank_id < 6;
                        }
                    }
                    return true;
                },
                subordination: function (input) {
                    if (input.is("[id=parent_taxa_autocomplete]")) {
                        console.log('validating parent taxon');
                        // rank of current taxon must be lower than rank of parent
                        var taxonRankId = $('#taxon_rank_id').val();
                        return taxonRankId < parentTaxonRankId;
                    }
                    return true;
                }
            }
        }).data("kendoValidator");

Any idea what I am missing here?

Kind regards

Alex

Alex
Top achievements
Rank 1
Iron
 answered on 20 Jan 2016
2 answers
531 views

If I set up a multi:true filterable column with a datasource on the grid, the datasource returns an array of objects:

[{ code: "A", description: "DescriptionA"}, {code: "B", description: "DescriptionB"}]

If I set filterable:

<p>{</p><p>multi: true,</p><p>field: "description"</p><p>}</p>
The filter menu displays checkboxes for all the descriptions in the datasource.

But when I select a few and click filter, how can I get it to create the filter object using code rather than description?

Matt
Top achievements
Rank 1
 answered on 20 Jan 2016
2 answers
2.0K+ views

Is it possible to configure the grid to use server filtering with multiple values (ie checkboxes) and have many columns in the filter. e.g.

(ColA = A) and (ColB = B or ColB = BB) and (ColC = C or ColC = CC)

After enabling server filtering on the grid we are using and setting the columns filterable property to include a datasource to read its values from the server, it looks like each column resets any other columns filter, only allowing a single column to contribute to the filter logic.

I notice that the demos for multi checkbox filtering seem to be able to do this, but they are using odata as the data source type for the overall grid.

 

Matt
Top achievements
Rank 1
 answered on 20 Jan 2016
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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?