Telerik Forums
Kendo UI for jQuery Forum
2 answers
176 views
I have a view which is a remote view.  As a result, the content of the view is dynamic.  I have a button on this dynamic view which opens a modal view to show some details.  The details are dynamic and directly related to its parent remote view to which the modal view was opened from.

It appears ModalViews are cached like Views.  So my dynamic content I am putting in them are never displayed as it pulls the modal view from cache after the initial load.  How can I destroy/remove a ModalView?

I've been successful in removing Views from the cache before (see below) but I don't know how to retrieve/remove ModalViews in a similar manner.
function dataHide(e) {
    var div = $('#' + e.view.content.context.id);
    if (div) div.remove();
    e.view.destroy();
}
Petyo
Telerik team
 answered on 05 Jul 2013
2 answers
334 views
Hello,

I have a grid that is dynamically filled with data that I do not know the name and I want to add a command column to this grid but it seems that I need to define the colums before this command column like this :

$("#grid").kendoGrid({
  columns: [
    { field: "name" },
    { command: [{ className: "btn-destroy", name: "destroy", text: "Remove" }] }
  ],
  editable: true,
  dataSource: [ { name: "Jane Doe" } ]
});
But I can't because as I said I don't know the names of my columns ... How can I do this ?

Thanks.


Frederic
Top achievements
Rank 1
 answered on 05 Jul 2013
1 answer
450 views
I'm trying to  use data-attribute initialization to bind the dataSource for an autoComplete input to my viewModel (a Kendo observable)

First off, the viewModel is:
...
              this.viewModel = kendo.observable({
...
                address: null,
                lookupAddress: function() { ... }
...
           });

And is bound during class/object initialization:
          kendo.bind($("#add-location-subview"), this.viewModel, kendo.mobile.ui);

My HTML is:

           <input id="address-field"
                data-role="autocomplete"
                data-filter="startswith"
                data-bind="value: address, events: {change: lookupAddress}"
          />

And, indeed, the address property and lookupAddress event are correctly bound

When I add the data-source in the markup, the autocomplete works correctly:
           <input id="address-field"
                data-role="autocomplete"
                data-source="{data:[ 'item1','item2'','item3','item4','aaa','bbb','ccc']}"
                data-filter="startswith"
                data-bind="value: address, events: {change: lookupAddress}"
          />

When I try and move the datasource to my model, the autocomplete does not work.
new script:
              this.viewModel = kendo.observable({
...
                address: null,
                theList: new kendo.data.DataSource({
                    data:[ 'item1','item2'','item3','item4','aaa','bbb','ccc']
                }),
                lookupAddress: function() { ... }
...
           });

new HTML:
           <input id="address-field"
                data-role="autocomplete"
                data-source="theList"
                data-filter="startswith"
                data-bind="value: address, events: {change: lookupAddress}"
          />

The docs show examples which indicate that this is the correct syntax.  What am I missing here?  Also, what is the difference between using data-source="..." and data-bind="source: ..." ?

Thanks.
Alexander Valchev
Telerik team
 answered on 05 Jul 2013
1 answer
71 views
Hi There,

I have a working stacked area StockChart with a legend and a navigator (using the 514 release). The legend hover-over which would normally highlight all points of the hovered series is throwing a JavaScript error on line 57238 of kendo.all.js, since it hits a point which is null. This point is in the navigator - screenshot attached.

I'm not sure why the navigator has generated 25 points for the 24 in the JSON of the DataSource.

Any ideas how to progress this?

Many thanks,
Chris
Iliana Dyankova
Telerik team
 answered on 05 Jul 2013
3 answers
146 views
Hi,

I understand that when we put tabstrip control on the page then it generates an unordered list with listitems in it which in turn have hyperlinks contained which act as links for switching the tabs.

Now for our Automation requirements we need to have Ids on these inner contained hyperlinks ?

Can you please let know that how it can be accomplished ?

Thanks,
M
Alexander Valchev
Telerik team
 answered on 05 Jul 2013
11 answers
98 views
When I'm using kendo mobile - each url ends with #
e.g:

http://demos.kendoui.com/mobile/m/index.html#/

Even if it is working in most time sometimes it causes issues because e.g clik on list will generate:

http://demos.kendoui.com/mobile/m/index.html#/mobile/m/overview/index.html

So there is part of address duplicated. - so when I built custom link I have issues with some dynamic parameters. Can I avoid that?

So when I have something custom link like :
href="#item?id=1"

after click it renders link at the root not current subpage.
Marcin
Top achievements
Rank 1
Veteran
 answered on 05 Jul 2013
1 answer
64 views
Hello All,

Is it possible to edit a few fields inline in the grid and a few fields in the popup editor. The way I am looking at it is, when the record in the grid is in the edit mode, I would like to have links or buttons on few fields and if they need to be edited I would click on the link or button to open the popup edit them and close the popup. Once the popup is closed it should update the corresponding fields in the grid and when the row is saved all the changes should be persisted. Can you please provide a sample as to how this needs to be done.

Thank you
Kavitha
Alexander Valchev
Telerik team
 answered on 05 Jul 2013
1 answer
73 views
Is there a way to show a message when a field's input isn't being parsed? There doesn't seem to be any visual clue that what the user has just attempted wasn't accepted.
Kiril Nikolov
Telerik team
 answered on 05 Jul 2013
2 answers
110 views
It would be nice to send some meta information about the data along with the records. 

I want to dynamically show series based on the value of one of the bound fields in the datasource. If there are no records I don't want to show a donut chart ring for example.

Currently, I have to resort to some brittle logic in the change event of the datasource to do the trick. 

change: function (e) {
 
    var item = this.data()[0];
    var chart = $("#training-chart").data("kendoChart");
     
 
    // find the empty donut items.
    if (item.numberCompleted == 0)
        chart.options.series.splice(0, 1);
    if(item.numberExpired == 0)
        chart.options.series.splice(1, 1);
    if (item.numberNotTaken == 0)
        chart.options.series.splice(2, 1);
    if (item.numberDue == 0)
        chart.options.series.splice(3, 1);
    chart.refresh();
},
If I could create a datasource that would look more like the following:
data =  
{
      metaproperty : someUsefulInfo,
      chartData  : [ { data: 1 }, { data: 2 },{ data: 3 }]
}

If I could then bind the chartData as my chart datasource instead of the data starting at the root that would be great!
Iliana Dyankova
Telerik team
 answered on 05 Jul 2013
3 answers
200 views
In other places where I've seen SVG used, you can right-click on the SVG graphic and copy it or save it as a picture. For instance, most of the icons on http://intertwingly.net/blog/ are done in SVG. It's really nice because I like to embed the images in emails or documents. Kendo's charts don't seem to do this. Has anybody tried doing this? For instance, is there a way to use the svg() method on the chart to create a downloadable file?
Waldu
Top achievements
Rank 1
 answered on 05 Jul 2013
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?