Telerik Forums
Kendo UI for jQuery Forum
2 answers
158 views
Hello,

I'm using the PanelBar and my problem is that when i have UL elements imbricated in others UL elements, the UL children have the PanelBar functionnality activated althought i don't want it so.

Code example (i don't want the UL with the "NOT-EXPANDABLE" class to be used as a PanelBar) :

<ul class="expandable">
    <li>
        Projects
        <ul>
            <li>
                Sales Forecasts
                <ul class="NOT-EXPANDABLE">
                    <li>Q1 Forecast</li>
                    <li>Q2 Forecast</li>
                    <li>Q3 Forecast</li>
                    <li>Q4 Forecast</li>
                </ul>
            </li>
            <li>Sales Reports</li>
        </ul>
    </li>
</ul>


Thanks a lot for your help !
Pauline
Top achievements
Rank 1
 answered on 19 Sep 2013
2 answers
124 views
Maddening... Trying to utilize AJAX reads with a Kendo Grid.  I've done quite a few binding to data passed down from the model.  I copy the code straight from the KendoUI site and tweak to meet my demands:   
@(Html.Kendo().Grid<FaultReport2.Models.usp_CMC_TopIssues_Result>()
    .Name("grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.description).Title("Description");
        columns.Bound(p => p.responsible).Title("Responsibility");
        columns.Bound(p => p.charged_time).Title("Time");
        columns.Bound(p => p.responsible).Title("Responsible");
        columns.Bound(p => p.root_cause).Title("Root Cause");
        columns.Bound(p => p.counter_measure).Title("Countermeasure");
        columns.Bound(p => p.status).Title("Status");
    })
    .Pageable()
    .DataSource(dataSource => dataSource
        .Ajax()
        .PageSize(10)
        .Read(read => read
            .Action("cmcTopIssues", "FaultInfo", new { equipment_id = Model.area_id, start_date = Model.start_date })
        )
    )
)


Controller code for the read.Action():           
public ActionResult cmcTopIssues(int equipment_id, DateTime start_date)
        {
            var db = new Models.FAULTEntities1();            var top_issues = db.usp_CMC_TopIssues(equipment_id, start_date).ToList();            return Json(top_issues, JsonRequestBehavior.AllowGet);
        }

Does not work.  I verify that my cmcTopIssues method is being called and that the top_issues var is being filled.  It just does not populate the grid.When I switch over to local and pass the data down through the model, it works fine.

Any help would be appreciated.
Steve
Top achievements
Rank 1
 answered on 19 Sep 2013
1 answer
654 views
Loading External Page - Telerik
I've been trying to get the Telerik example to work hoping that it would be possible with kendo window control as well with no success.. It would not display anything at all inside my window


Can somebody help?
Dimo
Telerik team
 answered on 19 Sep 2013
2 answers
74 views
If I have a value that is 12.5 and another at 11 the chart displays correctly (it's range is 9.50 to 13.50).  (See Screenshot attached)

If I have a value that is 8 and another at 5.5 the chart displays incorrectly (it's range is 0 to 10). (See Screenshot attached)

How can I get it to never show the range all the way down to 0?

http://i.imgur.com/Arq5arE.png
Mickey
Top achievements
Rank 1
 answered on 19 Sep 2013
2 answers
302 views
If I'm using
<input id="LAYOUTID" />;
$("#LAYOUTID").kendoComboBox();
var comboboxItem = $("#LAYOUTID");
var ds = comboboxItem.data("kendoComboBox");

it is al working fine, i get a valid ds.

Hower if i use a different ID (a valid jquery and html ID), it is not working
<input id="struct:LAYOUTID" />;
$("#struct:LAYOUTID").kendoComboBox();
var comboboxItem = $("#struct:LAYOUTID");
var ds = comboboxItem.data("kendoComboBox");

I get no error, but ds is null and there is no combobox generated. As far as i can see, the problem is the ":" sign.

Is this an error, or are the valid characters different for Kendo. If so, which are valid characters (i would prefer to have some special characters)

Thanks,

Ivor
I. Breukink
Top achievements
Rank 1
 answered on 19 Sep 2013
1 answer
137 views
I have a "view" that is binded to a viewmodel, what i want is reset that viewmodel whenever i click the backbutton and then re-initialize/re-bind it again so the values are cleared.

I followed the documentation for MVVM
http://docs.kendoui.com/getting-started/mobile/mvvm

and i used the data-show attribute to call a function that clears my viewmodel but it doesnt work. 



Petyo
Telerik team
 answered on 19 Sep 2013
0 answers
126 views
Hi

I am using bar and column charts to represent my data. The issue is when the data is large, the number of bars increases and is difficult to view the data. when i view in iphone it  is still worse. i used pan and zoom for the bar chart but it is ok in browsers and not in iphone(Drag is difficult in iphone). the pan and zoom is also not working fine for column charts. can you provide me with a solution?
Hari
Top achievements
Rank 1
 asked on 19 Sep 2013
1 answer
102 views
Hey All,

Sorry if this has been asked before but I just can't work out how to do it.

I have an area graph that is loaded dynamically through ajax (see attached image).

I can set the value axis based on decimal values but what I am really hoping to be able to do is say I want a value lines to be every X pixels rather than setting the interval as a value.

My problem is the data range on the graph can vary greatly so I can't choose a value that will fit.

If this is not possible is it possible to skip every second value line (or even label) so they don't feel so cramped?
Iliana Dyankova
Telerik team
 answered on 19 Sep 2013
1 answer
126 views
I came across a way to extend views inside scheduler widget: http://jsbin.com/ucaB/3/edit

Now when I started exploring this by overriding startDate (just like endDate) the kendo widget threw an error. So I am curious have you exposed the members of the Views so that we know which fields we can override?
Alexander Popov
Telerik team
 answered on 19 Sep 2013
1 answer
316 views
Hi Telerik,

Just a brief heads-up, there is a listView with an endless scroll enabled. The listView is binded with a dataSource which has a custom transport.read function.

Firstly, what is a preferred approach if one would like to clear all data from the list? Calling dataSource.data([]) will remove all items, but will simultaneously completely break the endless scroll. Is there any API call which I possibly missed? (I do not know if dataSource.remove(oneModelItem) is supported in such scenarion, but anyway going through the whole dataset would be at least inefficient)

Secondly, due to the problem above I tried to delete the listview (by calling listview.destroy() and removing it's html content together with a parent nodes/wrappers) and then instantiate it again. I double checked that there is no markup left from the old listview before creating a new one. Because the first datasource had some data in it I created a new one with the same transport.read etc.

It all seemed to work, but I noticed that there are too many requests to the backend. For testing purposes I have subscribed to a requestStart event on datasources as well as added a creation timestamp to them, just to ease their identification. In such a configuration logs show that there are several dataSources requesting data from the backend even though only one (the last one) is binded with a listView.

It seems that even though a listView is destroyed binding between view's scroller and the dataSource survives. This causes problems mentioned above if a new pair of a listView-dataSource is created and binded within the same scroller instance.

It might be that I stumbled upon a bug, but it can be that I missed something as well. Any suggestions will be more than welcome.

Regards,
Przemek

@EDIT: I just realized that simple call to dataSource.read() could do the trick as it refreshes data and requests the first page even if more pages have been loaded, but it does not reset listview/scroller position. Instead, it stays at the same position and jumps after first interaction with a scroller. Sometimes, while doing this it breaks completely the listview component.
Alexander Valchev
Telerik team
 answered on 19 Sep 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
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
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
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?