Telerik Forums
Kendo UI for jQuery Forum
2 answers
145 views
Please see this sample code I have, I am trying to reload data from a remote server into the spreadsheet with every click of the button.

The issue is after clicking the search button a second  time to fetch new data, the spreadsheet is appended with a new one.

What is the proper way to reload data into the spreadsheet?

Link to sample code
https://dojo.telerik.com/ewigOKam
Pistle
Top achievements
Rank 1
Veteran
 answered on 05 Oct 2020
6 answers
585 views
This page suggests that kendo themes are now available as SASS, but when I download the source for 2017.3.1026, I only see LESS files (and the default-v2.less seems to not compile, but that may be user error). 

Whither the SCSS files for these themes?
Pistle
Top achievements
Rank 1
Veteran
 answered on 05 Oct 2020
1 answer
105 views

Hi everyone, 

I'm newbie, I get a stuck when view ItemName in Grid

I have Datasource about User, Location, DataCode
dataUser = [

{

"CompCode" : "abc",

"LtnList": "%, 001, 002",

"DataCode": 5

},

{
"CompCode" : "abc",
"LtnList": "001, 002",
"DataCode": 7
},

]

 

Datasource Location:
DataLctn = [

{

"ITEMCODE" : "%",
"ITEMNAME" : "All"

},

{
"ITEMCODE" : "001",
"ITEMNAME" : "Paris"
},{
"ITEMCODE" : "002",
"ITEMNAME" : "NewYork"
}

]

 

Datasource DataCode

DataCode = [

{

"ITEMCODE" : 1,

"ITEMNAME" : "Add"

},

{
"ITEMCODE" : 2,
"ITEMNAME" : "Update"
},

{
"ITEMCODE" : 3,
"ITEMNAME" : "Delete"
}

]

 

How to map ItemName from DataCode and DataLctn sothat I show their ItemNames in Grid of DataUser

Neli
Telerik team
 answered on 05 Oct 2020
5 answers
689 views
In our application to display data we are using Kendo Grid with Foreign Key columns. We are facing problem while sorting these Foreign Key columns. If we try to sort the column, it is getting sorted by Id instead of column text.

We tried to implement the solution given at http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/foreign-key-column-sorting-by-text . but this solution is working at client side but it is not working at server side application.

Do we have any way to achieve this?
Tsvetomir
Telerik team
 answered on 05 Oct 2020
1 answer
540 views

Hi,

i have a scenario where when user edits one of the cell in hierarchical grid column value in parent row should get updated. Can you please help me with this?

Tsvetomir
Telerik team
 answered on 05 Oct 2020
1 answer
422 views

my requirement is to save the page size selected by user in kendo grid, how can we get the  selected page size drop down value

the below property of kendo grid get the default page not the actual page size selected by the user.

$("#grid").data("kendoGrid").dataSource.pageSize

thanks for your help!

Tsvetomir
Telerik team
 answered on 05 Oct 2020
5 answers
327 views

Hello,

 

After changing new line to <br>,  the editor inserts the ordered/unordered list always at the top of textarea box instead of the current position of  the cursor.

Here's how I changed the default new line break for editor:

var defaultTools = kendo.ui.Editor.defaultTools;
defaultTools["insertLineBreak"].options.shift = false;
 delete defaultTools["insertParagraph"].options;

 

While inspecting the HTML, I noticed that the editor starts the list at the top of the textarea but I had placed the cursor on the new line under Text3

<body autocorrect="off" contenteditable="true" class="">
    <ul>
        <li>Text1<br>
            Text2<br>
            Text3<br>
            <br class="k-br">
        </li>
    </ul>
</body>

If  I change back to default behaviour for new line, i.e., <p>, then the list gets inserted at the current cursor position. Please advise.

 

Thanks,

Alex

Alex
Top achievements
Rank 1
 answered on 03 Oct 2020
9 answers
3.5K+ views
I have a method defined in the Controller of my MVC project that returns JSON data. How can I load this data into the grid.

Thanks
Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 02 Oct 2020
1 answer
4.1K+ views
Can you post an example of attaching the new tooltip to grid column headers? tx!
Petar
Telerik team
 answered on 02 Oct 2020
4 answers
141 views

Hey

I found a DropDownList Cascading BUG.

HERE WE GO

Reintroduce steps:

.First, jump to DropDownList Cascading Dojo Sample from Kendo UI documentation site:

Dojo link in "Kendo UI for jQuery > DropDownList.cascadeFrom".

cascadeFrom
https://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist/configuration/cascadefrom

Open in Dojo (Kendo UI 2020.3.915)
https://dojo.telerik.com/aVEteTEz

.Second, change the dojo sample code as below:

1.Replace "input id=child" to "select id=child" : 

  <input id="child" />

-->

  <select id="child" style="width: 100%;" >
                <option>S - 6 3/4"</option>
                <option>M - 7 1/4"</option>
                <option>L - 7 1/8"</option>
                <option>XL - 7 5/8"</option>
            </select>


2.Add the optionLabel into "parent" and "child" BOTH : 


$("#parent").kendoDropDownList({


$("#child").kendoDropDownList({


-->


$("#parent").kendoDropDownList({
          optionLabel: "Bug1 here XD",


$("#child").kendoDropDownList({
          optionLabel: "Bug2 here XD",


3.Add code snippet to show the "parent" and "child" before </body> : 



</body>


-->


  <script>

    function callIt(id)
    {
      var dropdownlist = $("#" + id).data("kendoDropDownList");
      var value, text;
      var selectedIndex;
      //
      value = dropdownlist.value();
      text = dropdownlist.text();
      selectedIndex = dropdownlist.select();
      alert(id + "'s index = " + selectedIndex + ", value = '" + value + "', text = '" + text + "' ;D");
    }

  </script>

  <br/>

  <input type="button" value="parent click" onclick="callIt('parent')" />

  <input type="button" value="child click" onclick="callIt('child')" />

</body>

--

Run then first click the 'child click' button, you'll see the wrong result.

--


RESULT

Click parent, child button will show the result.

.parent
(parent's index = 0, value = '', text = 'Bug1 here XD' ;D)
(parent got the correct value)

.child
(child's index = 0, value = 'S - 6 3/4"', text = 'Bug2 here XD' ;D)
(child got the wrong value from <select> element before change the parent)

FUNNY ;D child.select() got the correct index, BUT child.value() got the wrong value.

The main reason is the optionLabel property both of parent/child before change the parent.
I think the ComboBox/DropDownList should check the selected index then return the correct value.

Both Kendo UI 2017.2.621, 2020.3.915 have the same bug.
Browser: Chrome 85.0.4183.83 (32 bit).
OS : Windows 10.


Best regards

Chris

 

 

Dimitar
Telerik team
 answered on 02 Oct 2020
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?