Telerik Forums
Kendo UI for jQuery Forum
2 answers
195 views
Hello. When I add a record in my Grid, "create" url is hit using POST, but checking in the httpd logs, POST parameters are empty.
This is my Grid & Datasource definition:

$(function() {
                $("#grid").kendoGrid({
                    dataSource: {
                        transport:{
                            read:"libyMsg.php?way=getUsrMsgList",
                            create:{
                                url :"libyMsg.php?way=createMsg",
                                type:"POST"
                            },
                            update:{
                                url :"libyMsg.php?way=updateeMsg",
                                type:"POST"
                            },
                            destroy:{
                                url :"libyMsg.php?way=destroyMsg",
                                type:"POST"
                            }
                        },
                        batch: true,
                        pageSize: 10,
                        schema: {
                            data: "data",
                            model: {
                                id: "msg_id",
                                fields: {
                                    msg_id: { editable: false, nullable: true },
                                    msg_title: { validation: { required: true } },
                                    msg_content: {  validation: { required: true } },
                                    msg_type: { type: "number", validation: { min: 0, required: true }},
                                    msg_date: { type: "date", validation: { required: true } },
                                    msg_status: { type: "number", validation: { min: 0, required: true } }
                                }
                            }
                        }
                    },
                    columns: [{ field: "msg_id", width: 40,title: "ID" },
                        { field: "msg_title",width: 230, title: "Title" },
                        { field: "msg_content", width: 370,title: "Content" },
                        { field: "msg_type", width: 40,title: "Type" },
                        { field: "msg_date", width: 300,title: "Date" },
                        { field: "msg_status", width: 40,title: "Status" }],
                    scrollable: true,
                    sortable: true,
                    editable:"popup",
                    pageable: {
                        refresh: true,
                        pageSizes: true
                    },
                    toolbar: ["create", "save", "cancel"],
                });
            });
             
                         
        </script>
I wonder why im receiving an empty POST.
Thanx,
M
Marta
Top achievements
Rank 1
 answered on 27 Nov 2012
1 answer
99 views
Nice improvement in the styling, especially on Blackberry. Tabstrip is really slick now and buttons are much more attractive in Android.

Working nicely on iOS, Android and Blackberry. 

Font icons work much better and overall it seems to run smoother on the handsets.

Kamen Bundev
Telerik team
 answered on 27 Nov 2012
0 answers
104 views
Hi,

I am having a simple form where i am showing a grid from a datasource.After I need to show the same in a window.
It is working fine but, after closing the window upon showing the data if i want to reload the data again then I am getting undefined error for the grid.
For this i have just tried an example with opening a window and after loading the data again for a dropdown box it is also throwing the same error.
Is it the problem with kendoui or have anybody faced this kind oof error.
Any idea??

Regards,
Sri.
SriNi
Top achievements
Rank 1
 asked on 27 Nov 2012
0 answers
216 views
@(Html.Kendo().TabStrip()
    .Name("tabstrip")
    .Items(tabstrip =>
    {
tabstrip.Add().Text("About Us")
                .Content(@<text>
                                     
                </text>);
            tabstrip.Add().Text("Contact Us")
                .Content(@<text>
                                     
                </text>);
             
    })
    .SelectedIndex(0)   
)
 
<style>
.k-tabstrip .k-tabstrip-items { padding:0.3em 0.35em 0;}
.k-reset { text-align:right;}
</style>
Khieu Kim Khun
Top achievements
Rank 1
 asked on 27 Nov 2012
1 answer
148 views
is there any reason why this wouldn't result in a console log upon clicking of the link?

$(".woot").click(function() {
console.log('test');
});

{field: "id", title: "id", template: "<a href='javascript:;' class='woot' id='#= id #' />#= id #</a>"},

Nikolay Rusev
Telerik team
 answered on 27 Nov 2012
1 answer
130 views
While adding or editing a row in a grid if we select date or time using datepicker or date time picker it is sending wrong date/ time to the controller(Spring MVC controller) .

e.g.

if we select  15 Nov 2012 as date it is sending it as 14 Nov 2012

same as if we select 12:30AM in time it is sending it as 19:00 hrs i.e. 07:00PM  

Nathan
Top achievements
Rank 1
 answered on 27 Nov 2012
1 answer
203 views
Hi,

I'm attempting to create the kendoComboBox on the client side with data passed into a callback javascript method. The control is created, but there seems to be a problem with the databinding. When the page renders, I see the combobox placeholder value, BUT when I click the down arrow, or try to type in the field for autocomplete/filtering nothing happens.

