Telerik Forums
Kendo UI for jQuery Forum
8 answers
98 views
We're binding to a sitemap file as shown below: 

<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
  <siteMapNode title="Home" controller="Home" action="index">
    <siteMapNode title="Dashboard"  controller="MyController" action="index" />
    <siteMapNode title="My Future" controller="MyController" action="Input" />
    <siteMapNode title="My Retirement" controller="MyController" action="Input" />
    <siteMapNode title="System">
      <siteMapNode title="Profile" controller="MyController" action="Profile" />
      <siteMapNode title="Income and Expenses" controller="MyController" action="IncomeAndExpenses" />
      <siteMapNode title="Assets and Liabilities" controller="MyController" action="AssetsAndLiabilities" />
      <siteMapNode title="Insurance" controller="MyController" action="Insurance" />
      <siteMapNode title="Bootstrap">
        <siteMapNode title="Typography" controller="system" action="Typography" />
      </siteMapNode>
    </siteMapNode>
  </siteMapNode>
</siteMap>


The base controller executes this code in the constructor: 
if (!SiteMapManager.SiteMaps.ContainsKey("main"))
{
    SiteMapManager.SiteMaps.Register<XmlSiteMap>("main", sitemenu => sitemenu.LoadFrom("~/Utilities/Sitemaps/Main.sitemap"));
}

It's binding correctly using some of the examples shown on these forums. However, the nodes in Bold above don't expand. So clicking on System does nothing. Using Firebug I can see the sub-items are there rendered as a UL so I go into Firebug and remove the display:none attribute. 

The first screenshot "How it should look.png" shows what it should look like expanded. 
Note: I had to use Firebug to get it to display. Clicking on System does nothing... doesn't even throw any errors. 

Note 2: When this panelbar is used on a page that is not included in the Sitemap or rendered out as part of the HTML hierarchy then the items expand, but on pages that do exist in the Sitemap, it doesn't work at all. 

Any ideas or do you need more information? 










Alex Gyoshev
Telerik team
 answered on 23 Jul 2014
1 answer
106 views
Hi,

I'm creating a mobile app and I've got a button in my navigation bar which I have disabled:

<div data-role="navbar">
        <a class="cublink" data-role="button" data-align="middle" data-transition="slide:left" href="#divSelect" disabled="disabled">Continue</a>
        <a class="cublink" data-role="button" data-align="right" data-transition="slide:left" href="#divHelp">Help</a>
</div>

As you can see, I have added the disabled attribute above to the "Continue" button.  The button looks disabled when running, and a single click on it does not take me to the designated page, which is good.  However, if I swipe the button, it does fire it.  Is there some code which ignores the disabled attribute when swiped and not clicked?
Kiril Nikolov
Telerik team
 answered on 23 Jul 2014
4 answers
231 views
Hi, i've been trying to get user grid preference saving following this link:

http://jsbin.com/anisip/31/edit

It's been very helpful so far with saving the data to my database.

However, i'm trying to load the saved data now but i cant seem to get it working.


In my database, i've saved the "state" of the object which looks similar to this:
"{"group":[{"field":"Supplier","dir":"asc","aggregates":[]}]}"

When i load my page i try to load the user grid preference from the database (due to filtering needed as soon as the window loads, i have this method in the window.load() function).

                var grid = $("#Grid").data("kendoGrid");

                // Load grid preferences.
                $.post("Home/LoadGridPreference", { forScreen: "" }, function (data) {
                    var state = JSON.parse(data);
                    if (state) {
                        grid.dataSource.query(state);
                    } else {
                        grid.dataSource.read();
                    }
                });

I have checked that the data i get in "state" is indeed the same as before i stringified the grid information.

However when it gets to the stage grid.dataSource.query(state), nothing seems to happen , i cant see any ordering that i have saved in the database.

Also, to test out whether its the "state" value not being set correctly, i have tried to manually override this by using the exact values from when the "state" value was set. i.e. i have tried this grid.dataSource.query("{"group":[{"field":"Supplier","dir":"asc","aggregates":[]}]}")

Yet this does not work either. 

I can see that it's trying to do something as this seems to make the row counter (located on the bottom right of the screen) to say NaN - NaN of 3 items.


The example on JSBin works perfectly using cookies, but why isn't this working when i implement this on my project and save the grid preferences into the database?


Thanks
Rosen
Telerik team
 answered on 23 Jul 2014
8 answers
579 views
Hi,

I am using DateTimePicker control on a column filter on Kendo Grid. The column type is also DateTime.

The scrollbar for the Time Picker works perfect at the start. But as soon as the Grid data is changed (e.g; some column is sorted), the scrolling goes away. The time values from 00 to 24 are diplayed without any scrolling and destroys the outlook of the whole page.

I was looking for some DateTimePicker options to set its css, but apparently it is not possible.

Best Regards
Zaheer
Kiril Nikolov
Telerik team
 answered on 23 Jul 2014
2 answers
153 views
Is it possible to use a grouped Datasource in the DropDownList? I just want to use the groups for something like optgroups in html selects.

Thanks in advance.

Georgi Krustev
Telerik team
 answered on 23 Jul 2014
5 answers
139 views
Hello,

Currently when a Task is moved update Event fires and the new datetime is saved. incase of recurring Event we get messagebox to edit series or particular day. My requirement is to Show the add/edit popup window when a Task is moved. So in Scheduler_movestart may be if we can bring up the edit window and then user can Change other values as well and not just start/end date and time.

Thanks

Anamika
Vladimir Iliev
Telerik team
 answered on 23 Jul 2014
1 answer
62 views
Hi

My client has an requirement to show the instructional text 'Drag a column header and drop it here to group by that column' to appear always even though we do already have a grouping done.

Currently the text appears only when no grouping is done and disappears as soon as we do a group by any one of the column but my requirement is to make this text appear all the time.

Please try on this fiddle where there is default grouping on one of the column.

http://jsfiddle.net/Mans/j7cvN/3/

I have tried doing it in Databound event but was not lucky since it is disappearing.

Thanks in advance
Dimiter Madjarov
Telerik team
 answered on 23 Jul 2014
4 answers
193 views
Hi,

I am using Kendo Mobile v2014.1.528. We have a gallery page with a scrollView. Once the user clicks on an image he's taken to a new page with just that image. The problem is that when the user goes back the scrollView can now be dragged vertically?! I have come a cross an older thread of similar bug, but it was resolved two years ago.

How can I fix this?
Cool Apps
Top achievements
Rank 2
 answered on 23 Jul 2014
1 answer
105 views
Is there any option to know, what caused dataSource change event?
In documentation writes:
"Fired when the data source is populated from a JavaScript array or a remote service, a data item is inserted, updated or removed, the data items are paged, sorted, filtered or grouped."

I need to know, when change event was caused by grouping, sorting, ...
Kiril Nikolov
Telerik team
 answered on 23 Jul 2014
1 answer
66 views
Dear Support,
I am using "telerik.kendoui.professional.2014.1.528.trial" file set to test the new version for our existing application to be upgraded. I am facing a problem when I am going for batch editing. Kendo grid can not persist its dirty state when the cell focus is changed.

I am attaching the test environment. Please use "http://localhost:port no/Home/VersionTest" to get the corresponding page.

Vladimir Iliev
Telerik team
 answered on 23 Jul 2014
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
Drag and Drop
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?