Telerik Forums
Kendo UI for jQuery Forum
23 answers
937 views
Hi,

Most of the demos shown on this site are nice and pretty but clearly are happy exampleville projects.  Ie one page one control, everything works fast and nice, no problems ( and no real world challenges)...  My intent with this post is not to slam but to encourage.

We've been using Telerik libs for 3+ years  so this question comes from a lot of history putting together a "real world" web site with poly telerik controls...  There is a big difference between a single page, single control demo and a usable site - there were many integration challenge$ to get to a point where I would call our telerik based project a web site.

I love the Kendoui concepts shown here but fear the same steep path of getting a KendoUI based "portal site" running that we went through on the Telerik AJAX .net side ( to be different sites).

Is there an example project available that approximates a web portal wireframe that has multiple Kendoui controls interacting?

My suggestion for a "real world" portal project would minimally consist of:

A menu top bar with multiple items/sub items where the items were data driven (read: role based)
Each of the menu items opens content below the menu w/o a full page reload
   (any sub items shown from the menu float above the content area below the menu control)
One of the menu content pages should contain a data grid with
  - data originating from a SQL database with a 'large' number of records returned (say at least 10K rows)
    ( datasource is anything other than a static XML file someplace)
  - have the data displayed by the grid be the result of > 1 UI selections from controls above the grid
    (say selections from a calendar and from an auto fill control as 'where' conditions)
  - have the grid scale to fit the available space on the screen below the menu and criteria controls
  - have the rows in the grid scale to fit the available number of rows in the grid (no vert scrolls, pagesize adjusts)
  - resize the page, and have the grid resize to fit along with its data.
  - re-apply a new criteria with the UI controls and then have the grid update with a status indicator
  - have the dates in the returned data displayed in MM/DD/YYYY format
  - have the currency data returned formatted in $12.45 format
 - prevent long returned strings from wrapping to another row
 - have the grid columns sort the contents of the grid while maintaining the size and row count of the grid
 - Allow the data in the grid to be exportable
Have this example render in iOS/mobile and Mac and PC desktop browsers with the appropriate view/controls shown.
Have all of the Kendoui controls take their skin/style from a combo box positioned above the menu control

Each of these seemingly "duh" items were painful development mini project$ in the AJAX.net libraries.

Please let me know how I can help with the creation of  demo above  - I am SURE that the above scenario will not be a one hit wonder request- in fact I'd bet that there are a fair number of users thinking of applications along the same lines but haven't gone through assembling the demos shown on your site into a larger project (like what we did on the Telerik AJAX.net side)

Kind Regards,
AJ



Sebastian
Telerik team
 answered on 10 Feb 2012
2 answers
244 views
I have made a nice grid. Everything was fine until I made it editable.

When clicking in a cell, Firebug showed this error:

model is undefined

In Chrome:

Uncaught TypeError: Cannot call method 'editable' of undefined

After some research, I found the cause of the problem, and its solution. I want to share it here. If someone else faces the same issue, may save a bit of time...

The problem happened because I had a rowTemplate configuration for the grid. When the row is generated by Kendo, it automatically adds a data-id attribute to the table-row (tr) element. To fix the issue, I had to add this to my row template. In my case, the whole row contents are generated by a JavaScript function. I manually added the missing data-id attribute in the tr like this:

function myRowBuilderFunction(data) {
    return '<tr data-id="' + data.my_id_field + '">' + table_cells + '</tr>';
}

Of course, the data-id attribute must have the proper "id" value for that row.

I hope this helps...
João
Top achievements
Rank 1
 answered on 10 Feb 2012
1 answer
116 views
I want to sort a text column alphabetically ascending but with empty values at the end rather than the beginning. Is there a way to specific a custom sort order such as this?

Thanks for your help,
Gary
Rosen
Telerik team
 answered on 10 Feb 2012
