Telerik Forums
Kendo UI for jQuery Forum
6 answers
203 views
A simple upload .. almost most of the code copied from the example provided by Kendo ..
But wont work.. will error after uploading..

http://codeviewer.org/view/code:37e3

This wont work on a .aspx file not in a html..
What am i doing wrong?
Dimiter Madjarov
Telerik team
 answered on 06 Nov 2013
9 answers
2.2K+ views
So I currently have the following grid that is placing a link on the value of the first table cell...  I would like the entire row to be clickable to that URL... how do I do that?

@(Html.Kendo().Grid<WorkList>()
                            .Name("AllLists")
                            .DataSource(ds => ds.Ajax()
                            .Read("AllListsData", "Workdriver")
                            .PageSize(100))
                            .Columns(c =>
                                {
                                    c.Bound(w => w.ListName).Title("List").ClientTemplate("<a href='" + Url.Action("List") + "/#=ListId#'>#:data.ListName#</a>");
                                    c.Bound(w => w.ListDescription).Title("DESCRIPTION");
                                    c.Bound(w => w.CountOfAccounts).Title("NUMBER OF ACCOUNTS");
                                })
                            .Sortable(s => s.SortMode(GridSortMode.MultipleColumn))
                            .Groupable(g =>
                                {
                                    g.Messages(m =>
                                        {
                                            m.Empty("Drag Column Header Here to Group");
                                        }
                                    );
                                }
                            )
                            .Pageable(p => p.Input(true).Numeric(false))
                            .Filterable()
                        )
Dimiter Madjarov
Telerik team
 answered on 06 Nov 2013
1 answer
81 views
Hello,

The Kendo widgets are very impressive overall, but I’d like to share some critical observations of the grid filterable functionality:
      
  1. When setting a filterable property such as extra: false, all columns are automatically assumed to be filterable. This reverses the default (and preferred behavior) of explicitly applying filterable: true on the column.
  2. The only way to remove unwanted operators is indirectly, via specifying the text for each operator that should be in the list. Furthermore, this has to be done per data type.
  3. The filterable customization functionality and the column filterable IU functionality do not work well together. This is evident in the filter customization demo. The City filter uses a  dropdownlist widget and the default operator is “Starts with”, which makes no sense in this context.
  4. When using a filterable UI with dropdownlist or autocomplete it is invariably the goal that the list of allowed values be the distinct set of values from the results in the column, but the current functionality requires use of an external data source.
The impression I get is additional filtering capabilities have been bolted on without refactoring existing functionality. Perhaps I am wrong, and I am happy to be corrected if I am understanding the functionality incorrectly. Otherwise, perhaps you can consider revising the current filterable behavior in a future release.

Thanks,
Gary
Vladimir Iliev
Telerik team
 answered on 06 Nov 2013
3 answers
561 views
Hi team,

I have some doughts about kendo ui grid .
1.how to bind the kendo ui grid using multiple models ?
2.can i bind the kendo ui grid using controllers?

Dimiter Madjarov
Telerik team
 answered on 06 Nov 2013
2 answers
281 views
Hi
i have defined a custom validator in model field,
this is working fine...

01.schema: {
02.    model: {
03.        id: "EventId",
04.        fields: {
05.            Remarks: {
06.                type: "string",
07.                validation: {
08.                    validateTextLength: function (input) {
09.                        var statusRemarks = input.data("kendoEditor");
10.                        return statusRemarks != null &&
11.                             statusRemarks.value().length < 100;
12.                        }
13.                }
14.            },

is it possible to trigger this validation in a javascript function

thanks Yaniv
Kiril Nikolov
Telerik team
 answered on 06 Nov 2013
1 answer
77 views
I am trying to put together a view that should be reloaded (all data refreshed from the server) each time it is visited. Each time the page is loaded I intend for a datasource to be created and set on the page's view model. Now, what I have (an example is attached) works on the first view. Subsequent views always throw this exception:
Uncaught TypeError: Cannot call method 'closest' of undefined
from the kendo.mobile.min.js file.

I have tried the approach outlined here: http://www.kendoui.com/forums/kendo-ui-mobile/general-discussions/destroy-totally-remove-a-view-if-possible.aspx to completely destroy and remove the view from the DOM but I get the same error. So there must be some problem with the datasource. In the example I have attached the data source's data is from an array. My real intention is to use a datasource to fetch data from a remote endpoint (the URL of which will change each time the view is visited).

Please take a look at my example and tell me what is wrong or suggest an alternative way to get the behavior I'm looking for.

Thanks
Petyo
Telerik team
 answered on 06 Nov 2013
2 answers
194 views
Hi,

i'm new using kendo ui ... and i try to use tabstrip (loading content using ajax).

Here's my example:
<body>
    <div id="kub-tabstrip">
        <ul>
            <li class="k-state-active">Willkommen</li>
        </ul>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#kub-tabstrip").kendoTabStrip({
                contentUrls: [
                    '/Home/WelcomeDisplay'
                ]
            });
        });   
    </script>
     
    <a href="#" onclick="addTab()">neuer Tab</a>
