Telerik Forums
Kendo UI for jQuery Forum
10 answers
655 views
I am struggling getting the following to work:

<div>

    <input id="searchSomething" />

</div>

<script type='text/javascript'>

    $(document).ready(function () {

        $("#searchSomething").kendoAutoComplete({

            minLength: 3,

            dataTextField: "Name",

            dataValueField: "Id",

            dataSource: {

                transport: {

                    read: "Service/Search",

                    dialect: function (data) {

                        return { wildcard: $("#searchSomething").val() };

                    }

                }

            }

        });

    });

</script>


 Action method:

  public class ServiceController : Controller

    {

        public ActionResult Search(string wildcard)

        {

            return Something;

        }

    }


My problems are:

1. wildcard is always null.

NOTE 1.1: By the way, the action method 'Search' is correctly called (of course after typing 3 characters)!
NOTE 1.2: If I directly call the action method from the browser the wildcard is correctly filled.
 
2. what should the ActionResult return?

In other words I am looking for a working example.

Thanks for any help!
Atanas Korchev
Telerik team
 answered on 05 Mar 2014
4 answers
139 views
I have an issue where my list view:

1) Does not display the appropriate number of items set for the page size.  It displays 1/2 of the set items.
2) The loading twirly displays 100% of the time.
3) When attempting to scroll the list view, sometimes the list view gets stuck further down the view that what it should.

Are there any known issues that would be causing these problems with 2013.3.1119?

I'm not doing anything special.  Here's the code:

@(Html.Kendo().MobileListView<VINspinAppsMobile.Web.Areas.CRM.Models.Leads.SelectLeadListViewModel>()
    .Name("SelectLeadListView")
    .TemplateId("SelectLeadListViewTemplate")
    .EndlessScroll(true)
    .ScrollTreshold(30)
    .Filterable(filter => filter.Field("DisplayName").Operator("startswith"))
    .DataSource(dataSource => dataSource
        .Read(read => read.Url(Url.GetUrlRoot() + "/CRM/Leads").Data("additionalData"))
        .PageSize(10)))

<script type="text/x-kendo-tmpl" id="SelectLeadListViewTemplate">
    <a href="@Url.GetUrlRoot()/CRM/Leads/EditLead?leadId=#=LeadId#">#:DisplayName#</a>
</script>
 
<script>
    function additionalData() {
        return {
            allOwners: true,
            ownerId: null,
            leadStatusId: null
        };
    }
</script>

Kiril Nikolov
Telerik team
 answered on 05 Mar 2014
1 answer
255 views
I have the following RAZOR code:

            @(Html.Kendo().DropDownListFor(m => m.AssociatedWithType)
            
                .Events(x => x.Select("AssociatedWithSelected"))
                .Value(ViewBag.AssociatedWithTypesId)                
                .BindTo(ViewBag.AssociatedWithTypesSelectList)
            )

            @(Html.Kendo().DropDownListFor(m => m.AssociatedWithId)
                .BindTo(ViewBag.AssociatedWithIdsSelectList)
            )

and the following jQuery:

        AssociatedWithSelected: function(e) {
            var dataItem = this.dataItem(e.item.index());

            var associatedWithIdsDropDown = $("#todoAddEditDialogForm #AssociatedWithId").data("kendoDropDownList");
            var url = settings.getAssociatedWithIdsUrl + "?associatedWithType=" + dataItem.Text;
            associatedWithIdsDropDown.dataSource.read({
                url: url
            });
        }


What I would like to do is initially bind the 2nd dropdownlist to the SelectList in my ViewBag, then bind it from the server if the first dropdown changes value.

The initial BindTo is working fine, but the jQuery .dataSource.read isn't doing anything.  I suspect I need to attach a dataSource to the dropdown in the jQuery somehow, but I'm not sure how.

How do I accomplish this?
Daniel
Telerik team
 answered on 05 Mar 2014
1 answer
176 views
Hello,

I want a control like attached image in HTML column. On click of image I am calling JavaScript to open some window that returns text as output.  I want to set the output to txt_Lookup as shown in code. 

