Telerik Forums
Kendo UI for jQuery Forum
3 answers
189 views

Hi,

  I have a scenario where we have a class as follows

Class RiskRegister

{

     int projNo;

     string projName;

     List<Risk> InternalRisks 

     List<Risk> ExternalRisks

}

 

 

The view is shaped as 

 

@Html.Partial("~/Views/RiskRegister/_riskRegister.cshtml")

@Html.Partial("~/Views/RiskRegister/_risksGrid.cshtml", Model.​InternalRisks)

@Html.Partial("~/Views/RiskRegister/_risksGrid.cshtml", Model.ExternalRisks)​

 

As shown, we are re-using the risksGrid as they are the same except for a flag

How do I get the Read action to populate the correct data on the corresponding grid? Please help

Boyan Dimitrov
Telerik team
 answered on 30 Oct 2015
3 answers
187 views

Hi there,

 I am trying to add dynamic tooltip to treemap by using ajax function. Tooltip contents are synamic based on id of treemap element. So i decided to use ajax function in content of tooltip, Ajax will call to controller and return "Text" string content. When i wrote below to achieve this tooltip is blank without any content. I think i did some syntax error. Sorry i could not able to find relevant example also.

 

Code (View)

$("#treeMap").kendoTooltip({
            filter: ".k-leaf,.k-treemap-title",
            content: function (e) {
                var treemap = $("#treeMap").data("kendoTreeMap");
                var item = treemap.dataItem(e.target.closest(".k-treemap-tile"));
                //return item.ParameterID + ": " + item.ParameterName + ": " + item.tooltip;
                var parameterID = item.ParameterID;
                $.ajax({
                    url: '@Url.Action("GetTooltipData", "Analysis")' + '?ID=' + parameterID,
                    success: function (data) {
                        //return data;
                        return "hi, this is test tooltip";
                    },
                    error: function (msg) {
                        toastr.error("Error: " + msg.statusText);
                    }
                });
            }
        });

 

Thank you in advance for your support

Viktor Tachev
Telerik team
 answered on 30 Oct 2015
11 answers
608 views
Hi,

I've migrated from version 2014.2.1008  to version 2014.3.1119. 

I have problem with checkbox (class="k-checkbox"). The next example works fine with 2014.2.1008, but does not work with 2014.3.1119.

Can you help me?

Regards,
Georgy

<!DOCTYPE html>
<html><head>   
<script src="http://cdn.kendostatic.com/2014.3.1119/js/jquery.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.3.1119/styles/kendo.common.min.css" />
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.3.1119/styles/kendo.default.min.css" />   
<script src="http://cdn.kendostatic.com/2014.3.1119/js/kendo.all.min.js"></script>
</head>
<body>
Checkbox1: <input class="k-checkbox" id="Checkbox1" type="checkbox"><br>
Checkbox2: <input class="k-checkbox" id="Checkbox2" type="checkbox"><br>
Checkbox3: <input class="k-checkbox" id="Checkbox3" type="checkbox">
</body></html>






Sebastian
Telerik team
 answered on 30 Oct 2015
2 answers
134 views

Say i have three kendoDropDownList's.  Each should populate their list using a different part of the response from a single remote json datasource.  So say the datasource is this json object:

{
   "somefield1":"someval",
   "somefield2":"someval2",
   "vendors":{  
      "vendor":[  
         {  
            "vendorName":"kroger",
            "vendorID":251
         },
         {  
            "vendorName":"publix",
            "vendorID":262
         }
      ]
   },
   "drivers":{  
      "driver":[  
         {  
            "firstName":"bob",
            "driverID":12,
         },
         {  
            "firstName":"bill",
            "driverID":15,
         }
   },
   "users":{  
      "user":[  
         {  
            "username":"charlie",
            "employeeid":11
         },
         {  
            "username":"linda",
            "employeeid":2
         }
      ]
   }
}

How would I ​get the first kendoDropDownList to bind to vendors, the second to drivers, and the third to users, without having to hammer the server with three separate requests?

 

 

Kiril Nikolov
Telerik team
 answered on 30 Oct 2015
1 answer
160 views

Hello

I'm still using kendo 2014.3.1411, but planning to migrate to newest version shortly.

I've realized that default behaviour of multiselect was changed. The items after selecting are now not removed from list. I've looked into API reference, but cannot see the way to restore old functionality. Could you guild me how to keep my current kendo functionallity?

Atanas Georgiev
Telerik team
 answered on 30 Oct 2015
1 answer
79 views

Hi everyone,

I encounter this problem and it's quite annoying, after writing on a input text that is data-binded to the model I have to click twice the button that is on the same div group. Here I provide a JSFiddle that shows the problem, if you remove the data-bind on the input text you don't have to click twice the button to fire the action.

http://jsfiddle.net/MKZfr/3/

 

 

Petyo
Telerik team
 answered on 30 Oct 2015
1 answer
519 views

In version 2015.3.930, it looks like the calendar.firstDay property is set to 1 (Monday) instead of 0 (Sunday) ​in the en-US culture definition. This is causing calendar and date picker widgets to start with Monday instead of Sunday. You can test this by running the following in your browser console:

kendo.culture("en-US");
kendo.culture().calendar.firstDay; // Returns 1 (Monday)

 

For now, the quick fix is just to change this in the kendo.culture.en-US.min.js file.

Alexander Popov
Telerik team
 answered on 30 Oct 2015
9 answers
240 views
Hi Kendo Team,
Is it possible to drag and drop the border of a row in order to resize its height?
Would you please provide any sample? I'm using a textarea to edit a column that may contain many characters but the user wants to control the height of each row.


Kind regards,
Oscar. 
Aravind
Top achievements
Rank 1
 answered on 30 Oct 2015
1 answer
217 views

Hi,

We'd like to achieve to replace defined keywords with html (text). we are able to insert at the caret position the html. But we have difficulties to remove the typed keyword. We've tried to simulate the backspace key triggerd by jQuery but it didn't work out well. We've tried to get the value from the editor and use the carrot position to remove/update the keyword. â€‹The caret position is related to the plain text value instead of the html value. With an existing html formatted text it fails. but we cannot use a regex replace because we dot not want to alter the text typed before.

A dojo: http://dojo.telerik.com/igabu/12  

type 'test' press space and the keyword should be replaced by the given value. (item). 

 

Possible solutions would be: 

- remove last X typed characters. / trigger backspace.

- remove X characters from caret position (related to html value)

- ... ?

 

Any help is appreciated!

Regards,

Wilco

 

Alex Gyoshev
Telerik team
 answered on 30 Oct 2015
1 answer
861 views
​How to manually trigger reload data source using Angular?
Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 29 Oct 2015
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?