Telerik Forums
Kendo UI for jQuery Forum
4 answers
3.4K+ views

I can't figure out how to:

select row by data id

and

get data-id from selected row.

Attached is an short example (zipped file of index.html and support files with kendo ui) of what I do.

I'll appreciate review of the attached example and an advise on how to proceed with row selection and extracting data-id from selected row

Stefan
Telerik team
 answered on 02 Jun 2017
2 answers
182 views

I'm getting an "Out of stack space" exception on a datasource call when upgrading Kendo from v2016.1.412 to v2017.2.504 (jQuery 1.12.3, AngularJS 1.6.2).  Everything works kosher on the previous version, but on upgrade, the following line causes the exception: $scope.tree.setDataSource(ds);.  It bombs out before the data call is ever made, which is successful.  

Here is the datasource:

01.Factory.getOrgDS = function () {
02.    var ds = new kendo.data.HierarchicalDataSource({
03.        transport: {
04.            read: function (e) {
05.                $http.post(env.baseUrl + '/TreeView/GetTreeData', {
06.                    maxLevelEntity: groatSession.maxLevel, year: helper.getFiscalYear(), branch: groatSession.branch
07.                }).then(function (response) {
08.                    var orgs = response.data;
09. 
10.                    //remove air force clinics
11.                    for (var i = 0; i < orgs.length; i++) {
12.                        checkCurrentLevel(orgs[i]);
13.                        orgs[i] = removeAFClinics(orgs[i]);
14.                    }
15. 
16.                    e.success(orgs);
17.                });
18.            }
19.        },
20.        schema: {
21.            model: {
22.                id: "EntityID",
23.                children: "Children",
24.                hasChildren: function (item) {
25.                    if (item.Levelname == "clinic" || (item.Levelname == "base" && helper.isAirForce(groatSession, env, item))) {
26.                        return true;
27.                    }
28. 
29.                    return item.Children && item.Children.length > 0;
30.                }
31.            }
32.        },
33.        filter: [
34.                { field: "hide", operator: "eq", value: undefined },
35.                { field: "hide", operator: "neq", value: true }
36.        ],
37.        sort: { field: 'EntityDescInt', dir: 'desc' }
38.    });
39. 
40.    return ds;
41.}

e.success(orgs); on line 16 still hits, after the exception is thrown setting the datasource.  The treeview never ends up loading any of the data in the UI.

Any help would be great, thanks.
Jason

Plamen
Telerik team
 answered on 02 Jun 2017
1 answer
103 views

Hi there,

 

Is there any way to use this spreadsheet with datetime format cell as following?

dd/mm/yyyy hh:mm (24 hour)

Even I manually update hours, it keeps showing the time to 12:00 AM.

 

Thanks,

Chris

 

Nencho
Telerik team
 answered on 01 Jun 2017
4 answers
162 views

I'm getting an "Out of stack space" exception on a datasource call when upgrading Kendo from v2016.1.412 to v2017.2.504 (jQuery 1.12.3, AngularJS 1.6.2).  Everything works kosher on the previous version, but on upgrade, the following line causes the exception: $scope.tree.setDataSource(ds);.  It bombs out before the data call is ever made, which is successful.  

 

Here is the datasource:

e.success(orgs); on line 16 still hits, after the exception is thrown setting the datasource.  The treeview never ends up loading any of the data in the UI.

 

Any help would be great, thanks.

Jason

 

