Telerik Forums
Kendo UI for jQuery Forum
1 answer
191 views

I use Kendo UI diagram to represent a BPMN diagram (activity flow).

I also use Angular.

How can I bind an array of objects to the shapes Data Source, aka, every change to this array will mimic the same change in the Kendo UI diagram?

**Update**:
I found an example **without** Angular JS: http://dojo.telerik.com/ILUCOQ

Stefan
Telerik team
 answered on 15 Jun 2017
7 answers
866 views

Thank you in advance for any feedback!

I am attaching some sample code where I am binding data with grid; then setting the groupable option to true.  When I intend to use the group column two things happens.  One it displays the field name and not the title name, and the most important part it returns nothing.

 

Rocio

Alex Hajigeorgieva
Telerik team
 answered on 14 Jun 2017
1 answer
556 views
I hide rows using jQuery hide(). But after column sort (grid.refresh()) these rows are shown again. How to prevent this behavior? Or what method should I use to hide rows?
Preslav
Telerik team
 answered on 14 Jun 2017
8 answers
782 views

After hiding the Detail expand column the columns are no longer resizable, they do not even show the resize mouse over.

This is all it takes to break it:

 dataBound: function(e){                       
                  $("#grid").find(".k-hierarchy-cell, .k-hierarchy-col").hide();

}

If instead of hiding the columns I set their width to 1px it will work. I was hoping for a better solution to hiding the column and still allow the columns to be resized

here is the hacky working solution

                var cssObj = {};
                cssObj.width = "0.5px";
                  var columns = $("#grid").find(".k-hierarchy-cell, .k-hierarchy-col");
                columns.css(cssObj);
                columns.children().hide();

 

here is a dojo representing the problem.

 

http://dojo.telerik.com/@Delta/azaYU

 

Stefan
Telerik team
 answered on 14 Jun 2017
2 answers
409 views

Hi, 

I've noticed that the 'Clear' button is no longer visible for the Combo Box. An example can be found within the API, http://docs.telerik.com/kendo-ui/api/javascript/ui/combobox#configuration-clearButton.

Changing the 'clearButton' attribute to true or leaving it out has no affect.

Please Advise.

Thanks,
Grant

