Telerik Forums
Kendo UI for jQuery Forum
1 answer
584 views

I have a grid which has two columns ,when i click on the first column content i want it to show me a message box,but the problem is when i click on the message box,it does not go away compeltly,the nmessage box shadow is still there ,what im doing is:

 

  $("#gridProAvail").kendoTooltip({
               filter: "td",
               content: toolTip,
               width: 400,
               height: 100,
               position: "top"
           });

         
          $("#gridProAvail").click(toolTip);

      function toolTip(e) {
         var target = $(e.target);
         if(e.target[0].cellIndex == 0) {
         var cellInfo = e.target[0].innerHTML;
         alert(cellInfo);
         grid.dataSource.read();
         }

        
i need the content to be shown in the tool tip
               
       

Viktor Tachev
Telerik team
 answered on 04 Apr 2019
1 answer
343 views

I've bound data sources to grids and dropdownlist widgets but I haven't seen many examples or binding the data in a datasource to simple multiple labels or textboxes on a page load (in MVVM preferably).    I can bind it to a simple variable defined in the observable objects but how can I bind it to a datasource value like an array of objects?  

<script id="index" type="text/x-kendo-template">

<span data-bind="text: someTextValue"></span>

<span data-bind="text: someTextValue2"></span>

</script>

 

 

var viewModelIndex = kendo.observable({

someTextValue: '12345',

someTextValue2: '12345',

fruits: new kendo.data.DataSource({
data: [
{ id: 1, name: "Apples" },
{ id: 2, name: "Oranges" },
{ id: 3, name: "Bananas" }
],
schema: {
model: {
fields: {
id: { type: "number" },
name: { type: "string" }
}
}
}
}),

 

 

});

 

 

.

Perry
Top achievements
Rank 1
 answered on 03 Apr 2019
3 answers
184 views

 I am trying to use numeric textbox inside treeview template. When I try to focus the textbox, it doesn't focuses and lost the focus. Since I wasn't able to change the values. I tried using mvvm binding from html and its not working either. 

P.S I had to use numerictextbox because of the formatting reasons. Below is the sample url i have tried,

https://dojo.telerik.com/@paulrajj/OmOdilij/2

Kindly let me know if there is any solutions to fix this. 

Petar
Telerik team
 answered on 03 Apr 2019
3 answers
177 views

I manage to make anything work with the , where ever I try to use one, grid or .

my code is: 

 

thanks for the assistance

 

 var customersData = new kendo.data.DataSource({
            dataSource: {
                type: "odata",
                transport: {
                    read: {
                        url: SCH.webapp_api + '/scheduler/customers/data',
                        dataType: "json",
                        type: "GET",
                        cache: false,
                    },
                    schema: {                       
                        model: {
                            fields: {
                                id: { type: "number" },
                                name: { type: "string" },
                                company: { type: "string" },
                            }
                        }
                    }
                },
                autoSync: true,
                serverFiltering: true,
            }
        });

        $("#customers").kendoDropDownList({
            optionLabel: "Choose a customer",
            filter: "contains",
            dataTextField: "name",
            dataValueField: "id",
            dataSource: customersData,
            index: 0
        });

Petar
Telerik team
 answered on 03 Apr 2019
1 answer
162 views

Is it possible to initialize a grid from an table with hierarchy inside?

 

thanks

Georgi
Telerik team
 answered on 03 Apr 2019
5 answers
405 views

Hi.

What is the preferred way of hiding/showing kendo controls in Angular? There are some options:

- ng-show
- ng-if
- k-visible

Beside the obvious difference between the first two, what are the complications of hiding/removing a wrapper DOM element as opposed to using k-visible. Are there any differences in performance, memory usage, etc. to be aware of?

Cheers,
JH

Veselin Tsvetanov
Telerik team
 answered on 03 Apr 2019
2 answers
139 views

Hi,

I'm using Node.js configured with DataSource. All was working fine. We switched from mysql to Postgres and now the Grids don't populate with the returned data. Before pasting tons of code here, checking if I missed something obvious:

I added the following change event function to the transport, and in the Chrome debugger I see the expected rows are returned in the results. What I don't know if the data object stores the rows in some new or unexpected way. There's an element called "0" with child array called "rows" which has the correct number of rows, populated with the correct data and elements named correctly. I also checked the element names throughout and they match. 

Any tips on how to debug whether the grid is receiving the update?

change: function(e) {
    var data = this.data();
    console.log(data);
}

Brett
Top achievements
Rank 1
 answered on 02 Apr 2019
7 answers
296 views
For following configuration, when all childs of a node are selected, parent nodes are also counted. It causes misunderstanding. If it is not possible to count only leaves, how can a fixed message be displayed.

                checkboxes: { checkChildren: true },
                messages: {
                    singleTag: " selected"
                },
                tagMode: "single",
Andrea
Top achievements
Rank 2
Iron
 answered on 02 Apr 2019
1 answer
93 views
We recently moved our application from a Windows Server 2008 box to a Windows Server 2016 box. No other changes have been made to the application. For some reason now, our Kendo dropdown that displayed employee names now simply displays the text "wrong code". Any thoughts on what may be causing this and how to fix?
mike
Top achievements
Rank 1
 answered on 02 Apr 2019
4 answers
149 views

We need to get rid of Hibernate (change it to JDBC-driver).

We use basic usage of TreeList (from springs-demos) and have some problems with uploading our database in TreeList.

Wу think it is because of this fynction:

@Override
public List<TObjectType2> getList() {

Connection connection = cn.getConnection();
List<TObjectType2> result = new ArrayList<TObjectType2>();
try {
Statement statement = connection.createStatement();
ResultSet resultSet = statement.executeQuery("SELECT * FROM \"ID_OBJECT_TYPE_2\"");
while (resultSet.next()) {
TObjectType2 to = new TObjectType2();
to.setIdObjectType(resultSet.getString("ID_OBJECT_TYPE"));
to.setDescription(resultSet.getString("DESCRIPTION"));
to.setObject1C(resultSet.getString("OBJECT_1C"));
result.add(to);
}
return result;
} catch (SQLException e) {
e.printStackTrace();
return null;
}
}

 

Because with hibernate it is like this:

@Override
public List<EmployeeDirectory> getList() {
return sessionFactory.getCurrentSession().createCriteria(EmployeeDirectory.class).list();
}

 

In the web it we can see, that there are 5 items (that's true!), but "No records to display"

http://skrinshoter.ru/s/270319/pTQKFDXl

ILYA
Top achievements
Rank 1
 answered on 02 Apr 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
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?