Telerik Forums
Kendo UI for jQuery Forum
3 answers
358 views

I have a Kendo UI treeview which contains some node that i load children on expand by firing a ajax call and returning a data array. This works fine and i get the data and it binds to the tree.
However the issue occurs after the first expand of a node, when i expand the node first time the tree behaves correctly and everything is fine, however if i collapse and expand the node again the tree does not push the other nodes down and the expanded node overlaps all other icons in tree.

Here is the code that i use to build the tree

01.$('#all-library-tree').kendoTreeView({
02.            loadOnDemand: true,
03.            dataSource: _masterTreeViewMasterObj.sort().reverse(),
04.            expand: function (e) {
05.                var treeView = $('#all-library-tree').data('kendoTreeView');
06.                var dataItem = treeView.dataItem(e.node);
07.                dataItem.load();
08. 
09.                if (dataItem.children.data().length !== 0) return;
10. 
11. 
12.                if (dataItem.id === -1) {
13.                    //get unused data
14.                    GetUnUsedChildrenForRHSTree(dataItem.text, dataItem.children);
15.                }
16. 
17.            }
18.        });
Dimitar
Telerik team
 answered on 27 Dec 2019
6 answers
95 views

Hi,

I am currently using the <A href> tag button as a template feature for column cells.

I want the button and the value I entered directly in this cell to be displayed at the same time.

[Value {button}]

Think of {} as a button.


The ideal solution is
[Value | {button}]
I want to have a value and a button area in one cell.

No matter how long the value is, it must not extend beyond the button area.

But the most important thing is to make the value visible first.

The current value is entered, but because the transparent area of the small button covers the entire cell (which is my reasoning), the value is hidden and invisible.
(Click the cell for correction and you will see the value. If it goes out of focus, it will be hidden again.)

How can we solve this?

 

 

columns: [
                {selectable: true, width: "35px"},
                {field: 'fnProdInOutSeq', hidden: true},
                {field: 'lotNo', title: '입고 Lot', width: 100},
                {field: 'prodNm', title: '품명', width: 100,
                    template:
                        "<a href='javascript:' class=\"k-icon k-i-search\" onclick='return fnObj.gridView03.gridFn.searchComp(\"#=  prodNo  #\")' style='float:right'> </a>"
 
                }
]
Tsvetomir
Telerik team
 answered on 25 Dec 2019
3 answers
87 views
Hello,

I'm using the create, update, etc. features of transport very well.

But there is a problem.

I wanted to proceed with a simple Insert, Update, but the above create, update has the condition that the datasource should have a change.


I've looked up the dataSource.query () method so is this correct?

However, the only example is select, and I do not know the configuration that proceeds to create / update with the data I prepared arbitrarily.


If this is possible please give me some good sample code.
Tsvetomir
Telerik team
 answered on 25 Dec 2019
1 answer
109 views

 

Hi All,

Is there a way to make the control just have "one" drop-down that allows the date and time to be picker in one go? Or do we have to create our own?

 

Thanks,

Andy

Preslav
Telerik team
 answered on 25 Dec 2019
6 answers
93 views
Hello,

Let's say you have JSON data created using Read () or some other method.

{userId: testID, userPw: testPW}

It will be in the same form.

Here if i

schema: {
    data: 'list',
    model: {
        id: 'userId',
        fields: {
            userPw: {editable: false}
...

If the schema is defined as above, the key Id is the "userId" field.

But in the JSON data I can see, I don't know which data corresponds to the Key (Schema ID).
(Of course, if you debug your code, you'll know.)

Nevertheless, Key (Schema ID) definitely exists and the system uses it.

So here is the key question. How can users see or access the Key (Schema ID) in their data?


Perhaps this question is the same as asking how the internal logic of the isNew () method accesses a Key in JSON data.


In other words, in the JSON Data object I have

var SchemaID = data. ???;

I would like to know how to extract the Key (Schema ID) with this approach.


(What should be in the ???)
NHJ
Top achievements
Rank 1
 answered on 25 Dec 2019
2 answers
129 views
Hi,

I have created Onclick-select-dataSource.set linkage code using a template.

Everything went smoothly, but only one problem arose.

The problem is that the set dataSource is not visible.

But the data is definitely set and available. When you click on a cell and try to edit it, you see it.

But if it goes out of focus, it's hidden behind the template again.

How can I take out the datasource hidden behind the template and make it visible?
Aleksandar
Telerik team
 answered on 23 Dec 2019
3 answers
1.9K+ views
Hi 

I am binding a external data source to a bar chart with a single series of  data for six category values. i am getting single color for all the bars.how to get unique color for each bar?
Aimen
Top achievements
Rank 1
 answered on 23 Dec 2019
1 answer
251 views

I've got a navigation menu , and under it a workspace. Any button pressed in the menu will open  a kendo window in the workspace. I don't want the windows to cover the menu and thus placed the windows with a contain property to workspace div. However I want the windows to be placed anywhere under the menu. I want a scroll bar to appear when the window is being dragged outside of the workspace. I have overflow: scroll set in the workspace div but the windows cannot be dragged beyond the workspace. 

I've placed how my window is made.

 

  function onClose(e) {<br>            if (confirm("Are you sure? All form data will be lost.") == false)<br>                e.preventDefault();<br>            else {<br><br>                secWindow.data("kendoWindow").destroy();<br>                secWindow.remove();<br>            }<br>        }<br>        var formName = event.target.id + "form.aspx"<br>        secWindow.kendoWindow({<br>            width: "600px",<br>            content: formName,<br>            title: windowTitle,<br>            appendto: '#content' ,<br>            draggable: {<br>                containment: '#content'<br>            },<br>            visible: false,<br>            actions: [<br>                "Pin",<br>                "Refresh",<br>                "Minimize",<br>                "Maximize",<br>                "Close"<br>            ],<br>            close: onClose<br>        }).data("kendoWindow");<br>        secWindow.data("kendoWindow").center().open();<br>        setInterval(function (e) { secWindow.data("kendoWindow").refresh(formName) }, 60000);
Ivan Danchev
Telerik team
 answered on 19 Dec 2019
5 answers
1.2K+ views

Hello,

 I am using a client-side solution to export kendo grid data to Excel.  I would like to be able to include line breaks within each cell.  \r, \n, <br />, and &#10; don't work.  Here's some sample code:

// ...
excelExport: function (e) {
        var sheet = e.workbook.sheets[0];
        var skillsIndex = 0;
 
        // First row.  Find the skills column, and set the index.
        for (var i = 0; i < sheet.rows[0].cells.length; i++)
        {
            if (sheet.rows[0].cells[i].value == "Skills")
            {
                skillsIndex = i;
                break;
            }
        }
 
        for (var j = 1; j < sheet.rows.length; j++)
        {
            sheet.rows[j].cells[skillsIndex].value = "We got&#10;skills!";
            // doesn't break the line between got and skills -- how to do so?
        }
}
// ...

Thank you for any help you can provide!

Petar
Telerik team
 answered on 19 Dec 2019
11 answers
669 views

Hello,

I would know how to expand a row on column click but I've a custom function on expand and It's not working.

The row expand well with ".collapse(row)" but the custom function I've defined in :

expand: function(e){
    setTimeout(function(){
    customExpandFunction(e);
}, 20);
},

only works when I click on treelist expand icon.

Is there a way to make this works ?

PS : sorry for my english, I'm french

Tsvetomir
Telerik team
 answered on 19 Dec 2019
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
MultiColumnComboBox
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
TextArea
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
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?