Telerik Forums
Kendo UI for jQuery Forum
3 answers
97 views
I want to do something like this:

function myRefresh(grd)
{
   if(somecondition)
   {
       grd.datasource.transport = {
            read: { someArguments }
            }
        }
      
        grd.dataSource.read();
   }
   else
   {
       grd.dataSource.transport = undefined;
       grd.dataSource.data(somedata);
   }
}


Based on a condition I want to change how grid reads data. myRefresh(grd) may run anytime during runtime.

But as datasource is changed from static data to transport I get "t.transport.read is not a function" error which is proabaly because datasource.transport was not initially defined.

Do I have to recreate the grid? Or is there a shorter way?
Kiril Nikolov
Telerik team
 answered on 01 Dec 2014
1 answer
142 views
Hey,
Is there rtl support in the gantt widget?
when i try k-rtl my tasks still behave like left to right..
Thanks :)
Dimitar Terziev
Telerik team
 answered on 01 Dec 2014
1 answer
185 views
Hello!
I am looking for a proper way to change the embedded RESIZE_TOOLTIP_TEMPLATE, because I need to localize it - see the example below:

 var RESIZE_TOOLTIP_TEMPLATE = kendo.template('<div style="z-index: 100002;" class="#=styles.tooltipWrapper#">' +
                                   '<div class="#=styles.tooltipContent#">' +
                                        '<div>RozpoczÄ™cie: #=kendo.toString(start, "d MMMM yyyy")#</div>' +
                                        '<div>ZakoÅ„czenie: #=kendo.toString(end, "d MMMM yyyy")#</div>' +
                                   '</div>' +
                              '</div>');

How can I achieve this effect?
Thanks in advance.

Bozhidar
Telerik team
 answered on 01 Dec 2014
3 answers
149 views
Setting the checked property on a node in a treeview programatically does not cause the checkbox to update. In other words it remains in its initial state of clear or checked irrespective of how many times the checked property is toggled.

This can bee seen in the attached file or at http://dojo.telerik.com/exaP
Colin
Top achievements
Rank 1
 answered on 28 Nov 2014
7 answers
221 views
I want to strip all formatting from a paste of a word document in the editor. I use the sample http://dojo.telerik.com/obaPu , with paste-function overide:

paste: function(e) {
    e.value((e.html).text());
 }


If I look a the editor in this example, it has still the formatted text. Even if i replace 
e.value((e.html).text()); by
​
e.value("test");
still the pasted text has not been changed. What am i doing wrong?

Thanks
Alex Gyoshev
Telerik team
 answered on 28 Nov 2014
2 answers
162 views
Hello,

I have the following issue when trying to use a TreeList in my angular application.
I have the following element in my HTML file (for the tree list):

<kendo-treelist options="treelistOptions" k-rebind="treeListDataTrigger"></kendo-treelist>

And the treelistOptions object looks like this:

$scope.treelistOptions = {            
dataSource: new kendo.data.TreeListDataSource({
data: treeListData,
         
schema: {
                  model: {
                  id: "id",​                
expanded: true
                  }
                }
              }),
             columns: [...]
            };
 
Actually when I'm importing the file kendo.all.js, the above code works fine. But when I'm trying to import only the necessary files (kendo.treelist.js, and kendo.angular.js) I can not instantiate the TreeListDataSource. It says it is undefined.

Am I missing anything ? or how should I proceed to get the treelist working correctly by using only the necessary files and not kendo.all.js?

Thierry
Top achievements
Rank 1
 answered on 28 Nov 2014
5 answers
422 views
Considering the following HTML: 
<input value="" class="date-depth-year"><br />
<input value="" class="date-depth-year"><br />
<input value="" class="date-depth-year"><br />
<input value="" class="date-depth-year"><br />
<input value="" class="date-depth-year"><br />

Why does the following NOT work (to be specific, it sets the min date for the first date picker only, not all of them): 

<script>
    $(".date-depth-year").kendoDatePicker({
      start: "year",
      depth: "year"});
     
    console.log ($("[data-role=datepicker]").length);
    $("[data-role=datepicker]").data("kendoDatePicker").setOptions({
      min: "2014/12/01"
    });
     
  </script>

I know I can do this using a jQuery each loop, which definitely works, but I was interested to know why the above JS wouldn't work to set the min values for all the DatePickers on that page? 

See the following dojo:
http://dojo.telerik.com/@Jacques.vanderhoven/ebawO

Thanks,
Jacques
Kiril Nikolov
Telerik team
 answered on 28 Nov 2014
1 answer
124 views
Hi,

Our requirement is to use Service Side Endless Scroll functionality using mobile list view. This will work fine using DataSource and setting the Url parameter.

However, we cannot use this approach in our application. This is because we can't directly call any Urls from our mobile app. We are using WorkLight adapters to make calls to the server. These calls will be using pure JavaScript methods. We can get "Deferred" objects from worklight adapters. Is there any way that we can use these deferred objects to populate the datasource?

Thanks in advance,
Pavan.
Kiril Nikolov
Telerik team
 answered on 28 Nov 2014
1 answer
159 views
I can get the pivotgrid to work when hosting the web application on the same server as the olap web folder. However, this only works for our development environment.

When trying to get it to work, using an olap folder hosted on a different server to the web application (i.e. on our analysis services server), the call to the olap url returns a '401:Access denied due to invalid credentials' error.

I've followed the directions (as they are) to add cross domain access. I've added the http response headers (screenshot attached), and set the OPTIONSVerbHandler access to read.

Is there anything else I need to do? Or are there any troubleshooting steps?  There doesn't seem to be a lot about http access to analysis services on the web (at least that's about anything but management studio), so some more in-depth guidance on how to get a pivotgrid working would be appreciated.




​
Georgi Krustev
Telerik team
 answered on 28 Nov 2014
1 answer
68 views
hello
http://demos.telerik.com/kendo-ui/grid/index

I found that  drag coumn to group in grid is not work on (chrome 39 on win 8.1 ),firefox and ie are working good
Kiril Nikolov
Telerik team
 answered on 28 Nov 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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?