Telerik Forums
Kendo UI for jQuery Forum
2 answers
312 views
I'm using Kendo UI AutoComplete linked up to a Web Method.  It works great. 
What I am trying to do now is to have a link on the page and when clicked it will populate the autocomplete input value and then refresh the datasource based on that value.  

I can easily populate the autocomplete value with $("#search_input").data("kendoAutoComplete").value(name);  However, the data does not refresh when I do this, it still has the resultset from the previous search. How can an invoke the AutoComplete to behave as if I typed in the new value, so that the datasource result set refreshes based on the new input value?

   $("#search_input").kendoAutoComplete({
            minLength: 1,
            dataSource:
            {
                serverFiltering: true,
                serverPaging: true,
                pageSize: 20,
                transport:
                {
                    read:
                    {
                        url: "Default.aspx/GetSearchAutoComplete",
                        data: function () {
                            return { Param: $("#search_input").data("kendoAutoComplete").value() };
                        },
                        contentType: 'application/json; charset=utf-8',
                        type: 'POST',
                        dataType: 'json'
                    },
                    parameterMap: function (options) {
                        return kendo.stringify(options);
                    }
                },
                schema:
                {
                    data: function (data) {
                        searchData = data.d
                        return data.d;
                    }
                }
            },
            dataTextField: "Name",
            dataValueField: "Id"
            select: function (e) {
                searchSelectedIndex = e.item.index();
                SearchSelect();
            }
        });
Darcy
Top achievements
Rank 1
 answered on 18 Sep 2012
3 answers
320 views
Hello I am tryint to bind create action from Kendo Grid:

@(Html.Kendo().Grid(Model.GlobalProperties).Name("GlobalProperties")
    .Columns(columns =>
    {
        columns.Bound(p => p.Id).Hidden();
        columns.Bound(p => p.Name);
        columns.Bound(p => p.Value);
    })
    .DataSource(dataSource => dataSource.Ajax().Batch(true)
        .Model(model => model.Id(p => p.Id))
        .Create("GlobalProperty_Create", "Admin")
        .Update("GlobalProperty_Editing_Update", "Admin")
        .Destroy("GlobalProperty_Editing_Destroy", "Admin")
    )
    .ToolBar(toolbar =>
    {
        toolbar.Create();
        toolbar.Save();
    })
    .Editable(editable => editable.Mode(GridEditMode.InCell))
)

This is supposed to send Create action to my Admin controller (this works)

public ActionResult GlobalProperty_Create(List<GlobalProperties> models)
       {
           using (var db = new CPSkla.Models.CPSklaEntitiesCalculation())
           {
               foreach (GlobalProperties model in models)
               {
                   db.GlobalProperties.Add(model);
                   db.SaveChanges();
               }
           }
           return View(GetViewResult());
       }

Now if I try to create ne record it will trigger my breakpoint in controller but the list (although it has Count=1 for one new record) has GlobalProperty object but with all values (Id,Name,Value) null.

My firebug shows that I have
models[0][id]  0
models[0][name] test
models[0][value] testssss
as a part of my parametres, how do I serialize that to my List?

Please help I was trying to find it but without success.
Nohinn
Top achievements
Rank 1
 answered on 18 Sep 2012
0 answers
87 views
First off, I realise this is probably a niche area, but I get a script error when filtering against a Guid column. I've an MVC wrapper grid using server side paging & filtering; this all works fine. However, when the results are returned to the client a script error occurs: "TypeError: b._parse is not a function". This appears in the _bind method. It's not critical, the filtering works and the grid displays OK (with SP1) but it's probably worth looking into.

I've uploaded a sample project: https://skydrive.live.com/redir?resid=635C8E2BF4822D7C!1064

This project uses the standard release, which I think does have an issue with the re-binding of the grid, but I'm using SP1 in the main project and apart from the script error, all seems fine.
Dave
Top achievements
Rank 1
 asked on 18 Sep 2012
3 answers
125 views
Hello Sir'

Iwant to show the all user list by using kendo gri but i m very new for kendo ui please help me
Nohinn
Top achievements
Rank 1
 answered on 18 Sep 2012
3 answers
191 views
Dear Kendo Team,
I have a problem in running mvc 4 app which uses kendo in the release mode (debug="false"). I started a sample application, went through the getting started guide. Everything seems to work until I change compilation debug="false" node in web.config.
I attach the sample app. Could you please take a look at the code and tell me what is wrong with it?
Cheers!
Piotrek
Alex Gyoshev
Telerik team
 answered on 18 Sep 2012
2 answers
201 views

I am loading kendo window during runtime using javascript and window configurations like title, height, width, url everything coming from JSON object.
Same like I am trying to pass the maximize, minimize, and refresh buttons visibility configuration from JSON.
Not able to handle buttons configuration the below code.

Please let me know any other choice to handle this?
Sample code:
var jsonDoc = {
  widget: [{name:"W1",
    title: "W1",
    height: 200,
    width: 320,
    url:"http://jsbin.com"
    maximize:true
    refresh:true
    minimize:false }]
    };
for (var i = 0, sl = jsonDoc.widget.length; i < sl; i++)
         {
            var panelname;
            panelname = "#panel" + i;
            $(panelname).kendoWindow(
            {
               title: jsonDoc.widget[i].title,
               height: jsonDoc.widget[i].height,
               width: jsonDoc.widget[i].width,
               actions: [????],
               content: jsonDoc.widget[i].url
             });
           $(panelname).parents('.k-window').css('top', '45%');
           }

Prakash
Top achievements
Rank 1
 answered on 18 Sep 2012
1 answer
108 views
This problem occurs on Android 2.3.5
The following jsfiddle illustrates the problem:
http://jsfiddle.net/RodEsp/E3Edx/ 

I have been using jsfiddle's "Debug on mobile" functionality to test this.

The issue is, when the listview is initialized and the user has scrolled the <input> elements inside the widget glitch when selected. It looks like the focus is going to an element above the one that was tapped.

I ran into something like this before but I believe this is different since this effect does not occur if the listview is not initialized and the app is allowed to run with just a normal <ul>. The css applied to the <li> elements does nothing but it was listed as a solution to a similar problem in the Kendo docs here: http://docs.kendoui.com/documentation/getting-started/mobile/forms 

The only reason I post this is because, as I said before. The issue does not occur when running the app without enabling the listview.

*Note: This same problem is present in the latest internal (2.831) version of Kendo.
Kamen Bundev
Telerik team
 answered on 18 Sep 2012
3 answers
315 views
if I buy the commercial license and spend 12 months, then that happens to my web application????...run or not run ?? ...happens then?
Violeta
Telerik team
 answered on 18 Sep 2012
0 answers
48 views
While loading huge volume of data in telerik razor grid it jumps down and come up. Please any one help me how to fix this issue.
Madan
Top achievements
Rank 1
 asked on 18 Sep 2012
3 answers
164 views
We have built an application for mobile and desktop and in all browsers/version tested, an open KendoMobileModalView closes when the browser is resized. How can we prevent this?

The line of code in kendo.mobile.js that is the culprit is 9951: if (!that._hovered) { that.close();}

Commenting this out resolved the issue but I'm concerned about the side effects of removing this code.
Petyo
Telerik team
 answered on 18 Sep 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
Drawing API
Drawer (Mobile)
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
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
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
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?