Telerik Forums
Kendo UI for jQuery Forum
10 answers
293 views
Heya,

I have a problem with the

 

scrollview widget. In this demo I want to change the options ( Photo Album,Cities, Sunset) each time I change the photo in the scrollview. For example, for each photo(city) I want to provide a small description about the city below the separation line. Does anyone have any suggestion?

-Afxe
Petyo
Telerik team
 answered on 18 Dec 2012
5 answers
8.4K+ views
I ve got a kendo grid and i want to a dblclick event on each row

$('tr').dblclick(function() { alert('hola'); });

But this doesnt work. If i want a dobleclick event o all table i can use 
$('table').dblclick(function() { alert('hola'); }); and this works.

What is it the problem?

I try to debug javascript y chrome and the first code ( $('tr').dblclick(function() { alert('hola'); }); ) works and 
can select different rows.
 
The same problem ocurrs with click event.
Daniel
Top achievements
Rank 2
 answered on 18 Dec 2012
2 answers
1.1K+ views
I have a button inside a <form> that always submits the entire form, even though it's not a submit button.

HTML:
<button id="button-app-preview" class="k-button">Oppdater</button>

JS:
$("#button-app-preview").click(preview);
function preview() {
    $("#app-preview").html(template({
        overskrift: $("#input-overskrift").val(),
        ingress: $("#input-ingress").val(),
        brodtekst: $("#input-brodtekst").val(),
        bildeurl: $("#bilde-sti").val()
    }));
}

Any ideas how come this button when clicked, first performs the preview() function, but then after it submits the entire form?
Robin
Top achievements
Rank 1
 answered on 17 Dec 2012
3 answers
128 views

IN kendo.core.js v2012.1.322
File :
// Internet Explorer does not support setting the innerHTML of TBODY and TABLE elements
        try {
            table.innerHTML = "<tr><td></td></tr>";

            /**
             * Indicates whether the browser supports setting of the &lt;tbody&gt; innerHtml.
             * @name kendo.support.tbodyInnerHtml
             * @property {Boolean}
             */
            support.tbodyInnerHtml = true;
        } catch (e) {
            support.tbodyInnerHtml = false;
        }


IN kendo.web.js2012.1.322
File
var tbodySupportsInnerHtml = kendo.support.tbodyInnerHtml,
if (tbodySupportsInnerHtml) {
                that.tbody[0].innerHTML = html;
            } else {
                placeholder = document.createElement("div");
                placeholder.innerHTML = "<table><tbody>" + html + "</tbody></table>";
                tbody = placeholder.firstChild.firstChild;
                that.table[0].replaceChild(tbody, that.tbody[0]);
                that.tbody = $(tbody);
            }

Atanas Korchev
Telerik team
 answered on 17 Dec 2012
2 answers
812 views
hi,

Is there any way to programmatically get the datasource in a grid with the items sorted as the user has selected?

The following:

$(grid).data("kendoGrid").dataSource.view()

takes into account grid paging also, and does not return the items of the entire datasource sorted. Can I get somehow all dataitems sorted regardless of paging?

Thanks in advacne

Michalis
Top achievements
Rank 1
 answered on 17 Dec 2012
2 answers
91 views
Hi,

Would you please surround grid popup editor buttons with div tag so that they do not wrap around in some cases when custom styling is used.

At present your code looks like:
html += that._createButton({ name: "update", text: updateText, attr: attr }) + that._createButton({ name: "canceledit", text: cancelText, attr: attr });
However it should look like:
html += '<div>' + that._createButton({ name: "update", text: updateText, attr: attr }) + that._createButton({ name: "canceledit", text: cancelText, attr: attr }) + '</div>';
Sypher
Top achievements
Rank 1
 answered on 17 Dec 2012
1 answer
809 views
Hi All,

As per project requirement, I have to display kendo list-view as popup on button/link click?
How we can do that? Please help in this case. Immediate response would be appreciated.

Regards,
Partha.
Vladimir Iliev
Telerik team
 answered on 17 Dec 2012
1 answer
91 views
Hi,

I have a touch event in a kendo template illustrated in the following jsBIN:
http://jsbin.com/isatoz/33/edit

Can you tell me why this don't work?

Thanks,
Martin
Petyo
Telerik team
 answered on 17 Dec 2012
1 answer
1.1K+ views
Hi,

I am using kendo tabstrip to display kendo tree view component.

I have populated kendo tree view by using hierarchical JSON structure, some of the nodes are too long to display it inside the tab hence I need to wrap the node text. Is there a way to wrap node text?

Thanks,
Barani
Petur Subev
Telerik team
 answered on 17 Dec 2012
5 answers
398 views
My form has a simple Datepicker on it, which paints and apparently operates correctly, but when I post the results with the submit button, although the rest of the fields go through correctly, the one with the datepicker doesn't. 

For example, I have a part of my form like this:

<tr><td class=view><font color=red>Third Phone Type</td><td class=view><input type=hidden name="oldfield13" value="Not Given"><select  id="i13"  class=view name="field13">
<option value=""></option>
<option selected value="Not Given">Not Given</option>
<option value="Home">Home</option>
<option value="Office">Office</option>
<option value="Mobile">Mobile</option>
<option value="Direct Dial">Direct Dial</option>
<option value="Primary">Primary</option>
</select>
</td></tr>
<tr><td class=view>Contact EMail Address</td><td class=view><input type=hidden name="oldfield14" value="xxxx23285@gmail.com"><input type=text class=view name=field14 value="arun23285@gmail.com"></td></tr>
<tr><td class=view>Payslip EMail Address</td><td class=view><input type=hidden name="oldfield15" value=""><input type=text class=view name=field15 value=""></td></tr>
<tr><td class=view><font color=red>Gender</td><td class=view><input type=hidden name="oldfield16" value="Female"><select  id="i16"  class=view name="field16">
<option value=""></option>
<option value="Not Given">Not Given</option>
<option value="Male">Male</option>
<option selected value="Female">Female</option>
</select>
</td></tr>
<tr><td class=view>Date of Birth</td><td class=view><input type=hidden name="oldfield17" value="1 July 1986 00:00:00"><input  id="i17"  type=text class=view name=field17 value=""></td></tr>

....

and then some time later, at the end, I have 

<script>
$(document).ready(function() {
$("#i17").kendoDatePicker({format:"dd MMM yyyy"})
});
</script>

I pick a date, when I close the datepicker window, the 
value has filled in on the text box, 
and then when I post, I have a debug routine that reads all 
the posted data, and displays it in a table.
I get this (amongst other stuff)
then some time later, at the end, I have 
oldfield13 Not Given
field13 Not Given
oldfield14 xxxx23285@gmail.com
field14 xxxx23285@gmail.com
oldfield15
field15
oldfield16 Female
field16 Female
oldfield17 1 Jan 1900 00:00:00
oldfield18 Indian
field18 Indian
Notice how there's no entry for the datepicker field, which is named field17 - not even an empty field posted. Also notice that I've definitely set the name attribute on the input field. 

I'm using the latest version of Kendo UI (just redownloaded it today to check). The datepicker also behaves like this, even if I don't open up the date widget and type the date in (in dd/MMM/yyyy format). What do you think the problem is?


Clive
Top achievements
Rank 1
 answered on 17 Dec 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
Bronze
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
Bronze
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?