Telerik Forums
Kendo UI for jQuery Forum
1 answer
209 views

Hi,

I have an MVC grid view and I'm setting the current sort value of the grid programatically (similar to http://stackoverflow.com/questions/13863111/kendoui-programmatically-setting-grid-sort). I don't wish to actually sort the grid at the time I set the sort so I'm doing something like this 

var grid = $("#ServiceAuth").data('kendoGrid');
grid.dataSource.options.sort = [{ field: "AuthType", dir: "asc" }];

and then when I do actually want to sort the grid:

grid.dataSource.sort(grid.dataSource.options.sort);

Data-wise this sorts the grid correctly, however the new sort isn't reflected on the indicators at the top of the grid. Is there a way to do this so the grid reflects the data sources sort property?

Thanks in advance for your help

 

 

 

 

Daniel
Telerik team
 answered on 26 Aug 2016
1 answer
175 views

hi, 

I'm trying to sort the data in my bar chart and there is a problem with the chart result. The result inside the chart after sorting is not tally with the original data. 

Here is my code in fiddle http://fiddle.jshell.net/seqyee/eku39yj8/

Iliana Dyankova
Telerik team
 answered on 26 Aug 2016
2 answers
228 views
If the user has navigated to a specific route (say .....#/myRoute), how can I get the route without parsing the url?
AppsWiz
Top achievements
Rank 1
 answered on 26 Aug 2016
5 answers
216 views

Hi,

I make a simple dialog with the k-i-tick  Icon as OK replacement:

Dojo: Simple Dialog

All work fine, only the tick icon is black. But in Nova theme the icons are white.

It is possible to show the tick icon also in white?

Peter

 

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 25 Aug 2016
1 answer
302 views

I am trying to implement multilevel lazy loading treeview. We are not sure of how many levels of nodes will be there in the treeview.

1. ) How can i implement multiple levels of nodes ?  i have X number of items and it is not possible for me to provide  children always. 

2. )  while creating my treeview data model i have an attribute "RANK" in the model. How do i get value of RANK for expanded node so that i can pass it as input while calling service to load child node? 

For URL i need to add RANK as parameter. When i used   url: function (options) { })  i am only getting ID value in options but not the RANK. 

Below is the code i implemented for two levels.

Please help. If possible please provide an example.

Thanks in advance.

    <div id="trVwScanOrg" ></div>

    $(document).ready(function () {
        TreeviewDataBind();
 });


    function TreeviewDataBind() {
var SecondLevel= {
            transport: {
                read: {
                    url: function (options) {


                return kendo.format(MVC URL + parameters in querystring);

                    },
                    type: "get",
                    dataType: "json"
                }
            },
            schema: {
                model: {
                    id: "ID",
                    hasChildren: "HasChildren",
                    children: NextLevelItems,
                    Name: "Name"
                }
            }
        };

        var FirstLevel= new kendo.data.HierarchicalDataSource({

            transport: {
                read: {
                    url: MVC URL + parameters in querystring
                    type: "get",
                    dataType: "json"
                }
            },
            schema: {
                model: {
                    hasChildren: "HasChildren",
                    id: "ID",
                    children: SecondLevel,
                    Name: "Name"
                }
            }
        });

        var trVwScanOrg = $("#trVwScanOrg").kendoTreeView({
            dataSource: FirstLevel,
            dataTextField: ["Name"]

        });
    }

Boyan Dimitrov
Telerik team
 answered on 25 Aug 2016
4 answers
310 views
I noticed that datasource sync() method always executes synchronization operations in the following order: Create, Update, Destroy.
It may cause a problem in some cases. Consider a situation, when we have some list of items with requirement that every item must be unique in the list and datasource have autoSync: false. The list contains item A already. We delete item A, then create the same item A and trying to sync() datasource. At one point the list will contain two A items, because kendo always executes Create before Destroy and I cannot find the way how to change this order from my code.
Salim
Top achievements
Rank 1
 answered on 25 Aug 2016
3 answers
512 views

Background:

I have a responsive website where a kendo menu and responsive panel are used to create a responsive menu.  All links visible when on a large screen, but it collapses to an expandable menu when on smaller devices).

Examples:

http://demos.telerik.com/kendo-ui/responsive-panel/index

http://docs.telerik.com/kendo-ui/api/javascript/ui/responsivepanel

 

Issue:

This works beautify on every single device/browser with the exception of safari (testing on an ipad).  When hitting the menu button, the menu will appear for a split second then close right away.

 

I found that it works fine in safari ONLY for pages WITHOUT images (yes, you read that right - i remove all <img> tags and it works fine).  I searched ever CSS file, inspected the elements in chrome, and i don't see any unusual styles being applied to images.  What could possibly be clashing in safari to cause this??  Any insight is appreciated!

 

 

This code was plucked from a previous developer online (i remember seeing it but can't find the link again):

01.<button id="mobilemenu" class="k-rpanel-toggle k-button btn-toggle">
02.    <span class="k-icon k-i-hbars"></span>
03.   </button>
04.    
05.  <div id="responsive-panel">
06. 
07.        <ul id="menu" class="">
08.            <li>Home</li>
09.            <li>Link2</li>
10.            <li>Link3</li>
11.            <li>Link4</li>
12.            <li>Link5</li>
13.            <li>Link6</li>
14.        </ul>
15.    </div>
16.   
17.  <script>
18.    $(function(){
19.      $("#menu").kendoMenu({
20.        select: onMeunSelect
21.      });
22. 
23.     
24.      $("#responsive-panel").kendoResponsivePanel({
25.          breakpoint: 992,
26.          autoClose: false,
27.          orientation: "top"
28.      });
29.    });
30.  </script>

David
Top achievements
Rank 1
 answered on 25 Aug 2016
3 answers
229 views

Hi,

I have an image with a click event in my ListView template - on the actual list item.

But by the time the click event fires, any multiple selection is lost.

No amount of preventDefault seems to fix this.

Perhaps I can code something complex to remember the selected items, but is there any way this would work without it?

 

<script id="group-available-template" type="text/x-kendo-template">
<div class="group available k-widget">
<div class="name">#:name#</div>
<div class="group-action arrow-left" id="add-assigned" data-bind="click: actions.addGroup">
<img src="../images/admin/arrowleft-16.png" />
</div>
</div>
</script>

Alexander Popov
Telerik team
 answered on 25 Aug 2016
10 answers
240 views
Hello again :)

I have a scrollview working properly in my app.

When doing beta testing, my beta testers told me they don't understand that the element is "swipable" and that they can interact with it. They just think it is a static block and do not event try to swipe it.

To solve that matter, I would like to display a bit of the previous and following elements on the right and the left of the page so that they can see there are other elements on the side and they just have to swipe left or right to access it.

Is it doable with Kendo UI Or Can I simply find a work around with css ? Otherwise, what do you advise ? did you already faced this situation ?

Many Thanks
Kiril Nikolov
Telerik team
 answered on 25 Aug 2016
7 answers
1.1K+ views
His this possible?

My doubt is very simple. I would like that when the form is submit (on button click), if there is validation errors, every field in error should be marked with and asterisk (*) and a summary of messages should be displayed on some placeholder on the view. Is this possible out of the box or will it have to be implemented in some way?

This would be done using UI for ASP.NET MVC wrappers and data annotations on the models.

Thanks!
Rosen
Telerik team
 answered on 25 Aug 2016
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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?