01.Factory.getOrgDS = function () {
02.    var ds = new kendo.data.HierarchicalDataSource({
03.        transport: {
04.            read: function (e) {
05.                $http.post(env.baseUrl + '/TreeView/GetTreeData', {
06.                    maxLevelEntity: groatSession.maxLevel, year: helper.getFiscalYear(), branch: groatSession.branch
07.                }).then(function (response) {
08.                    var orgs = response.data;
09. 
10.                    //remove air force clinics
11.                    for (var i = 0; i < orgs.length; i++) {
12.                        checkCurrentLevel(orgs[i]);
13.                        orgs[i] = removeAFClinics(orgs[i]);
14.                    }
15. 
16.                    e.success(orgs);
17.                });
18.            }
19.        },
20.        schema: {
21.            model: {
22.                id: "EntityID",
23.                children: "Children",
24.                hasChildren: function (item) {
25.                    if (item.Levelname == "clinic" || (item.Levelname == "base" && helper.isAirForce(groatSession, env, item))) {
26.                        return true;
27.                    }
28. 
29.                    return item.Children && item.Children.length > 0;
30.                }
31.            }
32.        },
33.        filter: [
34.                { field: "hide", operator: "eq", value: undefined },
35.                { field: "hide", operator: "neq", value: true }
36.        ],
37.        sort: { field: 'EntityDescInt', dir: 'desc' }
38.    });
39. 
40.    return ds;
41.}

 

Jason
Top achievements
Rank 1
 answered on 01 Jun 2017
2 answers
107 views

Hello!!

Kendo Map Bing doesn't support pt-BR culture?

 

I did tests and just fr-FR, en-US, de-DE and es-ES works.

 

Thank you!!

 

 

Jhony
Top achievements
Rank 1
 answered on 01 Jun 2017
3 answers
530 views

I am displaying an image in a grid via a template and I use a web service to get that image.  After I have updated a row via the update popup, the image does not get refreshed.  I need to force the grid to call the web service again.

            {title: "Modified Drawing",
             template: function(data){return getModifiedDrawingTemplate(data) },
                filterable: false
            },
 
function getModifiedDrawingTemplate(data) {
    var url = buildWebServiceUrl(retrieveDrawingUrl, data.CORR_DETAIL_ID, "new", "SVG", "250");
    return '<img src="' + url + '" />';
}

 

Could you please tell me how to do this?  The column is not bound to the data as such so I can't use the bind method.

Stefan
Telerik team
 answered on 01 Jun 2017
2 answers
595 views

Hello,

There is a way for block a event propagation for a specific time or to wait a specific event?

example:

01.var index = 0;
02. 
03.function OnSelect(e){
04.        index = $(e.item).index();
05.    if(condition){
06.        setTimeout(function(){
07.            OnShow();
08.        },
09.        3000);
10.    }else{
11.        "no wait and run OnShow()....but only when the new url document is ready!";
12.    }
13.}
14. 
15.function OnShow(){
16.    console.log("onShow only after timeout");
17.    switch(index){
18.        case 0:
19.            ViewModelUrl1.someCalc(); // if no document ready --> error!
20.            break;
21.        case 1:
22.            ViewModelUrl2.someCalc(); // if no document ready --> error!
23.            break;
24.    }
25.}
26. 
27.var tabstrip = $("#tabstrip").kendoTabStrip({
28.    animation: {open: {effects: "fadeIn"}},
29.    show: OnShow,
30.    select: OnSelect,
31.    contentUrls: [
32.        'url1',
33.        'url2,
34.    ]
35.}).data('kendoTabStrip');

 

 

Best regards,

Manlio

Manlio
Top achievements
Rank 1
 answered on 01 Jun 2017
1 answer
168 views

I was following the example on the documentation here.

The code mentions setting the "type" of the datasource to "webapi", but when you do this you get a script warning: "Unknown DataSource transport type 'webapi'.".

...
        pageable: true,
        sortable: true,
        dataSource: {
            type: "webapi",
            transport: {
                read: {
...

 

Not sure if this a typo or just out of date.

Stefan
Telerik team
 answered on 01 Jun 2017
1 answer
342 views
Is there any way to create a scatter line chart with a navigator attached to it, similar to the stock charts? We are looking to display continuous data rather that daily/weekly/monthly aggregates, which looks like it rules out the stock charts.
Stamo Gochev
Telerik team
 answered on 01 Jun 2017
1 answer
138 views

Was looking into documentation for deactivating or suppressing tabs and discovered a potential issue with the deactivateTab method:

  • Go to http://docs.telerik.com/kendo-ui/api/javascript/ui/tabstrip#methods-deactivateTab
  • Click "Open in Dojo"
  • Run the sample

Am I missing something?

Ivan Danchev
Telerik team
 answered on 01 Jun 2017
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?