Telerik Forums
Kendo UI for jQuery Forum
1 answer
548 views
Hi,

I'm trying to resolve the refreshing issue with grid while setting data using Datasource.data() method. Grid refreshes fine when data list contains atleast one record , if data list contains empty list Grid renders the cached data. in this case very first set of data list assigned to Datasource.

setData:

 

function (selector, datalist, emptyOptions) {

 

var grid = $(selector).data("kendoGrid");

 

if (!grid) return false;

 

var len = datalist.length || 0;

 

if (grid.dataSource) {

grid.dataSource._pristine = datalist;

grid.dataSource._total = datalist.length || 0;

grid.dataSource.data(datalist);

}

 

else {

grid.dataSource =

 

new kendo.data.DataSource({ data: datalist, total: len });

}

 

this.resize(selector, emptyOptions);

},

Alexander Valchev
Telerik team
 answered on 19 Jun 2012
2 answers
91 views
Hello! What's wrong with following code?

<div id="grid"></div>
 
<script type="text/javascript">
    $(function () {
 
        var units = [{ UnitId: 2 }, { UnitId: 5}];
 
        var ds = new kendo.data.DataSource({
            // transport: {
            //   read: { url: 'http://localhost:6356/admin/GetUnitTogglesList' }
            // },
            data: units
        });
 
        ds.read();                    // For test purpose:
        alert(ds.data().length);      // show 2 - it's Ok
 
        $('#grid').kendoGrid({
            dataSource: ds,
            columns: [{ title: "Unit Id", field: "UnitId"}]
        });
 
    });
</script>

In result - Grid is empty.
And i see error in Firebug console (see attached image).
Eugeny
Top achievements
Rank 1
 answered on 19 Jun 2012
5 answers
152 views
When I call modal window above normal window I am still able to activate normal window.
How can we prevent that?
Kakaiba
Top achievements
Rank 1
 answered on 19 Jun 2012
0 answers
318 views
Any idea why the wrapper for numerictextbox add attribute readonly when I use this widget with knockout binding?
My code is:
<input type="text" class="k-textbox" id="inpNip" placeholder="" name="Nip" data-bind="value: Nip, autovalidate: true" /> As a result I get: 

<span class="k-numeric-wrap k-state-default k-state-hover">
<input class="k-formatted-value k-input valid" type="text" style="display: inline-block; " readonly="readonly">
<input type="text" class="k-input valid" id="inpNip" name="Nip" data-bind="kendoNumericTextBox: {value: Nip, }" data-role="numerictextbox" style="display: none; ">
<span class="k-select"><span unselectable="on" class="k-link">

 In first input is attribute readonly because of which numerictextbox acts strange. The behavior is visible also on knockout-kendo.js page ( http://rniemeyer.github.com/knockout-kendo/web/NumericTextBox.html ).

So any idea why it is like this? How to get rid of it?

Thanks.
/KrisD
Kristijan
Top achievements
Rank 1
 asked on 19 Jun 2012
1 answer
232 views
There is a lot of confusion in our team.  Does your DataSource bind to anything?  Ie., WCF, WCF doing JSON, JSON-RPC.  Given that we have seen only REST examples, there is a bias now for Kendo using *only* REST.  My argument is that Kendo is all client side, so why would it be limited to only one or two service protocols.

Could you discuss and perhaps give links to various examples?

Thank you.

Atanas Korchev
Telerik team
 answered on 19 Jun 2012
1 answer
378 views
Hello All,

I am writing a registration form for my site and I want to use KendoUIAutocomplete on a password input to preserve the look of with the other fields.
Is there a way to specify that this is a 'password' input type, IE: Show ***** inplace of the text.
or is there another way to get the same look on a standard <input>

Thanks for any help.

-George
George
Top achievements
Rank 1
 answered on 18 Jun 2012
0 answers
79 views
Hi All,
I got started using Kendo UI framework. I like much and love it.
I have concern about Menu. I just wrote code for static Menu. I am explaining my scenario...
---------------------------
When web page loaded (rendered) then I am seeing List and then within few seconds Menu built and showed. This is kind of strange and not acceptable.
---------------------------
Can we fix this issues or this is the right behavior. Could you guys tell me about how to resolve this issue if we can fix it.
Thanks much in advance.
--Aarzoo
aarzoo
Top achievements
Rank 1
 asked on 18 Jun 2012
1 answer
558 views
Is there a way to disable a row in batch edit mode if the row has a specific column value?
Steve
Top achievements
Rank 1
 answered on 18 Jun 2012
2 answers
270 views
I have been unable to find in the documentation how to add multiple filters with logical or instead of and.  Here is my code which results in a query like this:

filter=(SubscriptionId+eq+0+and+SubscriptionId+eq+472) 

what I want is this:

filter=(SubscriptionId+eq+0+or+SubscriptionId+eq+472) 

Is there any way to do this?

$("#ambulation2").kendoDropDownList({
            dataTextField: "Ambulation",
            dataValueField: "AmbulationId",
            dataSource: {
                type: "odata",
                serverFiltering: true,
                transport: {
                    read: "/yglservice.svc/RefAmbulations",
                    dataType: 'jsonp',
                    cache: true                   
                },
                filter: [{
                        field: "SubscriptionId",
                        operator: "eq",
                        value: 0
                },{
                    field: "SubscriptionId",
                    operator: "eq",
                    value: @UserInfo.SubscriptionId.ToString()
                }]
            }
        });
Gary
Top achievements
Rank 1
 answered on 18 Jun 2012
1 answer
174 views
Hello,

I've developed a Silverlight 5 (MEF) application that uses the TileView throughout it's different modules. Now that I've been asked to create a mobile version of this application I'm wondering how I can replicate (if possible) a similar GUI so that our users won't have to learn a new interface.

Do you think it's possible to have a Kendo control with a similar "look and feel" as a TileView? Seems problematic to me... given the smaller screens and performance differences of a desktop pc to a tablet.

Anyway, please let me know what you think and thanks!

~ Dave
Alexander Valchev
Telerik team
 answered on 18 Jun 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
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?