Grant
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 14 Jun 2017
2 answers
354 views
Hello,
I have of Each object has fields like passport, frequentFlyer number etc. I want to bind it with KendoUI MVVM I am using Inline Template (Template Stored at not in page of Both passport and frequentFlyer has difference DataSource and UI is DropdownList. 



@model List<Rezcue.ViewModel.APISViewModel>

        
<div id="APISItemContainer" data-template="APISTemplate" data-bind="source: apis">
    
    

</div>

<script id="APISTemplate" type="text/x-kendo-template">
   
    <div data-template="APISsegmentTemplate" data-bind="source: segment"></div>
    
    <div id="viewModelDiv" data-template="viewModelDivTemplate" data-bind="source: ViewModelData">



    </div>

   
    </script>

<script id="APISsegmentTemplate" type="text/x-kendo-template">
    Segment:
    <label data-bind="text: SegmentDetailsToDisplayPricing"></label>
    

</script>

<script id="viewModelDivTemplate" type="text/x-kendo-template">
    
    <div id="PaxDiv" data-template="PaxDivTemplate" data-bind="source: PaxInfo">
      


    </div>


</script>

<script id="PaxDivTemplate" type="text/x-kendo-template">
   <label data-bind="text: PersonName"></label>
    <select class="ffselect" data-role="dropdownlist"
            data-auto-bind="false"
            data-text-field="Description"
            data-value-field="Code"
            data-bind="source: frequentFlyer,value: FrequentFlyernumber"></select>

    <select class="ppDSselect" data-role="dropdownlist"
            data-auto-bind="false"
            data-text-field="Description"
            data-value-field="Code"
            data-bind="source: ppDS,value: PassportNumber"></select>

</script>

<script type="text/javascript">
   
    var apisViewModel = null;
    var frequentflyer = null;
    var ppDS = null;
        $(document).ready(function() {

             frequentflyer = kendo.observable({
                frequentFlyer: new kendo.data.DataSource({
                    transport: {
                        read: {
                            data: { TravellerId: 5 },
                            url: rootUrl("GetData/GetFrequentFlyerData"),
                            dataType: "json"
                        }
                    },
                }),
            });

             passp= kendo.observable({
             ppDS : new kendo.data.DataSource({
                transport: {
                    read: {
                        type: 'GET',
                        data: { TravellerId: 5 },
                        url: rootUrl("GetData/GetPassportData"),
                        dataType: "json"
                    }
                }
            })
           });

            apisViewModel = kendo.observable({
                apis: [
                    {
                        segment: @Html.Raw(Json.Encode(Model.Select(x => x.Segment))),
                        ViewModelData: @Html.Raw(Json.Encode(Model))
                        
                    }]
            });

            kendo.bind($("#APISItemContainer"), apisViewModel);
            //kendo.bind($("#s"), frequentflyer.frequentFlyer);
            //kendo.bind($("#as"), passp.ppDS);

            kendo.bind($(".ffselect"), frequentflyer.frequentFlyer);
            kendo.bind($(".ppDSselect"), passp.ppDS);


        });

      

</script>

Dimitar
Telerik team
 answered on 14 Jun 2017
1 answer
358 views

I have a grid column with a mouseover tooltip based on data from other columns using a client template javascript function.

When the users load their own options using a setOptions function, the tool tip disapears from that column when the setoptions method specifies a different column order.

I'm seeing this with different tooltip methods: the kendo tooltip widget, the bootstrap data-toggle widget and just having the mouseover of the title on the cell. Oddly the background color that is also dynamically applied via the same client template function is preserved.

 

Any explanation for this behavior?

Stefan
Telerik team
 answered on 14 Jun 2017
1 answer
1.1K+ views

Hello,
          I have ViewModel that has Array. "TicketVMList"   .

Code:

TicketviewModel= kendo.observable({         

TicketVMList:  @Html.Raw(Json.Encode(Model)),         

GetTicketNumber: function(e) {             

                debugger;             

            GetTicketNumberProcess(e);        

            },         

OnTicketTstCheck: function(e) {

                          debugger;

                       OnTicketTSTCheckProcess(e);

          }     });

 

Initially it bind using :

kendo.bind($("#TicketItemContainer"), TicketviewModel.TicketVMList);   //works well

 

but there is click event on which i am making ajax call and i send this TicketVMList and it load some values inside it and send in response. On success i have tried various ways to refresh UI with new response that i received  ( TicketItemContainer is Div that i am binding to )

success: function (result) {                 debugger;                 
                    //kendo.unbind($("#TicketItemContainer"));                 
                    //kendo.bind($("#TicketItemContainer"),result);                 
                kendo.unbind($("#TicketItemContainer"));                 
              TicketviewModel.TicketVMList = result;                 kendo.bind($("#TicketItemContainer"), TicketviewModel.TicketVMList); 
                //var vm2 = kendo.observable(result);                 
            //$.extend(TicketviewModel.TicketVMList, vm2);                 //kendo.bind($("#TicketItemContainer"), TicketviewModel.TicketVMList); 
                kendo.ui.progress($("#TicketItemContainer"), false);             
},

 

 

Even have tried commented but it work.

Dimitar
Telerik team
 answered on 14 Jun 2017
1 answer
219 views

We are using version 2017.2.504

And I am trying to set the text on the Clear button without success. The other buttons are getting the correct text. Below is the configuration used:

 

async: {                             

saveUrl: "save",                            

 removeUrl: "remove",                            

 clear: "clear",                             

autoUpload: false,                             

allowmultiple: true,                            

 batch: false                         },                         

template: kendo.template($("#fileTemplate").html()),                         

localization: {                             

select: $scope.translation.SelectFiles,                             

dropFilesHere: $scope.translation.DropFilesHere,                             

headerStatusUploading: $scope.translation.Uploading,                             

headerStatusUploaded: $scope.translation.Done,                             

remove: $scope.translation.Delete,                             

clear: $scope.translation.Delete,                             

uploadSelectedFiles: $scope.translation.UploadFiles                         

},

Emir Prcic
Top achievements
Rank 1
 answered on 14 Jun 2017
6 answers
3.5K+ views
Hello,

I have downloaded for learning kendoUI not to use it for real as long as I am not sure it suits my need and my understanding, but I don't have full time so 30 days is very short, I don't want to invest my time if I have to stop.

So what happens after 30 days ? Will I be able at least to play with the js part library (though not with the visual studio mvc part) ?
Dimo
Telerik team
 answered on 14 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
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?