Telerik Forums
Kendo UI for jQuery Forum
0 answers
284 views
Hi,
I have been trying to adapt the script found at http://www.kendoui.com/forums/ui/treeview/breadcrumbs-to-selected-node.aspx to render a simple breadcrumb below the Kendo menu - not having any luck.  Anyone care to suggest a simple way to do this?

Additionally, I am trying to add the "k-state-selected" class to each parent item of the selected item in the menu.  I can style the current menu item as selected without problems, but I want to highlight all the parent nodes so each higher level is also styled as selected. 

I think the script needed to do the breadcrumbs could also be used to add the selected class to the parent nodes too...

Thoughts?
Richard
Top achievements
Rank 1
 asked on 04 Apr 2012
0 answers
121 views
Hi, somebody knows like using 2 combobox nested???

I have a grid with 2 combobox, and I need binding the second combobox to first combobox:

            $("#grid").kendoGrid({
                dataSource: DowsSharedDataSource,
                height: 400,
                autoSync: true,
                pageable: false,
                scrollable: false,
                navigatable: false,
                selectable: "row",
                sortable: false,
                change: onChange,
                editable: "popup",
                columns: [
                    {field: "CMFault_Desc", title: "Fault Desc" },
                    { field: "RT_Id1", editor: reasonComboEditor, title: "Reason 1" },
                    {field: "RT_Id2", editor: reasonComboEditor, title: "Reason 2" },
                    {command: ["edit"], title: " ", width: "190px" }
                ]
            });

            function reasonComboEditor(container, options) {
                $('<input name="' + options.field + '"/>').appendTo(container).kendoComboBox({
                    dataSource: ReasonTreeSharedDataSource,
                    dataValueField: "Id",
                    dataTextField: "Descr",
                    autobind: false
                });
            }

Tks.
Juan
Top achievements
Rank 1
 asked on 04 Apr 2012
1 answer
188 views
Hi, I have recently started working with Kendo and so far have been really impressed with it. The grid is quite robust and I am looking forward to obtaining a license and using the Kendo UI elements in my next project.

I have a couple of quick questions regarding the Kendio UI Grid (Web), which I was hoping someone could assist me with.

Firstly, I have been able to work with the columns pretty well so far and have been able to switch the datasource from a static html table to an array or json style data structure, which is a good step in the right direction.

For the project I am planning on using Kendo for, I need to basically display a list of contacts with the following requirements:

1) the table will be populated either by json or xml which will be output by a separate php script, this seems quite straightforward and I have done this with various libraries already so it is really just a matter of figuring out the syntax which I need to adhere to for the same protocol to work with Kendo's grid component.

2) a column containing inline action buttons must be added to the end of the table

3) a column containing checkboxes must be prepended to the table, this is basically to allow me to select multiple items. This must be able to be shown or hidden on command.


Now, I have accomplished all of the above when using a static HTML table before initializing it as a Kendo grid. However I am stumped so far in trying to accomplish the same when initializing the table using an empty div. I have tried creating a template and then setting the column's template to be equal to that, but this has resulted in either a) the html structure I put in place simply being output as a string in the column or b) the html I put in place is not being processed correctly, mainly in the case of the class names.

By the way here is an example of the code I have tried to use to set the actions template:

<script id="actions_tmpl" type="text/x-kendo-tmpl">
<div class="table_action chat_action"></div>
<div class="table_action mail_action"></div>
<div class="table_action edit_action"></div>
</script>

columns: [  { title: "", template: kendo.template($("#check_tmpl").html()) },
{ title: "Contact Name", field: "Name" },
{ title: "Company Name", field: "Company" },
{ title: "Phone", field: "Phone" },
{ title: "Email Address", field: "Email" },
{ title: "Address", field: "Address" },
{ title: "Actions", width: 78, template: kendo.template($("#actions_tmpl").html()) } ]

When you inspect the grid after it's initialization, the html exists, but the class names dont seem to come into effect for some reason?? Each div: .chat_action, .mail_action, .edit_action should display a small icon but this doesn't seem to be processed correctly as of yet.

One more issue that I am experiencing is the following, because I need to have the multiple select option implemented in the grid, there needs to be a top-level select all option but I haven't found a way so far to set the column header template or a way around that.

Any ideas would be hugely appreciated,
Thank you!
Conor
Top achievements
Rank 1
 answered on 04 Apr 2012
