Telerik Forums
Kendo UI for jQuery Forum
3 answers
109 views
Hi
Greetings!!!!
We have one security concern and that is how to protect client from viewing the code. Secondly we want to implement licencing policy in the finished product, so please let us know how to do the same.
Thanks in advance.

Regards
Manash Dutta
Atanas Korchev
Telerik team
 answered on 13 Jan 2012
1 answer
194 views
Hello all,

 I have an existing Asp.Net MVC app that I would like to start using Kendo in. I am new to this type of development so please forgive my newbieness here. I am guessing that I should copy all of the Kendo js script files to the "Script" folder in the project, then put the themes and their folders under the "Content\Themes\" folder?

Any advice on how to structure this would be greatly appreciated.
Thank you in advance

MacK
Dimo
Telerik team
 answered on 13 Jan 2012
3 answers
365 views
Hello,

I am following Hierarchy example to build the parent-child grid.                  

I have this in the view
function detailInit(e) {
    $("<div/>").kendoGrid({
        dataSource: {
            transport: {
                read:  {
                    url: "../OrderDetailJson/",
                    dataType: "json"
                },
            },
            filter: { field: "orderid", operator: "eq", value: e.data.Id }
        },
     ....
}
 
and this in controller
public JsonResult OrderDetailJson(int orderid){
...
}

but client side code will never hit this code saying orderid is null hence route doesn't match.  Why is filter: { field: "orderid", operator: "eq", value: e.data.Id }  doesn't work???  I thought it will work like jquery .post/json call but it doesn't.

Will someone help me?

thanks guys
william
Rosen
Telerik team
 answered on 13 Jan 2012
0 answers
153 views

I am using the kendo ui autocomplete on one of my pages. I am having so issues retrieving the value entered in the autocomplete input box. Below is a sample of the code I use to get autocomplete suggestions with a WebMethod via Ajax:

<P>$(".input_project").kendoAutoComplete({<BR>                   
minLength:
1,<BR>                   
dataTextField:
"value",<BR>                   
dataSource:
{<BR>                       
serverFiltering:
true,<BR>                       
serverPaging:
true,<BR>                       
schema:
{<BR>                           
data:
"d"<BR>                       
},<BR>                       
transport:
{<BR>                           
read:
{<BR>                               
url:
"<remote url>",<BR>                               
data: function ()
{<BR>                                   
return
{<BR>                                       
valuetocompare:
$(".input_project").val()<BR>                                   
};<BR>                               
},<BR>                               
contentType: 'application/json;
charset=utf-8',<BR>                               
type:
'POST',<BR>                               
dataType:
'json'<BR>                           
},<BR>                           
parameterMap: function (options)
{<BR>                               
return
kendo.stringify(options);<BR>                           
}</P>
<P>                       
}<BR>                   
},<BR>                   
change: function ()
{<BR>                       
var value =
this.value();                       
<BR>                       
$('#selectedProject').val(value);<BR>                   
}<BR>               
});<BR></P>

The problem in this case lies in the fact that I have multiple input fields with the same css class to identify my autocomplete fields. The idea is that all these input fields would be having an autocomplete on them. To get an idea of what I am building: I have a table with which contains both spans and div with dynamic id values. To simulate inline editing a toggle visibility on these div and spans.

Normally if you would like to retrieve data from the autocomplete, you would do something like below, but in my case this would not work since there are more input elements that carry the same css class. I know this is not the way to use autocomplete, since normally every input would have it's own identifier. Is there any way I can make this work. Right now I am using hidden fields to store the value entered but I think there should be a more efficient way to accomplish this behaviour.

<BR>data: function ()
{<BR>                                   
return
{<BR>                                       
valuetocompare:
$('#input_project').val()<BR>                                   
};<BR>                               
},
Willem
Top achievements
Rank 1
 asked on 13 Jan 2012
4 answers
485 views
I'm using Jasmine for BDD style testing.  I'm testing that selecting a row in a kendoGrid will call my callback function.  To test this I'm creating an element on the fly using
element = $('<div></div>'); 

when I attach a kendo grid to a div under that dynamically created div, it mostly seems to work except for selection.  I can populate the grid with data and see the correctly generated html in the debugger.  However, if I do :
 var firstRow = kendoGrid.tbody.find(">tr:first");
kendoGrid.select(firstRow);

Then my workspaceGrid.Select callback is not called, and the grid.select() returns no elements.
Is there a better way to host the grid when I'm doing unit testing?
I find the syntax for selecting a particular row very awkward. I would be much easier to do
kendoGrid.select(0) to get the first row.


Nikolay Rusev
Telerik team
 answered on 13 Jan 2012
3 answers
174 views
I've spent the last day trying to create a splitter like this image: http://imageshack.us/photo/my-images/683/mockupm.jpg/

What I end up with is:
  • top vertical row shrinks and shows scrollbars
  • does not resize on window change
  • scroll bars showing vertically in horizontal rows despite having little content

I've followed this post: http://www.kendoui.com/forums/ui/splitter/100-window-height-splitter.aspx with no luck.
I've also copied everything Dimo posted and it doesn't work correctly - similar problem to what I've described above. Not sure if it is an IE9 thing...

Dimo
Telerik team
 answered on 13 Jan 2012
2 answers
89 views
I have the demo kendo auto complete working in a stand-along aspx page and html page.  

When I try code the same demo in a project using asp Site.Master page, then placing the code in 

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"></asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"></asp:Content> 

it does not work.  The page reacts, but the results are not displayed.  

I has was able to duplicate this behavior when pacing the working kendo auto-complete demo  inside a telerik:raddock

<telerik:RadDock ID="RadDock1" runat="server" Title="Test1" Width="250px" >
                            <ContentTemplate>
                                <!--#include file="test1.htm"-->
                            </ContentTemplate>
 </telerik:RadDock>

Is there some issue getting Kendo to work inside ASP Content Holders or is there something else I'm likely missing?  I did try loading the CSS and JS files in the Master, as well as then trying in the Content Header.
Paulie
Top achievements
Rank 1
 answered on 12 Jan 2012
4 answers
268 views
The panes and split bars within the overall splitter bar container all have absolute positioning set, which puts them outside the document flow. However, the container height is not set by the splitter bar, so markup after the container is positioned within the container area rather than below it.

I think it would be a good idea to manage the size of the splitter bar container in conjunction with calculating the pane and split bar positions.

Or, is there already a solution to this that I missed?

Regards,
Gary


Gary
Top achievements
Rank 1
 answered on 12 Jan 2012
2 answers
139 views
I'm having issues with a Datasouce when using a JSON service/data. I constantly get an error telling me that any of my fields are undefined. According to Fiddler, result is returned as JSON and is correctly formatted. This the same issue I'm having here: http://www.kendoui.com/forums/ui/autocomplete/weird-problem-with-autocomplete.aspx

As per the above post, the solution works fine in jsFiddle but NOT in the real world.

I'm creating my grid like this:
$("#gridTitles").kendoGrid({
            dataSource: {
                type: "json",
                transport: {
                    read: "../services/getTitles",
                    parameterMap: function (options) {
                        return $.extend(options, {
                            collection: collection
                        });
                    }
                },
                schema: {
                    model: {
                        fields: {
                            Title: { type: "string" },
                            OFLC: { type: "string" }
                        }
                    }
                },
                pageSize: 10,
                serverPaging: true,
                serverSorting: true
            },
            height: 250,
            sortable: true,
            pageable: true,
            columns: [{ field: "Title", title: "Title" }, { field: "OFLC", title: "Rating"}]
 
        });

Here is the data returned:
[{"Title":"Doctor Who and the Daleks","OFLC":"PG"},{"Title":"Doctor Who: Attack of the Cybermen","OFLC":"M"},{"Title":"Doctor Who: Battlefield","OFLC":"PG"},{"Title":"Doctor Who: Beneath the Surface - The Silurian Collection","OFLC":"PG"},{"Title":"Doctor Who: Black Orchid","OFLC":"PG"}]

I'm just guessing it is because the data isn't layed out like this:
{["SOME KEY": [{"Title": "something here...", "oflc":"something here..."}]
}

I could be wrong, but looking around these forums, everone who seems to have the 'undefined' issue on fields seem to have their JSON similar to how mine is returned. I have another datasource with data in the directly above format returned from a service that works...

Does the data returned need to be parsed or stringified before use? I'm using MS's JSON formattes which encode data and return as a string. This is being written directly to the response stream. Strange as Fiddler can understand it just fine.
Gabriel
Top achievements
Rank 1
 answered on 12 Jan 2012
4 answers
394 views
Can somebody provide me with sample to work with Kendo grid and Web Sql Database
Rich
Top achievements
Rank 1
 answered on 12 Jan 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawer (Mobile)
Drawing API
Globalization
Gauges
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
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?