Telerik Forums
Kendo UI for jQuery Forum
1 answer
311 views
I'm using a listview <ul>  in a settings page, and I'd like to be able to enable and disable each <li> line when it makes sense via Javascript. For instance, I have one line which shows how many records have been found on a server, such as "32 Records     > ", which the user could then click on to go to a view of those records.

However, if the network was not available, that item should read "Offline      ", in gray text with no arrow.

I can make it look just right if I remove the <a> tag around the text, and apply style="color:#808080" to the <li> item. But I can't get the appearance and behavior to change programmatically by, for instance, changing properties like the disabled of the <a>.

Suggestions?

Petyo
Telerik team
 answered on 24 Aug 2012
3 answers
21.2K+ views
I have added some text fields above my grid. I was wanting to attach a change event on these fields so that the grid reloads when the field are updated. I was wondering if there is a way to reload or re-initialize the grid?
Stanislav
Top achievements
Rank 1
 answered on 24 Aug 2012
2 answers
109 views
hi kendo-community,

can someone tell whether it is possible to bind custom attributes to treeNodes per remote datasource.

best regards,

bernhard
Matt Done
Top achievements
Rank 1
 answered on 24 Aug 2012
0 answers
79 views
Hi,
I am trying to pass parameters to address bar after clicking page numbers to give user a permalink so URL of the last view in Grid can be copy-paste and shareable...

For example:
http://example.com/grid/sort-desc-columnname/page1


What are your thoughts on this matter?
Thank  you in advance!
Safak
Top achievements
Rank 1
 asked on 24 Aug 2012
2 answers
402 views
I'm creating a view with a grouped listview on it, targeting iOS and Android.

The listview shows how many records exist of a certain type. If the user presses one, the view changes to show those records.
However, I'd like to be able to show a disabled row when no records of that type exist.

Those records would need to have a "disabled" appearance: grayed text, no ">" link, no button behavior.

It would be great if this could be controlled via databinding (no records or a property of zero = desired behavior), but I'm fine with running a javascript procedure to do this. My issue is that while I can easily perform the graying by applying style="color:#808080" to the <a>, I can only remove the button behavior by removing the <a> tags around the text at design time, not by just setting disable="true" or some other property. Is there a property (href? target? k-style?) or a programmatic procedure that will remove the button behavior from the listview line?

Thanks for your help, everyone.

In the HTML which follows, "None Connected" and "Offline" should be gray (yes it is) but also not activated (can't figure that part out).

<div data-role="view" data-title="Home" id="home-view" data-layout="layout">
<ul id="recordTypeList" data-role="listview" data-style="inset" data-type="group">
<li>
<div id="connectedDeviceLabel" class="km-group-title">Flight Recorder</div>
            <ul>
                <li id="connectedLabel" disabled="true"><a disabled="true" style="color:#808080">None Connected</a></li>
</ul>
</li>
<li>
<div id="deviceName" class="km-group-title">This Device</div>
<ul>
<li><a>34 Records</a></li>
</ul>
</li>
<li>
<div id="recordsCloud" class="km-group-title">Records in the Cloud</div>
<ul>
<li><a  disabled="true" href="" style="color:#808080">Offline</a></li>
<li>Cloud access<input align="left" type="checkbox" id="cloudswitch" /></li>
</ul>
</li>
</ul>
</div>
John
Top achievements
Rank 1
 answered on 23 Aug 2012
2 answers
166 views
I have a list of data that I want to use both in a grid and in a dropdownlist simultaneously. On the grid, I want it to have a pageSize of 10, but on the dropdownlist I want it to have all of the data items. 

I don't want to specify two data sources for the same data just to get different page sizes. How would I set only the grid pageSize independent of the dataSource?

Thanks in advance,
Matt
Alexander
Top achievements
Rank 1
 answered on 23 Aug 2012
2 answers
154 views
Hi,

Is it possible to use kendoEditor in the Grid popup editor?

Thanks
Safak
kabbas
Top achievements
Rank 1
 answered on 23 Aug 2012
1 answer
343 views
Hi, I'm trying to make a line chart that uses two y-axes, one on the left side of the chart and one on the right.

Originally I got it to work by using the length of values in the datasource, like this:

axisCrossingValue: [0, datasource.data().length] }

However, this doesn't work when I interpolate the missing values on the chart, as there can be many more categories on the x-axis than there are elements in the data array. I end up getting an axis hanging out somewhere in the middle of the chart.

Does anyone know a way I can get the number of categories on the x-axis WHILE instantiating the chart?
Or would I have to access the number of categories and change the axisCrossingValue after the chart has been built and call refresh()?

Thanks for any ideas!
Erik
Erik
Top achievements
Rank 1
 answered on 23 Aug 2012
0 answers
130 views
Greetings,

We already have CSS formatting for our numeric textbox, how would we otherwise remove the built in / default CSS formatting? When I initally wire up the numeric text box, we see a battle between teh KendoUI css and our very own.

Adam
Top achievements
Rank 1
 asked on 23 Aug 2012
2 answers
785 views
How do I access the (model) values of a selected row using the new 2012 Kendo UI Web? I.e. in the change event of a Kendo grid.

Where do I find more resources on this topic and also on models in the 2012 version? I haven't found the answers in the datasource or grid documentation/demos sections.
Michel Corbin
Top achievements
Rank 1
 answered on 23 Aug 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?