Telerik Forums
Kendo UI for jQuery Forum
0 answers
54 views
In the old version the e.target of the dragLeave event was the div I was leaving, in the new version the e.target is now the new div I enter...

Is this a bug or a normal update?
Stephane
Top achievements
Rank 1
 asked on 24 May 2012
0 answers
212 views
We have a situation where we've bound our view (HTML page) to our ViewModel. There is a grid in our view that is being populated, however it's visibility is bound to a function on our ViewModel called 'isListEmpty'. It appears that this function is being checked by the view at binding time (when the list is empty), but after we've refreshed our observable array, and the grid populates itself with data, the isListEmpty() function is never checked by the view, and thus the grid remains hidden. Is there a way to poke the View from the ViewModel such that it refreshes some or all of its values that are bound to the ViewModel?
Benjamin
Top achievements
Rank 1
 asked on 24 May 2012
0 answers
122 views
I am useing Kendo Grid With Json datasource.and i enabled "serverPaging: true,";
I use this code in my server to handel the paging :


var take = Convert.ToInt32(context.Request.QueryString["take"]);
var skip = Convert.ToInt32(context.Request.QueryString["skip"]);
var page = Convert.ToInt32(context.Request.QueryString["page"]);
var pageSize = Convert.ToInt32(context.Request.QueryString["pageSize"]);

json = jss.Serialize(query.Skip(skip * pageSize).Take(take).ToList()).ToString();


and finally return the Json.

but now the Grid paging  only show me one page but i should to have 7 page.how can i defind the number off the page for my grid.
mahdi
Top achievements
Rank 1
 asked on 24 May 2012
2 answers
1.6K+ views
Hi,

Is there a way to define dataTextField to be a template? Perhaps it may be a good idea to define two new properties displayTemplate and valueTemplate to make control more flexible and customizable on client side.
Jerry T.
Top achievements
Rank 1
 answered on 24 May 2012
0 answers
90 views
I would like to validate drag/drop as the user moves a node over other tree nodes.
I have the following source:

        $("#treeView").kendoTreeView({
            dragAndDrop: true,
            .......
        }).bind("drag", function(e) {
            var node = $(e.dropTarget).closest(".k-item");

            // Only care if we are dragging to a treeviewitem
            if (!(node.length && node.parents(".k-treeview").length)) return;

            var targetId = $(node).find('.data-id').val();
            if(targetId != 'Testing")
                 // TODO: Mark dragging as invalid?
        });

But i'm not show how to mark the drag as invalid? Am I going about this the correct way?
Kyle
Top achievements
Rank 1
 asked on 24 May 2012
0 answers
102 views
Can we get a resize to content method on a pane?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 24 May 2012
1 answer
119 views
I am placing the first row of my datagrid into Edit Mode using grid.editRow(). Everything renders fine, but when I click outside of the grid, I get a jscript error in the kendo.all.min.js at method: _cellTempl() because the first parameter is undefined.
Atanas Korchev
Telerik team
 answered on 24 May 2012
2 answers
639 views
Hi I am working with the Kendo UI grid and am currently able to display data from my MySQL database using JSON to transport the information.

I am allowing the user to update the data in the database through a series of inputs, which when clicking a row on the grid are populated by an item in the grid's datasource. This is all working perfectly and very quickly. However, when I update the item I am then calling the .read() method on the datasource, and the only issue I am having is that I am not currently able to figure out how I can reselect the same row. I can loop through the datasource's views and find the view in particular that matches up to the edited item by one of its properties but I can't figure out a way to reselect it.

var grid = $(".grid.dynamic.tbl").data("kendoGrid");
grid.dataSource.read();

//console.log(grid.dataSource.view());
for (i in grid.dataSource.view()){
console.log(grid.dataSource.view()[i]);
if (myID == grid.dataSource.view()[i].MyID) console.log('Found correct ID at index: '+i);
}

Any ideas? It is probably staring me right in the face to be honest.
Basem
Top achievements
Rank 1
 answered on 24 May 2012
2 answers
392 views
What's the best way to maintain Grid Selection after the user sorts a column? Right now when the user changes the sort by clicking a column header the selection disappears.
Basem
Top achievements
Rank 1
 answered on 24 May 2012
1 answer
158 views
HI all,

I want to have a webapp in android device where the app has to retrive the data from a database.I am uncertain about the process of retriving data through  the app using kendo UI.

Any help is appreciated..

Thanks,
Swarup
Lee
Top achievements
Rank 1
 answered on 24 May 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?