Telerik Forums
UI for ASP.NET MVC Forum
3 answers
146 views
Hello Kendo,

I had been running version 2013.3.1119.440 of the Kendo.Mvc.dll in my MVC 4 application. Grid was working fine. This morning I downloaded and installed the latest version of Kendo. I updated my project, and was referencing the new .dll .... when I ran the application all seemed to be working fine (drop downs, tools tips, etc), all except for the Kendo grid. My grid is populated via Ajax calls. The grid does not load the data, but all associated data calls seem to be working fine. (i.e. counts on data pulls, etc) Such counts display fine, drop down is pulling data just fine ... just no data is displayed in the Grid.

I had to uninstall version  2013.3 1316, and re-install the previous version 2013.3.1119 ... recreated the reference in my application, and then the Grid was working fine. All is back to normal.

Please confirm that the Grid works with an AJAX datasource ... and if there is something wrong with the latest download.

Thanks,

Carl


Peter
Top achievements
Rank 1
 answered on 22 Jan 2014
0 answers
67 views
If your are using the Q3 2013 service pack release, the additional data added with the read request Data function will not be sent to the server because of a bug in the transport. In order to avoid the problem, please use the latest internal build in which the problem is fixed.
Kendo UI
Top achievements
Rank 1
 asked on 22 Jan 2014
1 answer
304 views
The Kendo DatePicker has a bug it seems when you place it in a popup editor.  
This widget does not bind to a DateTime model property when you place it in a popup editor.
In the attached sample project I changed the culture in the web.config to 'auto' which on my workstation is set to 'en-AU.'
In this sample the 'PostedOn' property is a nullable DateTime though it makes no difference to this bug.
Adding ParseFormats strings makes no difference either.