</body>
Really easy ... and works.

I try to add a tab using javascript like this ...

01.<a href="#" onclick="addTab()">neuer Tab</a>
02.<script type="text/javascript">
03.        function addTab() {
04.            var tabStrip = $("#kub-tabstrip").kendoTabStrip().data("kendoTabStrip");
05.            tabStrip.append({
06.                text: "neuer Tab",
07.                contentUrl: "/Seminar/Index"
08.            });
09.            var index = tabStrip.tabGroup.children("li").length;
10.            tabStrip.select(index - 1);
11.        }
12.    </script>
This also seems to work. The new tab will be created and content is loaded.
My Problem occurs when i click on first tab. Then on my page the content of fist tab and second tab is rendered in first tab.
(looked like shown in screenshots).

I try this on IE and Chrome with sameresult.

Head of my html-demo-file ...

01.<!DOCTYPE html>
02.<html lang="de-DE">
03.<head>
04.    <title></title>
05.    <link href="Content/kendo/2012.3.1315/kendo.common.min.css" rel="stylesheet" type="text/css" />
06.    <link href="Content/kendo/2012.3.1315/kendo.silver.min.css" rel="stylesheet" type="text/css" />
07.    <script src="Scripts/kendo/2012.3.1315/jquery.min.js" type="text/javascript"></script>
08.    <script src="Scripts/kendo/2012.3.1315/kendo.web.min.js" type="text/javascript"></script>
09.    <script src="Scripts/kendo/2012.3.1315/cultures/kendo.culture.de-DE.min.js" type="text/javascript"></script>
10.</head>
Where is my error ?
What i'm doing wrong ?

Regards.

Jürgen Meyer




Juergen
Top achievements
Rank 1
 answered on 06 Nov 2013
2 answers
165 views
I am currently implementing a StockChart in razor.

I was able to get the chart binding nicely to a single series, but I am having trouble working out how to bind the chart to a dynamic number of series.

For example,  consider a series which is a list of objects (foo) having a date and decimal property. 

If I have x number of series, so something like List<List<foo>>data. How do I bind this to the chart?
Aaron
Top achievements
Rank 2
 answered on 05 Nov 2013
7 answers
741 views
I have a plain ASP.NET/HTML solution (no MVC or wrappers), and I use PageMethods that are called by the read, create, update, destroy (from dataSource).
Like this (only create shown, the others are same except the webmethod):
                var dataSource = new kendo.data.DataSource({
                    batch: true,
                    transport: {
                        read: {
                            type: "POST",
                            url: "default.aspx/GetUserInfos",
                            contentType: "application/json; charset=utf-8",
                            dataType: "json"
                        },
                      .... .... ....

And it seem to work most of the time, but if I open the grid (which gets values from server), add a row, save changes (causes update on server), delete the new row and saves changes again, no server call is made. Its like I need to tell the grid that now the new row is permanent.

I also get a crach in some dynamic javascript method if I add a row, save change and then press Cancel toolbar button (at this stage cancel should not do anything, since everything is recently saved to server).

By the way, I had to modify parameterMap like this to get the arguments to be unpacked correctly by ASP.NET
 
parameterMap: function (data, type) {
     if (type == "read")
         return { users: kendo.stringify(data.models) };
     else
         return "{ users:" + kendo.stringify(data.models) + "}"; // sent as argument to ASP.NET, needs to be a string of JSON
 }

Magnus
Top achievements
Rank 1
 answered on 05 Nov 2013
2 answers
279 views
Hey there.

I've got a basic TreeView working. I'm using remote json data for the initial TreeView. What I need to do, is have the children added to the tree when the user clicks on the parent node. I'll need to make another call to the server for this next set of data since the node clicked contains a property I need in order to construct data property  required for the next rest call.

Do you have any example of how this is done using binding to remote data?

Thanks!
Keith
Top achievements
Rank 2
Iron
Veteran
 answered on 05 Nov 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
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?