Through below code I am able to find template. I need control object not template object.
 
var entityGrid =$("#grid").data("kendoGrid");
 
var template=  entityGrid.columns[4].template;

 I have added below template in Columns.

{

template: '<input type="text"
id="txt_Lookup" width="15"/>  <input
type="hidden" id="hdn_Guid"/>  <input
name="submit" id="submitme" type="image" 
onclick="OpenLookup();" />',
              
sortable: false
             }

I am fetching records from database. How selected records will be set in txt_Lookup while fetching?  As it is template I am not sure how can we set the value for template?

Would somebody provide some guidance on this?

Thanks!
Alexander Popov
Telerik team
 answered on 05 Mar 2014
1 answer
60 views
Hi All,

I back -end developer and now i need build my first own web site like front-end developer , i newbie in HTML/HTML5, CSS/CSS3.
How to make or chose Layouts to begin to build the first own web site, can you recommend something ?
I decide multiple pages, the question is , for beginning, can i see some ERP application like as sample ?

Thanx ,
Regards, Evgeniy.
Dimo
Telerik team
 answered on 05 Mar 2014
2 answers
168 views
Hi,

How can I set the localized text for the body of the delete confirm dialog? Now it shows "Are you sure you want to delete this event?" It seems to be hardcoded in the kendo.scheduler.js DELETECONFIRM = "Are you sure you want to delete this event?"

Kind Regards,

Marco
Marco
Top achievements
Rank 1
Iron
 answered on 05 Mar 2014
1 answer
4.8K+ views
It seems like on the page

http://docs.telerik.com/kendo-ui/api/web/window

the help section for the property width and height fails to tell how to setup a window to automatically resize to fit the contents.

How can that be done?
Dimo
Telerik team
 answered on 05 Mar 2014
1 answer
71 views
Using an inline editor in IE9, reproduce using the following steps:

1. Enter text into an empty inline editor
2. Bold the text
3. Move the focus to another input element by clicking into that element
4. Observe that the bold formatting disappears visually, though the Editor control indicates bold formatting is applied
5. If you have set up a means of saving the content, e.g. to localStorage, note that on page reload, the content displays with bold formatting

Further note that this behavior is intermittent. Sometimes we have observed that the bold formatting is never applied. Other times, the formatting works just fine, though changing focus generally causes the bold formatting to disappear.
Alex Gyoshev
Telerik team
 answered on 05 Mar 2014
1 answer
210 views
function ShowDiagnostics() {
    diagnosticDataSource = new kendo.data.DataSource({
        transport: {
            read: {
                url: "/DiagnosticBuilder/GetDiagnosticJSON",
                dataType: "json",
            }
        },
        pageSize: 10
    });
    var columns = [
        { title: "DiagnosticBuilderID", field: "DiagnosticBuilderID", hidden: true, type: "number", filterable: false },
        { title: "Template Name", field: "TemplateName", hidden: false, type: "string", filterable: false },
        { title: "Target", field: "Target", hidden: false, type: "string", filterable: false },
        { title: "No. of Questions", field: "NumberOfQuestions", hidden: false, type: "number", filterable: false },
        { title: "Action", field: "", hidden: false, type: "string", filterable: false }
        
    ];

    diagnosticGrid = $("#tblDiagnostics").kendoGridAcademy({
        columns: columns,
        dataSource: diagnosticDataSource,
        rowTemplate: kendo.template($("#diagnosticRowTemplate").html()),
        filterable: true,
        pageable: true,
    });
    $(diagnosticGrid).refresh();
}
Petur Subev
Telerik team
 answered on 05 Mar 2014
1 answer
473 views
Hi, 

I'am evaluating hte DataViz graph and have troubles when printing the graph. Tried with the example: ../kendo/examples/dataviz/bar-charts/column.html
If I print this chart the 2 last months are truncated/not visible on the print (Google Chrome, printing with Ctrl+P)
T. Tsonev
Telerik team
 answered on 05 Mar 2014
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
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
BulletChart
Licensing
QRCode
ResponsivePanel
TextArea
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?