This project is a modified sample that you have provided previously (see URL: http://www.kendoui.com/forums/kendo-ui-web/date-time-pickers/datetimepicker-format-doesn-t-work-with-initial-default-value.aspx)
As you can see from the attached screenshot kendo datepicker reports on erroneous date even though it is a valid date.
Outside the popup editor, this same datepicker works perfectly good.
Any workaround?

Regards,
Menashay
Daniel
Telerik team
 answered on 22 Jan 2014
1 answer
1.0K+ views
Hi ,

I am using a combobox with  a remote datasource. This field is bound to an integer property on my model.In the case of adding creating a new record combobox doesn't show any selection as the property is null.
@{
                Html.Kendo()
                    .ComboBoxFor(model => model.SendFromId)
                    .DataTextField("Text")
                    .DataValueField("Value")
                    .HtmlAttributes(new { style = "width:250px", data_value_primitive = "true" })
                    .DataSource(source =>
                    {
                        source.Read(read =>
                        {
                            read.Action("People", "Home");
                        });
                    })
                    .Events(e=>
                            {
                                e.Change("onComboChanged");
                            })
                    .Deferred()
                    .Render();
            }
Now  I need to set a default value when the property is null. I have tried to set using the  Value but it causes problem while edit.Though I change the selection and submit the form the Value parameter shows up again if I try to edit the record.
Did anyone have this kind of scenario before. Any help will be much appreciated.

Thanks,
Ramoji
Alexander Popov
Telerik team
 answered on 22 Jan 2014
9 answers
142 views

I have code that looks something like this, the data provided by the additionalData function is never sent or received, only the default kendo request parameters are (sort, filter, etc).

Please fix ASAP.

<script>
    function additionalData() {
        return {
            Word: "Bird",
            Number: 9001
        };
    }
</script>
 
@(Html.Kendo().Grid<KendoUIMvcApplication1.Models.TestModel>()
    .Name("Grid")
    .DataSource(dataSource =>
    {
        dataSource.Ajax().Read(read => read.Action("Read", "Home").Data("additionalData"));
    }))

Poh Joon
Top achievements
Rank 1
 answered on 22 Jan 2014
1 answer
87 views
I have inherited some code to fix what should have been a validation issue. I believe the best fix would be to change the field type in the grid to be a dropdown. At issue is changing the field to a drop down. As seen below, the last developer is creating a grid through JavaScript. This function is called from another JavaScript function which was called from an change event of another grid. Below is the code from the two involved scripts. I have attached a file containing all the other pertinent files to draw conclusions of the functionality that is in place. I want to replace the field "EXPLANATION_CODE" near below with a drop down sourced from a database table but still bounded as it is currently. I would think this should be rather simple but is beyond my current understanding. Also, I am not authorized to change how the grid is currently coded. So I cannot remove it from the function and place it in the view. I can only change the type of the field. Any and all help would be greatly appreciated. If after reviewing the functionality, you see a better way to perform all the required functionality, please forward thoughts. I may be able to refactor later to remove this hideous monstrosity.

/* Following function is in a separate script file and is called from another function */
function SendDocTranInfoToServer(pDocId, pDocSeq) {
    if ($("#kGridExplanations").data("kendoGrid") == null) {
        $("#kGridExplanations").kendoGrid({
            columns: [
                { field: "EXPLANATION_CODE", title: "Code", width: "200px" },
                { command: "destroy" }
            ],
            editable: {
                createAt: "top"
            },
            toolbar: ["create"]
        });

    } else {
        var saveExplanations = "";
        var expGrid = $("#kGridExplanations").data("kendoGrid");
        var expGridDs = $("#kGridExplanations").data("kendoGrid").dataSource;
        var allData = expGridDs.data();

        for (var i = 0; i < allData.length; i++) {
            saveExplanations = saveExplanations + allData[i].EXPLANATION_CODE + "|";
        }
        $.ajax({
            url: "/Inquiry/SetExplanationCodeAndText",
            dataType: "json",
            type: "POST",
            data: { docId: $("#hdPrevDocId").val(), docCount: $("#hdPrevDocCount").val(), expCode: saveExplanations, filingText: $("#tbTextFiling").val() },
            success: function (response) {
            }
        });
        expGrid.dataSource.data([]);
        $("#tbDocCountFiling").val("");
        $("#tbTextFiling").val("");
    }
    $("#hdPrevDocId").val(pDocId);
    $("#hdPrevDocCount").val(pDocSeq);

    var explanationCodes = [];
    $.ajax({
        url: "/Inquiry/GetExplanationCodeByCount",
        dataType: "json",
        type: "POST",
        data: { docId: pDocId, docCount: pDocSeq },
        success: function (response) {
            if (response.hasError) {
            }
            if (!response.hasError) {
                for (var i3 = 0; i3 < response.length; i3++) {
                    var explanationCode = {
                        EXPLANATION_CODE: response[i3].EXPLANATION_CODE,
DOC_COUNT: response[i3].DOC_COUNT,
                    };
                    explanationCodes.push(explanationCode);
                 }  
                 if (explanationCodes.length == 0) {
                     if ($("#kGridExplanations").data("kendoGrid") != null) {
                         $("#kGridExplanations").data("kendoGrid").dataSource.data([]);
                     }
                 } else {
                     var dsExpCode = new kendo.data.DataSource({
                         schema: {
                             model: {
                                 fields: {
                                     EXPLANATION_CODE: { type: "string" },
                                 }
                             },
                             parse: function (response) {
                                 return explanationCodes;
                             }
                        }
                    });

                    if ($("#kGridExplanations").data("kendoGrid") != null) {
                        var grid1 = $("#kGridExplanations").data("kendoGrid");
                        grid1.setDataSource(dsExpCode);
                    }
                }
            }
        }
    });
}
/* Following function from view holding a separate grid and used for the change event */
function kGrdCDocTransChange(arg) {
      var ar = arg;
     var selectedRows = this.select();
     var selectedDataItems = [];
     for (var i1 = 0; i1 < selectedRows.length; i1++) {
         var dataItem = this.dataItem(selectedRows[i1]);
         selectedDataItems.push(dataItem);
     }
     SendDocTranInfoToServer(selectedDataItems[0].DOC_ID, selectedDataItems[0].DOC_COUNT);
 }
Daniel
Telerik team
 answered on 21 Jan 2014
1 answer
69 views
There needs to be a configurable hovertext field for each pager button so that it can be WCAG compliant.
Kiril Nikolov
Telerik team
 answered on 21 Jan 2014
1 answer
949 views
I have this code.  I thought that it would give an ID to the DatePicker.  However, after much debugging, it turns out it changes the name of the parameter which is used on the post.  So the Model Binding was no longer working.

Is this a bug?  I thought that the Name property specified an ID for a control.
@(Html.Kendo().DatePickerFor(m => Model.SearchInfo.StartDate).Name("start-date")

Alexander Popov
Telerik team
 answered on 21 Jan 2014
1 answer
214 views
Does anyone have Grid style issues?

I'm running a local MVC application using IIS express (VS 2012)

Once in a while (seems random) when I refresh the page the grid comes up with no styles (see screenshots)

I'm using the inline editing example with minor changes... not loading any other javascripts...
Dimo
Telerik team
 answered on 21 Jan 2014
3 answers
464 views
I have a Ajax Bound Grid with this column which works:

  
columns.Bound(c => c.Id).Title("")
.ClientTemplate(@Html.ActionLink("Download", "DownloadReport?Id=#=Id#")
.ToHtmlString());
  How do I modify this to show/hide the URL based on c.IsReportAvailable?
Dimiter Madjarov
Telerik team
 answered on 21 Jan 2014
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Licensing
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
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?