3 answers
162 views
I found a bug in IE 7 and 8 (sorry we have to use this versions in Windows XP).
I modified your example to a very basic version. If you try the following code, then you see that the calender popup is NOT closed.
If you add the following line after line 22 (CSS of #container"): "padding: 1px" then it works like expected.

Try this code:
<!doctype html>
<html>
    <head>
        <title>Basic usage</title>
        <link href="../../../source/styles/kendo.common.css" rel="stylesheet"/>
        <link href="../../../source/styles/kendo.default.css" rel="stylesheet"/>
        <script src="../../../source/js/jquery.min.js"></script>
        <script src="../../../source/js/kendo.core.js"></script>
        <script src="../../../source/js/kendo.fx.js"></script>
        <script src="../../../source/js/kendo.popup.js"></script>
        <script src="../../../source/js/kendo.calendar.js"></script>
        <script src="../../../source/js/kendo.datepicker.js"></script>
 
        <style type="text/css">
            body {
            padding: 0;
            margin: 0;
            font: 76% tahoma, verdana, sans-serif;
            color: #303030;
        }
        #container {
            margin: 10px;
        }
        </style>
 
    </head>
    <body>
        <div id="container">
            <input id="datepicker" value="10/10/2011" style="width:150px;" />
        </div>
 
        <script>
            $(document).ready(function() {
                // create DatePicker from input HTML element
                $("#datepicker").kendoDatePicker();
 
            });
        </script>
    </body>
</html>


The bug only exists in IE 7 and 8, not in IE 9 or in Firefox or in Chrome or in Safary.

Thank you for your exciting work - excellent!
Kamen Bundev
Telerik team
 answered on 10 Feb 2012
3 answers
119 views
When using a list in both iOS and Android try scrolling down so the list shows some empty space at the top. Quickly tap that space and the list will het stuck, it won't go back down automatically. Sometimes the list wil disappear completely! I discovered this while using Kendo UI Mobile together with PhoneGap but also noticed the same effect in the browser.
Petyo
Telerik team
 answered on 10 Feb 2012
2 answers
856 views
When placed in a line, there's a noticeable difference in the vertical alignment of the dropdown list and date/time pickers when compared to text-boxes.(please see the attached file)

I suspect this can be fixed by changing the height or padding of the text box which appear to be slightly too bulky.

How can I resolve this?
Vivek
Top achievements
Rank 1
 answered on 10 Feb 2012
0 answers
78 views
On day two of playing around with Kendo.  So far, having a lot of fun, seem's that once I learn all the little tricks it could make development very fast.

Anyway, a query or suggestion.  I am retrieving a slew of <input class="drop-selector> (which exist as a column in a grid[created via a column template]) using $(".drop-selector) and calling kendoDropDownList to turn this into a list. (doing this on the dataBound event of the grid)

Then i'm currently having to iterate through this result(.each) and set the initial drop-down index.  I can't help but think there should be an easier way.

One thing that came to mind was wouldn't it be nice to set an attribute in the initial input node(ie... <input index="2">) and have Kendo automatically set that if the index option wasn't specified in the kendoDropDownList constructor.

Anyway, feel free to correct me if there is an easier way to do what I want!

Justin
Justin
Top achievements
Rank 1
 asked on 09 Feb 2012
2 answers
133 views
Just wondering why you built this site in ASP.NET and not KendoUI?

Thanks
santen
Top achievements
Rank 1
 answered on 09 Feb 2012
9 answers
2.5K+ views
Hi,

I have a Kendo grid where I get the data from the server using jquery's ajax call. On success, the response(JSON data) that is received is stored in a variable and set as the datasource of the grid. Grid works fine. But, in pagination(client side only), when the last page is clicked, it gives error...
Like, suppose i have the fields as, "period", "Doctype", "Status". Then it gives error, "cant find the variable : period". I added the "total" count using GridData.length (GridData is the variable where the json data for the grid from server is stored). It resolved the problem. But now, when i reload the grid, how can i set "total" again? I tried something like this:

 var grid = $("#gridDiv").data("kendoGrid");
 var new_data = getNewData();
 grid.dataSource.add(new_data);
 grid.dataSource.total(new_data.length);
 $("#gridDiv").data("kendoGrid").dataSource.read();
But, this does not work. It again gives the same error on click of the last page. Any suggestions?
Rosen
Telerik team
 answered on 09 Feb 2012
5 answers
356 views
Is it possible to use the grids hierachy feature when using a row template as I have not been able to get it to work.

I have specifed the option detailInit that defines a function handler for building the detail grid and I have tried adding the expand/contract icon to the row template

<script id="template" type="text/x-kendo-tmpl">
    <tr class="k-master-row">
        <td class="k-hierarchy-cell"><a href="#" class="k-icon k-plus"></a></td>
        <td>Some text</td>
    </tr>
</script>

When I click on the expan/contract icon it toggles between open and closed but does not call the function I have specified for creating the detail grid and I get the JavaScript error "data is undefined".

Show this scenario work and if it should any ideas what I am doing wrong?


Rosen
Telerik team
 answered on 09 Feb 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
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?