For example I have data coming back from my ajax call like

{"bloomberg": [
        {"id": "1", "account": "my institution bank", "ticker": "BOND_TO_EQY_TICKER"},     

 ]
},
{
"intex": [
        {"id": "1", "type": "RMBS", "category": "CashFlows"},              {"id": "2", "type": "ABS", "category": "CashFlows"} ]
}

initializecontrols = function (data) {
try
        {
            $("#tpgInput").kendoComboBox({                
                dataSource: {
                    data: data.bloomberg,
                    type: "json"
                },
                select: onComboBoxSelect,
                dataTextField: "account",
                dataValueField: "id",
                placeholder: "Select Bloomberg Account ...",
                // define custom template
                template: '<dl>' +
                              '<dd><strong>Account Name:</strong> ${ data.account }</dd>' +
                              '<dd><strong>Ticker:</strong> ${data.ticker} ' +
                          '</dl>',
                animation: {
                    open: {
                        effects: "fadeIn",
                        duration: 300
                        show: true
                    }
                }
            });
        }
        catch (err) {
            alert(err.message);
        }

When i step through the code I see the data. I'm hoping you can give me some insight into 
what I might be doing wrong.
Nicole
Top achievements
Rank 1
 answered on 26 Nov 2012
2 answers
120 views
I have a few question about how to get that MVC3 version of the Kendo UI. I'm not sure if my account can have that feature. In our company my coworker gave me this account and sent the package which is only have client side JavaScript files. Could please tell me if I can download a copy for MVC3 and where i can download it, or our company's account just available for client side JavaScript library only and we need pay extra money to get the Full so-called MVC3 package.

Thanks.
Congyuan
Top achievements
Rank 1
 answered on 26 Nov 2012
4 answers
386 views
I am using kendo UI web control, i tried to put the upload control inside the ajax binded grid, but it doesn't work within the client template.

Here is the code, please let me know what is the right way to do this.

Thanks in advance!

 @(Html.Kendo().Grid<DOC>()
        .Name("docGrid")
         .Columns(
        columns =>
        {
            columns.Bound(p => p.DocID).ClientTemplate("<input type='file' name='docs'/>");
            columns.Bound(p => p.RequiredDocName);
            columns.Bound(p => p.UploadStatus);
        })
       .Pageable()
       .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
       .DataSource(dataSource => dataSource
       .Ajax()

        .PageSize(30)
        .Batch(false)
        .ServerOperation(false)
        // .Events(events => events.Error("errorHandler"))
        .Model(model =>
        {
            model.Id(p => p.DocID);
            model.Field(p => p.RequiredDocName);
            model.Field(p => p.UploadStatus);
        })
        .Read(read => read.Action("Read", "WebApp"))))
</div>


<script type="text/javascript">
 
$(document).ready(function () {
    $('[name=docs]').kendoUpload(
     {
         async:
             {
                saveUrl: ......
                removeUrl: ........
                autoUpload: true
            },
            upload: onUpload,
            success: onSuccess
     });
 });
Sharon
Top achievements
Rank 1
 answered on 26 Nov 2012
1 answer
137 views
My project has two windows and both were working with v2012.2.831, but quit when I replace kenow.web.min.js with v2012.3.1114. It still works in IE, but now FireFox and Chrome.

I think I am using the windos in a normal manner.

I open the window with:
function labelEmail(trackingNumber) {
    var kendoWindow = $("#emailWindow").data("kendoWindow");
    kendoWindow.open();
    kendoWindow.center();
    kendoWindow.toFront();
    //$("#txtLabelEmail_Body").kendoEditor({
    //    width: "300px",
    //    height: "150px"
    //});
}

In Document Ready section I have:
    $("#emailWindow").kendoWindow({
        width: "575px",
        height: "550px",
        visible: false,
        title: "Email Label"
    });

nd I have stripped the window to as little as

<div id="emailWindow" style="position:relative; padding: 5px;" >
        <p>Please enter an email address, subject and a brief note to go along with the email.</p>
</div>

I can copy kendo.web.min.js v2012.2.831, refresh and it works. When I put kendo.web.min.js v2012.3.1114 back it stops. No error on the FireFox counsole. I can put breakpoints in and see that the open gets fired, but the screen does not change.

Thanks
Randy Miller

Randy
Top achievements
Rank 1
 answered on 26 Nov 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
Drag and Drop
Application
Map
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
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
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?