Telerik Forums
Kendo UI for jQuery Forum
1 answer
146 views
Hi,
I test a sample in it as follows 
http://jsfiddle.net/7WVqL/120/ 
List1 trigger click event ,e.dataItem has value.
But List2 hasn't.
How can i use list2 trigger click event to let e.dataItem has value?



Petyo
Telerik team
 answered on 03 Sep 2012
2 answers
81 views
I have found out that the popup editor example for the grids leaks resources. See the following sample:
http://demos.kendoui.com/web/grid/editing-popup.html 

It creates a new "k-window" object every time the "Edit" button is clicked. Thus clicking the Edit button and editing multiple items populates the DOM with many "k-window" nodes which are added and are not cleaned up. You can observe this easily by using the object inspector of Chrome or a similar tool. This could cause problems on a mobile browser with memory constraints. Surely Kendo should reuse the same kendo window each time or destroy the old before creating a new one? Can anyone suggest a workaround for this bug?
Atanas Korchev
Telerik team
 answered on 03 Sep 2012
0 answers
381 views
Hi there,
I have grid inside a TabStrip and the grid has a boolean column which is shown as checkbox... this is perfectly fine. But now my concern is even though my grid's editable property is set to true the check box is disabled. i tried adding the checkbox using a template column.
I am getting this error: Inline markup blocks (@<p>Content</p>) cannot be nested.  Only one level of inline markup is allowed. Below are the two ways i tried setting the checkbox column.
columns.Template(p => @<text><input type="checkbox" value="" #= @p.Approved?checked="checked":"" #  /></text>).Width(60).Title("").HeaderHtmlAttributes(new { style = "background-image:url(../../Content/ImagesAite/th_appr.png); " }).HtmlAttributes(new { style = "text-align:center" });<br>     columns.Bound(p => p.Approved).Width(60).Title("").HeaderHtmlAttributes(new { style = "background-image:url(../../Content/ImagesAite/th_appr.png); " }).HtmlAttributes(new { style = "text-align:center" });<br>
Also the alignment of the checkbox column is left aligned even though i set the text-align property of the column to center. Also i would like to know to fix the height of the grid rows.... is it possible to switch off word wrapping.... 

Thanks in advance
Sree Rachakonda
Top achievements
Rank 1
 asked on 03 Sep 2012
0 answers
125 views
Try to determine target cell editable or not based on its value

try to do it at edit event but do not know how to get target cell's original value

please help

code:


edit: function(e) {
var val = ;   // target cell's value
if (val = "-"){
         this.closeCell();
}
}


how to get val's value?
Alan
Top achievements
Rank 1
 asked on 03 Sep 2012
0 answers
142 views
Fixed.
Michael
Top achievements
Rank 1
 asked on 03 Sep 2012
4 answers
322 views
Hi!

It seems like the resize event for Splitter does not supply the pane that got resized, as documentation says.

E.g. a collapse event gives this to work with:
Object { pane=div#leftPane.k-pane, preventDefault=function(), isDefaultPrevented=function()}

While resize only this (note the absence of "pane"):
Object { preventDefault=function(), isDefaultPrevented=function()}


How can I get the size of pane and which pane got resized without this? Am I missing something?

Thanks!
/Jacob
Joe
Top achievements
Rank 1
 answered on 02 Sep 2012
0 answers
144 views
Hi,

We are looking to use the json method to retrieve data from a web/cloud database.  But also to allow access from mobile devices.

Is there a proven method to send a secure token in the json header etc. or an alternative method.  I have browsed for a solution but i found nothing.  We are using the default .net membership/roles and authorize at the moment.

Any help or an example would be great.
chris
Top achievements
Rank 1
 asked on 02 Sep 2012
1 answer
288 views
I am using MVC4 and displaying mobile views to mobile clients. Each page makes use of the master page (_Layout.Mobile.cshtml) which has the layout definition, references to the mobile CSS, JS and initializes the kendo application.

From the examples I have seen, it appears you are suppose to have the layout definition only once, then, every other page should just have a <div> with a data-role="view". This way, when clicking links the ajax call simply gets the contents of the view and replaces the current view.

Currently, when I try to link between pages, the "loading" flickers non-stop. I believe that problem is that the ajax call to get the page is expecting only the <div data-role="view">, but I'm providing a page with everything on it.

Is there a way to just get the contents of the <div data-role="view">, similar to how jquery's load() takes the URL and an optional selector?


Petyo
Telerik team
 answered on 02 Sep 2012
1 answer
147 views
Check out my jsfiddle example. I don't know what I'm doing wrong but after you click an item in the grid an edit box will apear below. If you change the dropdown value from female to male it works, but after that try switching back to female and it just bugges out and stays on male. I use dropdown lists in this way in a lot of places and i get that issue all the time, it always wont change anymore if you set it to the first value from the datasource.

http://jsfiddle.net/UtQuG/37/ 
Dennis
Top achievements
Rank 1
 answered on 01 Sep 2012
0 answers
377 views
hi,
is it good practice to use k-block as layout base? I can not find any documentation of it - just an example here:

http://demos.kendoui.com/web/styling/panels.html

Or is it better to use my own containers?

Thanks,
Matthias




Matthias
Top achievements
Rank 1
 asked on 01 Sep 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
Drag and Drop
Application
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
LLM Kit
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?