4 answers
422 views
I'm working on a data audit web applicaton which has a model containing several field sets composed of old value, new value, and current value fields. The current value is a calculated field (by KO terms) which uses fairly trivial logic to decide whether the old or new value should be used for the current value (basically if there is a new value then use it otherwise show the old value). There are about 20 of these field sets to be included in the overall form, and I'd like to avoid having to call `kendo.bind` for all of them individually.

Here's an example of what I'd like to be able to do (and the documentation sort of says should work, but doesn't):

<div id="practiceSection">
    <div id="phoneNumber">
        <h4>Phone Number</h4>
        <span>Display Value:</span>
        <input id="displayPhoneNumber" data-bind="value: phoneNumber.DisplayValue"/><br/>
        <span>Old Value:</span>
        <input id="oldPhoneNumber" data-bind="value: phoneNumber.OldValue"/><br/>
        <span>New Value:</span>
        <input id="newPhoneNumber" data-bind="value: phoneNumber.NewValue"/><br/>
    </div>
</div>​ 

String.IsNullOrEmpty function(value{
    var isNullOrEmpty true;
    if (value{
        if (typeof (value== 'string'{
            if (value.length 0)
                isNullOrEmpty false;
        }
    }
    return isNullOrEmpty;
}
    
function FieldBlock(oldValuenewValue{
    this.OldValue oldValue;
    this.NewValue newValue;

    this.DisplayValue function({
        var newValue this.get("NewValue");
        if (String.IsNullOrEmpty(newValue))
            return this.get("OldValue");
        
        return newValue;
    };
}
    
kendo.bind($("#practiceSection")kendo.observable({
    phoneNumbernew FieldBlock("111-111-1111"null
}));

jsfiddle

The code above results in `FieldBlock.DisplayValue` consistently returning undefined. Oddly enough, the dependent method does work if I pass the `FieldBlock` object to `kendo.observable` directly (not as the value of a property of an anonymous object). Here is a jsfiddle showing what does work but also what I'm trying to avoid.

Is this expected behavior? I'm using the 2012.01.322 build.

Also asked here to make sure I've avoided all of the typical non-ninja problems.
Atanas Korchev
Telerik team
 answered on 04 Apr 2012
2 answers
103 views
Hello,

I use remote views and I didn't succeed in debugging the js scripts that are loaded with these views. Did you know a way to debug the scripts of the remote views ?

Cordially,
Kakone.
Kakone
Top achievements
Rank 1
 answered on 04 Apr 2012
0 answers
91 views
Hi,
In Asp .NET DetailsView, i use ItemTemplate, EditItemTemplate and InsertItemTemplate.
How i can set the input control, ex TextBox how kendoDatePicker ??
In $(document).ready the TextBox control is not visibile and null

Thanks
Vitantonio
Top achievements
Rank 1
 asked on 04 Apr 2012
1 answer
110 views
Kendo UI still lacks essential features to build a large LOB application (layouts, docking windows, hierarchical datasource, databound treeview, lazy loading, ... see uservoice and forums, also check ExtJS). It is not too far though and the progresses have been impressive so far.

Please update the roadmap for those who are planning new projects and might consider Kendo UI provided next releases bring a decent number of key missing features.
Dimo
Telerik team
 answered on 04 Apr 2012
1 answer
97 views
If you take a look at this fiddle:

http://jsfiddle.net/nYN8G/ 

You can see it sets the first fiddle to be user1. It then updates the datasource to be user2. However, it seems that it is just appending the secondary data source. Is this correct? How would I properly swap the data source?
Alexander Valchev
Telerik team
 answered on 04 Apr 2012
1 answer
622 views
I am using the Popup editing in the UI Grid.  How can I select the data values for the Row that is currently being edited?  I need to grab the country for the current row and send it as a parameter to a datasource to return the states for that country.

I am doing this to select the first row, is there a style applied to the row that is currently selected or edited?

 var grid = $("#entityAddressGrid").data("kendoGrid");

             console.log(grid);

             var dataItem = grid.dataItem(grid.tbody.find(">tr:first"));
Alexander Valchev
Telerik team
 answered on 04 Apr 2012
0 answers
44 views
for example,while i update some data in a grid  like username,the username is unique,i must response the error/exception to user,but i saw the document configuration ,the update only has dataType and url.How can i get the response data?
Yuan
Top achievements
Rank 1
 asked on 04 Apr 2012
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
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
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
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?