Telerik Forums
Kendo UI for jQuery Forum
2 answers
2.4K+ views
Hi,

First of all, Kendo UI is a very great framework for HTML5. thumbs up!

Now i have a small problem that i can't fix
i have a webpage that calls a webservice when the user triggered an event.
before sending the request, i disable the combobox so there the user is forced to wait untill the request handling is done.

function DoRequest()
{
$("#ComboBoxUrl").kendoComboBox({ enable: false });
Service.
DoSomething($("#ComboBoxUrl").val(), OnComplete, OnError, OnTimeOut);
}

When the handling is successfully done, there will be a callback function that re-enables the combobox
and show the response in a textbox.

function OnComplete(arg)
{
$("#txtReponse").val(arg);
$("#ComboBoxUrl").kendoComboBox({ enable: true });


Problem is: the combobox stays disabled after the callback. i copy-pasted the code line and changed the false param to true, so i was sure it wasn't a syntax error.

Do i do something wrong? is this a bug?
beauXjames
Top achievements
Rank 2
 answered on 15 Feb 2013
1 answer
106 views
Hi

I'm using an input with the "date" type to get the date settings options, which are really cool.

What I'm not sure about is how to get the date value out of the input.  Looking in the inspector, the value of the input does not change.

So how do you get the new value out?  Handle the change event or something?

Thanks
Iliana Dyankova
Telerik team
 answered on 15 Feb 2013
1 answer
120 views
In my grid, I do have a column as small image. I want to display a different image size as ToolTip. Is it possible in KendoGrid ? If so, could you please send me a sample code.

Thank you

.
										
Alexander Valchev
Telerik team
 answered on 15 Feb 2013
1 answer
1.4K+ views
Hi,
I have a set of rules like.
Allow to increase value ,
Allow to decrease value.

If we set above rules to false then I should prevent user increasing /Decreasing value from KendoNumericTextBox.

So how can I achieve this?

Code Example:

HTML Code:

<input class="inputMyCall" id="${Id}" type=number min=1 />

JS Code:
_InputMycallObj=$(".inputMyCall").kendoNumericTextBox({

         format: "#",

         spin: OnMyCallsChanged,

     }).data("kendoNumericTextBox");

Please advice.

Regards,
Shankar

 

Dimiter Madjarov
Telerik team
 answered on 15 Feb 2013
8 answers
635 views

Hello,

I have a ListView defined with a corresponding pager. I have my selection being applied similar to your selection demo and my issue occurs when paging through the list view items, after selecting an item, if navigating to a new page I would expect one of the following two scenarios to occur:

1) The selection is retained...Selected data and UI style selection upon return to page of items containing selected item
2) The selection is cleared....Selected data is cleared and UI style selection is removed from previously selected item upon return

What I am experiencing appears to be that the selected data is retained but the UI selection style is removed from the selected item upon return to page of items containing selected item.

This undesirable behavior can bee seen on your demo here:  http://demos.kendoui.com/web/listview/selection.html


Are the UI selection styles being intentionally cleared from the selected item when paging to a different page?


(I am aiming to toggle the enabled state of my 'Ok' button based on whether an item is currently selected or not...)


Thanks,
Lee


Iliana Dyankova
Telerik team
 answered on 15 Feb 2013
6 answers
584 views
if I bind to a nullable integer which has an initial value of null, the combobox always returns a null value value to the controller, even if a value has been selected. if I change it to work with a  standard integer, it returns the correct value, but it also sets an initial value in the list which I do not want.

thoughts?

no initial value, but not updating either: public int? QuoteId { get; set; } 
returning values as expected, but populating 0: public int QuoteId { get; set; } 

@(Html.Kendo().ComboBoxFor(m => m.QuoteId)
                  .DataSource(dataSource => dataSource
                                                .Read(read => read.Action("GetQuoteList", "Payment")))
                  .DataTextField("Text")
                  .DataValueField("Value")
                  )
Josiah
Top achievements
Rank 1
Veteran
 answered on 15 Feb 2013
3 answers
170 views
Hi,

I have a similar code as your sample (http://demos.kendoui.com/web/grid/editing.html)

@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.ProductViewModel>()    
    .Name("Grid")    
    .Columns(columns => {        
        columns.Bound(p => p.ProductName);
        columns.Bound(p => p.UnitPrice).Width(140);
        columns.Bound(p => p.UnitsInStock).Width(140);
        columns.Bound(p => p.Discontinued).Width(100);
        columns.Command(command => command.Destroy()).Width(110);
    })
    .ToolBar(toolbar => {
        toolbar.Create();
        toolbar.Save();        
    })
    .Editable(editable => editable.Mode(GridEditMode.InCell))
    .Pageable()
    .Sortable()
    .Scrollable()
    .DataSource(dataSource => dataSource        
        .Ajax()         
        .Batch(true)
        .ServerOperation(false)
        .Events(events => events.Error("error_handler"))
        .Model(model => model.Id(p => p.ProductID))
        .Create("Editing_Create", "Grid")
        .Read("Editing_Read", "Grid")
        .Update("Editing_Update", "Grid")
        .Destroy("Editing_Destroy", "Grid")
    )
)
When I tried to add a new record, the count is incremented (say from 6 to 7), but once I hit the Save button, the count goes back to 6. If I refresh the page, the count will be correct (7). Any idea on how to fix this? Thank you so much.
Rosen
Telerik team
 answered on 15 Feb 2013
2 answers
67 views
The ComboBox binding to remote data demo is broken.  When it tries to bind the combobox, it throws the error "Uncaught SyntaxError: Unexpected token > ".  This happens in both Chrome 26 and IE8.

I tried to submit a bug report about this, but kept getting server errors when I tried to submit.
Richardsonke
Top achievements
Rank 1
 answered on 15 Feb 2013
3 answers
174 views

I have this situation:

I have some Views and by default they have assigned a Layout for them. The problem is that in some specific cases, I need to change the Layout of some of these Views in the Javascript file.

I am using this way:

$("#tabstrip-dash").setAttribute('data-layout', 'mobile-tabstrip-layout2');

This solution works only if I reload the application, but I want to change it instantly.

Is there any way to set the new Layout?

Thanks!

Alexander Valchev
Telerik team
 answered on 15 Feb 2013
1 answer
203 views
Hi,

I encountered a problem with listview endless scrolling.
The endless scrolling stops working after refesh the datasource.

I made a jsFiddle http://jsbin.com/amifov/3/edit

Try to make an endless scroll action and then hit the refresh button.

Thanks,
Martin
Georgi Krustev
Telerik team
 answered on 15 Feb 2013
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
Drag and Drop
Map
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
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
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
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?